projects
/
l2tpns.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add grouping session functionality for load balancing and failover
[l2tpns.git]
/
garden.c
diff --git
a/garden.c
b/garden.c
index
994ecb5
..
0b7d763
100644
(file)
--- a/
garden.c
+++ b/
garden.c
@@
-3,6
+3,9
@@
#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"
#include "l2tpns.h"
#include "plugin.h"
#include "control.h"
@@
-219,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),