blob: 374135d4f6383abcaa32c4ab09b18e2ee9eb9515 [file] [log] [blame]
Brad Bishop0f291cc2019-09-01 15:16:57 -04001Description: Fix "NETLINK: Error: Invalid argument" for links that are down, in kernel 4.4+
2Author: Jim Paris <jim@jtan.com>
3Bug-Debian: http://bugs.debian.org/864889
4Index: 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: