]> git.proxmox.com Git - mirror_frr.git/commit
nhrp: improve CIE prefix length handling
authorTimo Teräs <timo.teras@iki.fi>
Wed, 17 May 2017 22:36:07 +0000 (18:36 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 17 May 2017 22:36:39 +0000 (18:36 -0400)
commit55fd6ee9ca49301ddfe5f2e3af11cfa89eebdeef
treea94c71b13d07b0164d5ce0df92f5d1dad02b9808
parentd258c885bdc4e4a8141668fd94db1e24b5b8588a
nhrp: improve CIE prefix length handling

RFC2332 states that prefix length MUST be 0xff for unique bindings.
However, it seems at least some Cisco firmwares use host prefix
length instead (which on wire level makes sense). Relax the handling
of prefix length to treat all value longer than address length as
0xff. Additionally treat 0x00 the same way too, this is required
by the RFC. This also fixes the prefix length address family to be
checked against protocol address.
Signed-off-by: Timo Teräs <timo.teras@iki.fi>
nhrpd/nhrp_nhs.c
nhrpd/nhrp_peer.c
nhrpd/nhrp_shortcut.c