]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
SImplify code a tiny bit.
authorPavel Machek <pavel@ucw.cz>
Wed, 14 Apr 1999 21:11:24 +0000 (21:11 +0000)
committerPavel Machek <pavel@ucw.cz>
Wed, 14 Apr 1999 21:11:24 +0000 (21:11 +0000)
proto/rip/rip.c

index c2285a7b102420d3d65bc4a96e5b309683e457c9..cfaaa4c3da15e15d6703193910cf84ba40c2614f 100644 (file)
@@ -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;
   }