From: Roy Marples Date: Fri, 7 Feb 2020 13:16:06 +0000 (+0000) Subject: Linux: mask the NETLINK_GET_STRICT_CHK: Protocol not available error X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c662b4931d7e2f99d750b4d03c1b41965c8dca2;p=thirdparty%2Fdhcpcd.git 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). --- diff --git a/src/if-linux.c b/src/if-linux.c index 8ac7db75..8f939761 100644 --- a/src/if-linux.c +++ b/src/if-linux.c @@ -1016,7 +1016,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