Commit 61e4d89b authored by Matthieu Boutier's avatar Matthieu Boutier Committed by Juliusz Chroboczek

Fix and simplify printing.

parent ca71cb48
......@@ -850,15 +850,10 @@ update_route(const unsigned char *id,
if(memcmp(id, myid, 8) == 0)
return NULL;
if(martian_prefix(prefix, plen)) {
fprintf(stderr, "Rejecting martian route to %s through %s.\n",
format_prefix(prefix, plen), format_address(nexthop));
return NULL;
}
if(src_plen != 0 && martian_prefix(src_prefix, src_plen)) {
if(martian_prefix(prefix, plen) || martian_prefix(src_prefix, src_plen)) {
fprintf(stderr, "Rejecting martian route to %s from %s through %s.\n",
format_prefix(prefix, plen),
format_prefix(src_prefix, src_plen), format_eui64(id));
format_prefix(src_prefix, src_plen), format_address(nexthop));
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