]> git.puffer.fish Git - mirror/frr.git/commit
nhrpd: Add Hop Count Validation Before Forwarding in nhrp_peer_recv() 18616/head
authorzmw12306 <zmw12306@gmail.com>
Mon, 7 Apr 2025 20:13:45 +0000 (16:13 -0400)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Tue, 8 Apr 2025 16:29:44 +0000 (16:29 +0000)
commit06bd33495dfd77e5d4506a8aeb3303b2e6ef392b
treeae225bc3527ad6716230c9e33c519292bdccffee
parent18716fecb975bd6fbfa7544a26971ea21fbb1b87
nhrpd: Add Hop Count Validation Before Forwarding in nhrp_peer_recv()

According to [RFC 2332, Section 5.1], if an NHS receives a packet that it would normally forward and the hop count is zero, it must send an error indication back to the source and drop the packet.

Signed-off-by: zmw12306 <zmw12306@gmail.com>
(cherry picked from commit 7c877164820bfc1cd7f84b3f7529f716b0f897cd)
nhrpd/nhrp_peer.c