From ea90649a1415c16294b6744685875ae66486e814 Mon Sep 17 00:00:00 2001 From: Mark Bryars Date: Wed, 3 Oct 2012 09:34:13 +0000 Subject: Imported Upstream version 0.13.1 --- nhrp/nhrp_peer.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'nhrp/nhrp_peer.c') 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; -- cgit v1.2.3