route: Add if index in log
This commit is contained in:
parent
c9aac241ea
commit
5c0e3949f8
1 changed files with 4 additions and 4 deletions
8
l2tpns.c
8
l2tpns.c
|
|
@ -1601,9 +1601,9 @@ static void routeset(sessionidt s, in_addr_t ip, int prefixlen, in_addr_t gw, in
|
|||
// Update time stamp to see in logs if adding/removing routes is very long
|
||||
now(NULL);
|
||||
update_time_now_string();
|
||||
LOG(1, s, session[s].tunnel, "Route %s %s/%d%s%s\n", add ? "add" : "del",
|
||||
LOG(1, s, session[s].tunnel, "Route %s %s/%d%s%s if %d\n", add ? "add" : "del",
|
||||
fmtaddr(htonl(ip), 0), prefixlen,
|
||||
gw ? " via" : "", gw ? fmtaddr(htonl(gw), 2) : "");
|
||||
gw ? " via" : "", gw ? fmtaddr(htonl(gw), 2) : "", idx);
|
||||
|
||||
if (rtnetlink_send(&req.nh) < 0)
|
||||
LOG(0, 0, 0, "routeset() error in sending netlink message: %s\n", strerror(errno));
|
||||
|
|
@ -1725,10 +1725,10 @@ void route6set(sessionidt s, struct in6_addr ip, int prefixlen, int add)
|
|||
// Update time stamp to see in logs if adding/removing routes is very long
|
||||
now(NULL);
|
||||
update_time_now_string();
|
||||
LOG(1, s, session[s].tunnel, "Route %s %s/%d\n",
|
||||
LOG(1, s, session[s].tunnel, "Route %s %s/%d if %d\n",
|
||||
add ? "add" : "del",
|
||||
inet_ntop(AF_INET6, &ip, ipv6addr, INET6_ADDRSTRLEN),
|
||||
prefixlen);
|
||||
prefixlen, idx);
|
||||
|
||||
if (rtnetlink_send(&req.nh) < 0)
|
||||
LOG(0, 0, 0, "route6set() error in sending netlink message: %s\n", strerror(errno));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue