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:
@@ -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 );
|
||||
}
|
||||
|
Reference in New Issue
Block a user