clean up plugins
This commit is contained in:
parent
66ded1b9e5
commit
7d7afb67c8
5 changed files with 16 additions and 24 deletions
4
Makefile
4
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
|
||||
|
|
|
|||
14
autosnoop.c
14
autosnoop.c
|
|
@ -1,11 +1,10 @@
|
|||
#include <string.h>
|
||||
#include <malloc.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/wait.h>
|
||||
#include <sys/types.h>
|
||||
#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()
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,10 @@
|
|||
#include <string.h>
|
||||
#include <malloc.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/wait.h>
|
||||
#include <sys/types.h>
|
||||
#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()
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
4
garden.c
4
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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue