From: Roy Marples Date: Thu, 15 Sep 2016 10:36:58 +0000 (+0000) Subject: Ignore RTM versions we don't know. X-Git-Tag: v6.11.4~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3fa8525c3bfe478a111c6ab3061092b9831128c0;p=thirdparty%2Fdhcpcd.git Ignore RTM versions we don't know. --- 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: diff --git a/if-sun.c b/if-sun.c index a26d4c6b..39285e92 100644 --- a/if-sun.c +++ b/if-sun.c @@ -749,6 +749,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) { case RTM_IFINFO: if_ifinfo(ctx, (const void *)rtm);