summaryrefslogtreecommitdiff
path: root/proto/rip/rip.c
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>1999-04-14 21:11:24 +0000
committerPavel Machek <pavel@ucw.cz>1999-04-14 21:11:24 +0000
commitafbc41ab3d4f07f7dc4dbc6c769fe7fa1567f357 (patch)
tree3304cd10162b8cb198c76aa7584797fa7fc348c6 /proto/rip/rip.c
parentb11d8a4f59b3559779938b0a37914a7bc8c07a6b (diff)
SImplify code a tiny bit.
Diffstat (limited to 'proto/rip/rip.c')
-rw-r--r--proto/rip/rip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/rip/rip.c b/proto/rip/rip.c
index c2285a7b..cfaaa4c3 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;
}