summaryrefslogtreecommitdiffstats
path: root/if-bsd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2016-09-15 10:36:58 +0000
committerRoy Marples <roy@marples.name>2016-09-15 10:36:58 +0000
commit3fa8525c3bfe478a111c6ab3061092b9831128c0 (patch)
tree9c6d8aac61024b33e1da6a1df3efa295e53030ad /if-bsd.c
parent14602bba9626c69b21622474b1b937ff4bbeb413 (diff)
downloaddhcpcd-3fa8525c3bfe478a111c6ab3061092b9831128c0.tar.xz
Ignore RTM versions we don't know.
Diffstat (limited to 'if-bsd.c')
-rw-r--r--if-bsd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/if-bsd.c b/if-bsd.c
index c8ed3029..8f072968 100644
--- a/if-bsd.c
+++ b/if-bsd.c
@@ -1502,6 +1502,9 @@ static void
if_dispatch(struct dhcpcd_ctx *ctx, const struct rt_msghdr *rtm)
{
+ if (rtm->rtm_version != RTM_VERSION)
+ return;
+
switch(rtm->rtm_type) {
#ifdef RTM_IFANNOUNCE
case RTM_IFANNOUNCE: