projects
/
l2tpns.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Session group update rate calculation
[l2tpns.git]
/
garden.c
diff --git
a/garden.c
b/garden.c
index
44b9597
..
0b7d763
100644
(file)
--- a/
garden.c
+++ b/
garden.c
@@
-3,14
+3,15
@@
#include <stdlib.h>
#include <sys/wait.h>
#include <sys/types.h>
#include <stdlib.h>
#include <sys/wait.h>
#include <sys/types.h>
+#include <sys/socket.h>
+#include <linux/rtnetlink.h>
+
#include "l2tpns.h"
#include "plugin.h"
#include "control.h"
/* walled garden */
#include "l2tpns.h"
#include "plugin.h"
#include "control.h"
/* walled garden */
-char const *cvs_id = "$Id: garden.c,v 1.25 2006/02/23 01:07:23 bodea Exp $";
-
int plugin_api_version = PLUGIN_API_VERSION;
static struct pluginfuncs *f = 0;
int plugin_api_version = PLUGIN_API_VERSION;
static struct pluginfuncs *f = 0;
@@
-221,7
+222,7
@@
int garden_session(sessiont *s, int flag, char *newuser)
/* Clean up counters */
s->pin = s->pout = 0;
s->cin = s->cout = 0;
/* Clean up counters */
s->pin = s->pout = 0;
s->cin = s->cout = 0;
- s->cin_delta = s->cout_delta = 0;
+ s->cin_delta = s->cout_delta =
s->coutgrp_delta =
0;
s->cin_wrap = s->cout_wrap = 0;
snprintf(cmd, sizeof(cmd),
s->cin_wrap = s->cout_wrap = 0;
snprintf(cmd, sizeof(cmd),