mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 17:18:56 +00: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;
|
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
|
/* - is the destination address valid (e.g., unicast; not net 0
|
||||||
or 127) */
|
or 127) */
|
||||||
if (!rip_destination_check(rte->prefix)) {
|
if (!rip_destination_check(rte->prefix)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user