From 7d7afb67c88904839a7b331152b8c3f2cf784adf Mon Sep 17 00:00:00 2001 From: Brendan O'Dea Date: Fri, 5 Nov 2004 02:39:35 +0000 Subject: [PATCH 1/1] clean up plugins --- Makefile | 4 ++-- autosnoop.c | 14 ++++---------- autothrottle.c | 14 ++++---------- garden.c | 4 +++- stripdomain.c | 4 +++- 5 files changed, 16 insertions(+), 24 deletions(-) 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..f8138b9 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..b665f8a 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 b0abf21..19b29ac 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 ddd45c5..59832f2 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; -- 2.20.1