Mercurial > hg > dhcpcd
changeset 5052:f8f1977aa728 draft
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).
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Fri, 07 Feb 2020 13:21:14 +0000 |
| parents | aa936fa9275e |
| children | aaf555707cb8 |
| files | src/if-linux.c |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/if-linux.c Fri Feb 07 12:52:51 2020 +0000 +++ b/src/if-linux.c Fri Feb 07 13:21:14 2020 +0000 @@ -923,7 +923,7 @@ 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
