mirror of
https://github.com/opnsense/plugins.git
synced 2026-05-28 04:34:15 -04:00
net: provide stubs for missing netgraph glue
This commit is contained in:
parent
26a0ed3b53
commit
651f7caa3e
6 changed files with 29 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue