summaryrefslogtreecommitdiffstats
path: root/src/if-bsd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2019-08-07 16:18:50 +0100
committerRoy Marples <roy@marples.name>2019-08-07 16:18:50 +0100
commit50e34e2dd659b5f8056b9a5c4a6a03ddb03a93b6 (patch)
tree29014a38669f898549a5abc3173c9d5df1be4276 /src/if-bsd.c
parentae435866b07e58b923db6c911b606665c7b570d3 (diff)
downloaddhcpcd-50e34e2dd659b5f8056b9a5c4a6a03ddb03a93b6.tar.xz
BSD: warn if kernel does not support route(4) filtering
Diffstat (limited to 'src/if-bsd.c')
-rw-r--r--src/if-bsd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/if-bsd.c b/src/if-bsd.c
index b87cf337..f4d84982 100644
--- a/src/if-bsd.c
+++ b/src/if-bsd.c
@@ -191,6 +191,8 @@ if_opensockets_os(struct dhcpcd_ctx *ctx)
if (setsockopt(ctx->link_fd, PF_ROUTE, ROUTE_MSGFILTER,
&msgfilter_mask, sizeof(msgfilter_mask)) == -1)
logerr(__func__);
+#else
+#warn kernel does not support route message filtering
#endif
return 0;