diff --git a/l2tpns.c b/l2tpns.c index 9d51d24..6446678 100644 --- a/l2tpns.c +++ b/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));