Debian Codegraph @

debian/patches/ifmetric.c_netlink-invalid-arg

raw
1 Description: Fix "NETLINK: Error: Invalid argument" for links that are down, in kernel 4.4+
2 Author: Jim Paris <[email protected]>
3 Bug-Debian: http://bugs.debian.org/864889
4 Index: ifmetric/src/nlrequest.c
5 ===================================================================
6 --- a/src/ifmetric.c
7 +++ b/src/ifmetric.c
8 @@ -97,6 +97,8 @@
9 l = NLMSG_PAYLOAD(n, sizeof(struct rtmsg));
10 a = RTM_RTA(r);
11
12 + r->rtm_flags &= ~(RTNH_F_DEAD | RTNH_F_LINKDOWN);
13 +
14 while(RTA_OK(a, l)) {
15 switch(a->rta_type) {
16 case RTA_PRIORITY: