Commit edda7de4 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Don't install IPv4 routes through interfaces with no IPv4 address.

parent c5dfb914
......@@ -362,6 +362,11 @@ parse_packet(const unsigned char *from, struct network *net,
nh = neigh->address;
}
if(message[2] == 1) {
if(!net->ipv4)
goto done;
}
update_route(router_id, prefix, plen, seqno, metric, interval,
neigh, nh);
} else if(type == MESSAGE_REQUEST) {
......
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