Commit 8df45f07 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Use martian_prefix for checking xroutes.

parent 11cfe695
......@@ -268,7 +268,7 @@ update_xroute(const unsigned char *prefix, unsigned short plen,
struct xroute *xroute = NULL;
struct route *gwroute;
if(prefix[0] == 0xFF || (plen >= 8 && prefix[0] == 0)) {
if(martian_prefix(prefix, plen)) {
fprintf(stderr, "Ignoring martian xroute.\n");
return NULL;
}
......
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