1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Changed syntax of ip_class_mask, the old one was stupid.

This commit is contained in:
Martin Mares
1999-10-12 07:46:08 +00:00
parent d3dd620b96
commit 89dc383a8c
2 changed files with 3 additions and 5 deletions

View File

@@ -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 );
}