From afbc41ab3d4f07f7dc4dbc6c769fe7fa1567f357 Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Wed, 14 Apr 1999 21:11:24 +0000 Subject: SImplify code a tiny bit. --- proto/rip/rip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'proto/rip') 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; } -- cgit v1.2.3