changeset 5051:5f9bca74bad0 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:16:06 +0000
parents fb4b6e3ab45e
children 1f0bec62471a
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:16:06 2020 +0000
@@ -1016,7 +1016,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