mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
Merge pull request #13366 from zmw12306/rte_tag
ripd: add non-zero check for RIPv1 reserved field
This commit is contained in:
commit
da57946b0e
|
@ -1171,6 +1171,12 @@ static void rip_response_process(struct rip_packet *packet, int size,
|
|||
continue;
|
||||
}
|
||||
|
||||
if (packet->version == RIPv1 && rte->tag != 0) {
|
||||
zlog_warn("RIPv1 reserved field is nonzero: %d",
|
||||
ntohs(rte->tag));
|
||||
continue;
|
||||
}
|
||||
|
||||
/* - is the destination address valid (e.g., unicast; not net 0
|
||||
or 127) */
|
||||
if (!rip_destination_check(rte->prefix)) {
|
||||
|
|
Loading…
Reference in a new issue