Commit 73bfca25 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix parsing of kernel route metric on recent kernels.

Recent kernels don't include RTA_PRIORITY when it's 0.
parent 4313be61
...@@ -790,7 +790,7 @@ parse_kernel_route_rta(struct rtmsg *rtm, int len, struct kernel_route *route) ...@@ -790,7 +790,7 @@ parse_kernel_route_rta(struct rtmsg *rtm, int len, struct kernel_route *route)
route->plen += 96; route->plen += 96;
} }
route->metric = KERNEL_INFINITY; route->metric = 0;
route->ifindex = 0; route->ifindex = 0;
route->proto = rtm->rtm_protocol; route->proto = rtm->rtm_protocol;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment