diff options
author | Mark Bryars <mbryars@ibahn.com> | 2012-10-03 09:34:13 +0000 |
---|---|---|
committer | Mark Bryars <mbryars@ibahn.com> | 2012-10-03 09:34:13 +0000 |
commit | ea90649a1415c16294b6744685875ae66486e814 (patch) | |
tree | 372b2fb9e81318c4ac045181475b5c066c7bc547 /nhrp/nhrp_peer.c | |
parent | e756c7948078bd5109c5b8a0f252851efc4532d6 (diff) | |
download | vyos-opennhrp-ea90649a1415c16294b6744685875ae66486e814.tar.gz vyos-opennhrp-ea90649a1415c16294b6744685875ae66486e814.zip |
Imported Upstream version 0.13.1
Diffstat (limited to 'nhrp/nhrp_peer.c')
-rw-r--r-- | nhrp/nhrp_peer.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nhrp/nhrp_peer.c b/nhrp/nhrp_peer.c index c53d4c4..7bd1a79 100644 --- a/nhrp/nhrp_peer.c +++ b/nhrp/nhrp_peer.c @@ -1833,6 +1833,12 @@ int nhrp_peer_match(struct nhrp_peer *p, struct nhrp_peer_selector *sel) p->parent != sel->parent) return FALSE; + if (sel->local_nbma_address.type != PF_UNSPEC) { + if (nhrp_address_cmp(&p->my_nbma_address, + &sel->local_nbma_address) != 0) + return FALSE; + } + if (sel->protocol_address.type != PF_UNSPEC) { if (sel->prefix_length == 0) sel->prefix_length = sel->protocol_address.addr_len * 8; |