summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-02-07 13:21:14 +0000
committerRoy Marples <roy@marples.name>2020-02-07 13:21:14 +0000
commitee8903a11073a41364875c1a4d20969a0e086666 (patch)
treecb2ad27d7c381286e59dc8b76f28df884e346b14
parent30a2e20cccb10e8865ca3b75c381bb5411e5f603 (diff)
downloaddhcpcd-ee8903a11073a41364875c1a4d20969a0e086666.tar.xz
Linux: mask the NETLINK_GET_STRICT_CHK: Protocol not available error
Just to appease Arch LTS users (packages are built with newer headers than what kernel supports).
-rw-r--r--src/if-linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/if-linux.c b/src/if-linux.c
index 499ced6c..40a9f47b 100644
--- a/src/if-linux.c
+++ b/src/if-linux.c
@@ -923,7 +923,7 @@ if_sendnetlink(struct dhcpcd_ctx *ctx, int protocol, struct nlmsghdr *hdr,
int on = 1;
if (setsockopt(s, SOL_NETLINK, NETLINK_GET_STRICT_CHK,
- &on, sizeof(on)) == -1)
+ &on, sizeof(on)) == -1 && errno != ENOPROTOOPT)
logerr("%s: NETLINK_GET_STRICT_CHK", __func__);
}
#endif