projects
/
l2tpns.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
916c13c
)
Fix cluster group update
author
fendo
<fendo@bi12info.com>
Tue, 26 Mar 2013 00:12:59 +0000
(
01:12
+0100)
committer
fendo
<fendo@bi12info.com>
Tue, 26 Mar 2013 00:12:59 +0000
(
01:12
+0100)
grpsess.c
patch
|
blob
|
history
diff --git
a/grpsess.c
b/grpsess.c
index
73c729a
..
7f897b3
100644
(file)
--- a/
grpsess.c
+++ b/
grpsess.c
@@
-129,7
+129,7
@@
static void grp_routeset(groupidt g, in_addr_t ip, int prefixlen, int add)
n_ip = htonl(ip);
netlink_addattr(&req.nh, RTA_DST, &n_ip, sizeof(n_ip));
n_ip = htonl(ip);
netlink_addattr(&req.nh, RTA_DST, &n_ip, sizeof(n_ip));
- LOG(
1
, 0, 0, "Route (Group) %s %s/%d\n", add ? "add" : "del", fmtaddr(htonl(ip), 0), prefixlen);
+ LOG(
3
, 0, 0, "Route (Group) %s %s/%d\n", add ? "add" : "del", fmtaddr(htonl(ip), 0), prefixlen);
if (netlink_send(&req.nh) < 0)
LOG(0, 0, 0, "grp_routeset() error in sending netlink message: %s\n", strerror(errno));
if (netlink_send(&req.nh) < 0)
LOG(0, 0, 0, "grp_routeset() error in sending netlink message: %s\n", strerror(errno));
@@
-633,7
+633,7
@@
int grp_cluster_load_groupe(groupidt g, groupsesst *new)
// Check session list
for (i = 0; i < grpsession[g].nbsession; i++)
{
// Check session list
for (i = 0; i < grpsession[g].nbsession; i++)
{
- if (grpsession[g].sesslist[i].sid
=
= new->sesslist[i].sid)
+ if (grpsession[g].sesslist[i].sid
!
= new->sesslist[i].sid)
{
updategroup = 1;
break;
{
updategroup = 1;
break;