From: Pavel Machek Date: Wed, 14 Apr 1999 21:11:24 +0000 (+0000) Subject: SImplify code a tiny bit. X-Git-Tag: v1.2.0~1591 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=afbc41ab3d4f07f7dc4dbc6c769fe7fa1567f357;p=thirdparty%2Fbird.git SImplify code a tiny bit. --- diff --git a/proto/rip/rip.c b/proto/rip/rip.c index c2285a7b1..cfaaa4c3d 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; }