]> git.puffer.fish Git - matthieu/frr.git/commit
nhrpd: Add Hop Count Validation Before Forwarding in nhrp_peer_recv()
authorzmw12306 <zmw12306@gmail.com>
Mon, 7 Apr 2025 20:13:45 +0000 (16:13 -0400)
committerzmw12306 <zmw12306@gmail.com>
Mon, 7 Apr 2025 20:13:45 +0000 (16:13 -0400)
commit7c877164820bfc1cd7f84b3f7529f716b0f897cd
tree06102552f6dde8b8a21722ff7c7ca2962c0cf9e6
parent44c4743e08710fd9dda12105ff6fbec2547faf51
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>
nhrpd/nhrp_peer.c