diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-07-07 20:58:48 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-07-07 20:58:48 +0000 |
commit | b2315bab9a228dd7d33d770574f02f462043262f (patch) | |
tree | ce9e2e4c5ec0b36d4ea8322679aecacee93a042c /usr.sbin | |
parent | 636728068cd05bf10a07b9d593f55990c458a6e9 (diff) |
Forgot to commit this while adding all the RTM_VERSION checks. Reminded by
sthen@ who also tested it. OK henning@ sthen@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/rtadvd/if.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.sbin/rtadvd/if.c b/usr.sbin/rtadvd/if.c index c2788da2766..34c5bf81258 100644 --- a/usr.sbin/rtadvd/if.c +++ b/usr.sbin/rtadvd/if.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if.c,v 1.19 2009/06/05 22:40:24 chris Exp $ */ +/* $OpenBSD: if.c,v 1.20 2009/07/07 20:58:47 claudio Exp $ */ /* $KAME: if.c,v 1.17 2001/01/21 15:27:30 itojun Exp $ */ /* @@ -243,9 +243,10 @@ get_next_msg(char *buf, char *lim, int ifindex, size_t *lenp, int filter) buf, lim, rtm); break; } - if (FILTER_MATCH(rtm->rtm_type, filter) == 0) { + if (rtm->rtm_version != RTM_VERSION) + continue; + if (FILTER_MATCH(rtm->rtm_type, filter) == 0) continue; - } switch (rtm->rtm_type) { case RTM_GET: @@ -497,6 +498,8 @@ parse_iflist(struct if_msghdr ***ifmlist_p, char *buf, size_t bufsize) buf, lim, ifm); return; } + if (ifm->ifm_version != RTM_VERSION) + continue; if (ifm->ifm_type == RTM_IFINFO) { (*ifmlist_p)[ifm->ifm_index] = ifm; |