Commit 9810d055 authored by Ondřej Zajíček's avatar Ondřej Zajíček

Fixes problems with routing table scans on some platforms.

Negative bit shifts are definitely undefined oprations.
parent 9c99d753
......@@ -843,9 +843,11 @@ nl_parse_route(struct nlmsghdr *h, int scan)
memcpy(&, RTA_DATA(a[RTA_GATEWAY]), sizeof(;
#ifdef IPV6
/* Silently skip strange 6to4 routes */
if (ipa_in_net(, IPA_NONE, 96))
ng = neigh_find2(&p->p, &, ra.iface,
(i->rtm_flags & RTNH_F_ONLINK) ? NEF_ONLINK : 0);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment