summaryrefslogtreecommitdiff
path: root/lib/filter.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2017-05-17 18:36:07 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-05-17 18:36:39 -0400
commit55fd6ee9ca49301ddfe5f2e3af11cfa89eebdeef (patch)
treea94c71b13d07b0164d5ce0df92f5d1dad02b9808 /lib/filter.c
parentd258c885bdc4e4a8141668fd94db1e24b5b8588a (diff)
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>
Diffstat (limited to 'lib/filter.c')
0 files changed, 0 insertions, 0 deletions