net: provide stubs for missing netgraph glue

This commit is contained in:
Franco Fichtner 2016-12-13 10:19:56 +01:00
parent 26a0ed3b53
commit 651f7caa3e
6 changed files with 29 additions and 3 deletions

View file

@ -1,5 +1,5 @@
PLUGIN_NAME= l2tp
PLUGIN_VERSION= 1.4
PLUGIN_VERSION= 1.5
PLUGIN_DEPENDS= clog mpd5
PLUGIN_COMMENT= L2TP server based on MPD5
PLUGIN_MAINTAINER= franco@opnsense.org

View file

@ -32,6 +32,7 @@
/* BEGIN remove this in 17.1: provide compat for newer plugin on stock 16.7 */
require_once 'util.inc';
if (!function_exists('url_safe')) {
function url_safe($format, $args = array())
{
@ -47,6 +48,13 @@ if (!function_exists('url_safe')) {
return vsprintf($format, $args);
}
}
require_once 'interfaces.lib.inc';
if (!function_exists('legacy_netgraph_attach')) {
function legacy_netgraph_attach($if) { return; }
}
/* END remove this in 17.1 */
function if_l2tp_configure()

View file

@ -1,5 +1,5 @@
PLUGIN_NAME= pppoe
PLUGIN_VERSION= 1.4
PLUGIN_VERSION= 1.5
PLUGIN_DEPENDS= clog mpd5
PLUGIN_COMMENT= PPPoE server based on MPD5
PLUGIN_MAINTAINER= franco@opnsense.org

View file

@ -31,7 +31,9 @@
*/
/* BEGIN remove this in 17.1: provide compat for newer plugin on stock 16.7 */
require_once 'util.inc';
if (!function_exists('url_safe')) {
function url_safe($format, $args = array())
{
@ -47,6 +49,13 @@ if (!function_exists('url_safe')) {
return vsprintf($format, $args);
}
}
require_once 'interfaces.lib.inc';
if (!function_exists('legacy_netgraph_attach')) {
function legacy_netgraph_attach($if) { return; }
}
/* END remove this in 17.1 */
function if_pppoe_configure()

View file

@ -1,5 +1,5 @@
PLUGIN_NAME= pptp
PLUGIN_VERSION= 1.4
PLUGIN_VERSION= 1.5
PLUGIN_DEPENDS= clog mpd5
PLUGIN_COMMENT= PPTP server based on MPD5
PLUGIN_MAINTAINER= franco@opnsense.org

View file

@ -31,7 +31,9 @@
*/
/* BEGIN remove this in 17.1: provide compat for newer plugin on stock 16.7 */
require_once 'util.inc';
if (!function_exists('url_safe')) {
function url_safe($format, $args = array())
{
@ -47,6 +49,13 @@ if (!function_exists('url_safe')) {
return vsprintf($format, $args);
}
}
require_once 'interfaces.lib.inc';
if (!function_exists('legacy_netgraph_attach')) {
function legacy_netgraph_attach($if) { return; }
}
/* END remove this in 17.1 */
function if_pptp_configure()