diff options
author | Pavel Machek <pavel@ucw.cz> | 1999-04-14 23:11:24 +0200 |
---|---|---|
committer | Pavel Machek <pavel@ucw.cz> | 1999-04-14 23:11:24 +0200 |
commit | afbc41ab3d4f07f7dc4dbc6c769fe7fa1567f357 (patch) | |
tree | 3304cd10162b8cb198c76aa7584797fa7fc348c6 | |
parent | b11d8a4f59b3559779938b0a37914a7bc8c07a6b (diff) | |
download | bird-afbc41ab3d4f07f7dc4dbc6c769fe7fa1567f357.tar bird-afbc41ab3d4f07f7dc4dbc6c769fe7fa1567f357.zip |
SImplify code a tiny bit.
-rw-r--r-- | proto/rip/rip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/rip/rip.c b/proto/rip/rip.c index c2285a7..cfaaa4c 100644 --- a/proto/rip/rip.c +++ b/proto/rip/rip.c @@ -221,7 +221,7 @@ advertise_entry( struct proto *p, struct rip_block *b, ip_addr whotoldme ) /* set to: interface of nexthop */ a = rta_lookup(&A); - if (!ipa_equal( ipa_mkmask(ipa_mklen(b->netmask)), b->netmask)) { + if (ipa_mklen(b->netmask)==-1) { log( L_ERR "%I asked me to route %I/%I, but that is not valid netmask.", A.from, b->network, b->netmask ); return; } |