]> git.puffer.fish Git - mirror/frr.git/commit
nhrpd: Set correct prefix length in nhrp registration
authorAmol Lad <amol.lad@4rf.com>
Sat, 17 Oct 2020 05:32:19 +0000 (11:02 +0530)
committerReuben Dowle <reuben.dowle@4rf.com>
Wed, 16 Dec 2020 21:03:14 +0000 (10:03 +1300)
commitf7f9a3770e5fed62d642a8feef9f972710aeba7b
tree644bb4a9d5d89a065ed3929dd76ba93c2722c8fc
parent06ee6e6deef43fd30ad6ccb2ca420e7f0712ee22
nhrpd: Set correct prefix length in nhrp registration

RFC2332 section 5.2.1 states (regarding the uniqueness bit) that:

       Note that when this bit is set in an NHRP Registration Request, only a
       single CIE may be specified in the NHRP Registration Request and that
       CIE must have the Prefix Length field set to 0xFF. the prefix length is
       the widest acceptable destination protocol address prefix. However, if
       "Uniqueness" bit is set  then it must be 255

This patch implements this requirement, which fixes interoperability with Cisco
NHRP hub routers.

Signed-off-by: Reuben Dowle <reuben.dowle@4rf.com>
nhrpd/nhrp_nhs.c [changed mode: 0644->0755]