summaryrefslogtreecommitdiffstats
path: root/sysdep/linux/netlink
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2011-03-29 02:44:39 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2011-03-29 02:44:39 +0200
commit83696b3913c9f52a3d53db073e1ba0641b60ab07 (patch)
treee5abc9b61b66c87c1d07717f03deeb0af4536b56 /sysdep/linux/netlink
parentab164971891c64126097eedca11d2f5586f1d8e7 (diff)
downloadbird-83696b3913c9f52a3d53db073e1ba0641b60ab07.tar
bird-83696b3913c9f52a3d53db073e1ba0641b60ab07.zip
Hide 6to4 route warnings.
Diffstat (limited to 'sysdep/linux/netlink')
-rw-r--r--sysdep/linux/netlink/netlink.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdep/linux/netlink/netlink.c b/sysdep/linux/netlink/netlink.c
index afca626..6cb3c80 100644
--- a/sysdep/linux/netlink/netlink.c
+++ b/sysdep/linux/netlink/netlink.c
@@ -824,6 +824,10 @@ nl_parse_route(struct nlmsghdr *h, int scan)
memcpy(&ra.gw, RTA_DATA(a[RTA_GATEWAY]), sizeof(ra.gw));
ipa_ntoh(ra.gw);
+ /* Silently skip strange 6to4 routes */
+ if (ipa_in_net(ra.gw, IPA_NONE, 96))
+ return;
+
ng = neigh_find2(&p->p, &ra.gw, ra.iface,
(i->rtm_flags & RTNH_F_ONLINK) ? NEF_ONLINK : 0);
if (!ng || (ng->scope == SCOPE_HOST))