[Babel-users] [PATCH 1/3] Fix and simplify printing.
Matthieu Boutier
boutier at pps.univ-paris-diderot.fr
Mon May 2 08:56:33 UTC 2016
---
route.c | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/route.c b/route.c
index 1a8d59f..0eacd00 100644
--- a/route.c
+++ b/route.c
@@ -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;
}
--
2.8.0.rc3
More information about the Babel-users
mailing list