mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 15:33:56 +00:00
Merge pull request #8615 from dslicenc/eigrp-asn-check
eigrpd: Test for EIGRP AS number and ensure it's the same
This commit is contained in:
commit
c973779d02
@ -572,9 +572,14 @@ int eigrp_read(struct thread *thread)
|
|||||||
&& IS_DEBUG_EIGRP_TRANSMIT(0, PACKET_DETAIL))
|
&& IS_DEBUG_EIGRP_TRANSMIT(0, PACKET_DETAIL))
|
||||||
eigrp_header_dump(eigrph);
|
eigrp_header_dump(eigrph);
|
||||||
|
|
||||||
// if (MSG_OK != eigrp_packet_examin(eigrph, stream_get_endp(ibuf) -
|
if (ntohs(eigrph->ASNumber) != eigrp->AS) {
|
||||||
// stream_get_getp(ibuf)))
|
if (IS_DEBUG_EIGRP_TRANSMIT(0, RECV))
|
||||||
// return -1;
|
zlog_debug(
|
||||||
|
"ignoring packet from router %u sent to %pI4, wrong AS Number received: %u",
|
||||||
|
ntohs(eigrph->vrid), &iph->ip_dst,
|
||||||
|
ntohs(eigrph->ASNumber));
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* If incoming interface is passive one, ignore it. */
|
/* If incoming interface is passive one, ignore it. */
|
||||||
if (eigrp_if_is_passive(ei)) {
|
if (eigrp_if_is_passive(ei)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user