summaryrefslogtreecommitdiffstats
path: root/proto/rip/rip.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-10-12 09:46:08 +0200
committerMartin Mares <mj@ucw.cz>1999-10-12 09:46:08 +0200
commit89dc383a8ce26bfe49250e5063bcadec22ff42c6 (patch)
tree3018b3f2fa90ec04e27a13f240c76ad618e62f50 /proto/rip/rip.c
parentd3dd620b96c5960207b9321b416423b8130a4df7 (diff)
downloadbird-89dc383a8ce26bfe49250e5063bcadec22ff42c6.tar
bird-89dc383a8ce26bfe49250e5063bcadec22ff42c6.zip
Changed syntax of ip_class_mask, the old one was stupid.
Diffstat (limited to 'proto/rip/rip.c')
-rw-r--r--proto/rip/rip.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/proto/rip/rip.c b/proto/rip/rip.c
index 78eaa65..db84e87 100644
--- a/proto/rip/rip.c
+++ b/proto/rip/rip.c
@@ -318,10 +318,8 @@ rip_process_packet( struct proto *p, struct rip_packet *packet, int num, ip_addr
#ifndef IPV6
ipa_ntoh( block->netmask );
ipa_ntoh( block->nexthop );
- if (packet->heading.version == RIP_V1) {
- block->netmask = block->network; /* MJ: why are macros like this?! */
- ipa_class_mask( block->netmask );
- }
+ if (packet->heading.version == RIP_V1)
+ block->netmask = ipa_class_mask(block->network);
#endif
process_block( p, block, whotoldme );
}