Commit c345d632 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Don't accept IPv4 updates unless we have an IPv4 address.

parent e84c4407
...@@ -217,6 +217,8 @@ parse_packet(const unsigned char *from, struct network *net, ...@@ -217,6 +217,8 @@ parse_packet(const unsigned char *from, struct network *net,
neigh, neigh->address); neigh, neigh->address);
} else if(type == 5) { } else if(type == 5) {
unsigned char p4[16], prefix[16], nh[16]; unsigned char p4[16], prefix[16], nh[16];
if(!myipv4)
continue;
v4tov6(p4, message + 20); v4tov6(p4, message + 20);
v4tov6(nh, message + 16); v4tov6(nh, message + 16);
debugf("Received update for %s nh %s on %s from %s (%s).\n", debugf("Received update for %s nh %s on %s from %s (%s).\n",
......
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