projects
/
l2tpns.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Log the tunnel # when adding/removing routes.
[l2tpns.git]
/
l2tpns.c
diff --git
a/l2tpns.c
b/l2tpns.c
index
31a183a
..
ed5d097
100644
(file)
--- a/
l2tpns.c
+++ b/
l2tpns.c
@@
-469,7
+469,7
@@
static void routeset(sessionidt s, in_addr_t ip, int prefixlen, in_addr_t gw, in
netlink_addattr(&req.nh, RTA_GATEWAY, &n_ip, sizeof(n_ip));
}
netlink_addattr(&req.nh, RTA_GATEWAY, &n_ip, sizeof(n_ip));
}
- LOG(1, s,
0
, "Route %s %s/%d%s%s\n", add ? "add" : "del",
+ LOG(1, s,
session[s].tunnel
, "Route %s %s/%d%s%s\n", add ? "add" : "del",
fmtaddr(htonl(ip), 0), prefixlen,
gw ? " via" : "", gw ? fmtaddr(htonl(gw), 2) : "");
fmtaddr(htonl(ip), 0), prefixlen,
gw ? " via" : "", gw ? fmtaddr(htonl(gw), 2) : "");
@@
-544,7
+544,7
@@
void route6set(sessionidt s, struct in6_addr ip, int prefixlen, int add)
metric = 1;
netlink_addattr(&req.nh, RTA_METRICS, &metric, sizeof(metric));
metric = 1;
netlink_addattr(&req.nh, RTA_METRICS, &metric, sizeof(metric));
- LOG(1, s,
0
, "Route %s %s/%d\n",
+ LOG(1, s,
session[s].tunnel
, "Route %s %s/%d\n",
add ? "add" : "del",
inet_ntop(AF_INET6, &ip, ipv6addr, INET6_ADDRSTRLEN),
prefixlen);
add ? "add" : "del",
inet_ntop(AF_INET6, &ip, ipv6addr, INET6_ADDRSTRLEN),
prefixlen);