From: bodea Date: Fri, 5 Nov 2004 02:39:35 +0000 (+0000) Subject: clean up plugins X-Git-Tag: release_2_0_4~6 X-Git-Url: http://git.sameswireless.fr/l2tpns.git/commitdiff_plain/014cd8c15d4644788915ed616e2a5ad2dd22b934 clean up plugins --- diff --git a/Makefile b/Makefile index 90432c9..dc0bd23 100644 --- a/Makefile +++ b/Makefile @@ -123,7 +123,7 @@ radius.o: radius.c md5.h constants.h l2tpns.h plugin.h util.h tbf.o: tbf.c l2tpns.h util.h tbf.h util.o: util.c l2tpns.h bgp.h garden.so: garden.c l2tpns.h plugin.h control.h -autothrottle.so: autothrottle.c l2tpns.h plugin.h control.h -autosnoop.so: autosnoop.c l2tpns.h plugin.h control.h +autothrottle.so: autothrottle.c l2tpns.h plugin.h +autosnoop.so: autosnoop.c l2tpns.h plugin.h stripdomain.so: stripdomain.c l2tpns.h plugin.h setrxspeed.so: setrxspeed.c l2tpns.h plugin.h diff --git a/autosnoop.c b/autosnoop.c index 3fdb882..45f27d8 100644 --- a/autosnoop.c +++ b/autosnoop.c @@ -1,11 +1,10 @@ #include -#include -#include -#include -#include #include "l2tpns.h" #include "plugin.h" -#include "control.h" + +/* set up intercept based on RADIUS reply */ + +char const *cvs_id = "$Id: autosnoop.c,v 1.4 2004/11/05 02:39:35 bodea Exp $"; int __plugin_api_version = 1; struct pluginfuncs *p; @@ -38,8 +37,3 @@ int plugin_init(struct pluginfuncs *funcs) { return ((p = funcs)) ? 1 : 0; } - -void plugin_done() -{ -} - diff --git a/autothrottle.c b/autothrottle.c index ce47d9d..24e97db 100644 --- a/autothrottle.c +++ b/autothrottle.c @@ -1,11 +1,10 @@ #include -#include -#include -#include -#include #include "l2tpns.h" #include "plugin.h" -#include "control.h" + +/* set up throttling based on RADIUS reply */ + +char const *cvs_id = "$Id: autothrottle.c,v 1.6 2004/11/05 02:39:35 bodea Exp $"; int __plugin_api_version = 1; struct pluginfuncs *p; @@ -85,8 +84,3 @@ int plugin_init(struct pluginfuncs *funcs) { return ((p = funcs)) ? 1 : 0; } - -void plugin_done() -{ -} - diff --git a/garden.c b/garden.c index 992d262..6ffa0bc 100644 --- a/garden.c +++ b/garden.c @@ -7,7 +7,9 @@ #include "plugin.h" #include "control.h" -char const *cvs_id = "$Id: garden.c,v 1.9 2004/11/03 13:23:58 bodea Exp $"; +/* walled garden */ + +char const *cvs_id = "$Id: garden.c,v 1.10 2004/11/05 02:39:35 bodea Exp $"; int __plugin_api_version = 1; static struct pluginfuncs *p = 0; diff --git a/stripdomain.c b/stripdomain.c index c60a9da..c0c9231 100644 --- a/stripdomain.c +++ b/stripdomain.c @@ -2,7 +2,9 @@ #include "l2tpns.h" #include "plugin.h" -char const *cvs_id = "$Id: stripdomain.c,v 1.2 2004/11/03 13:29:31 bodea Exp $"; +/* strip domain part of username before sending RADIUS requests */ + +char const *cvs_id = "$Id: stripdomain.c,v 1.3 2004/11/05 02:39:35 bodea Exp $"; int __plugin_api_version = 1; static struct pluginfuncs *p = 0;