diff options
| author | Donald Sharp <donaldsharp72@gmail.com> | 2022-02-26 08:03:06 -0500 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-26 08:03:06 -0500 | 
| commit | 3bf65aa1ae5fb69bf97c6dc54775a25c13cc4c59 (patch) | |
| tree | 4ea94e01cadb3d0209ad8abdd7fd584b26c55918 /pimd/pim_bsm.c | |
| parent | 356f95a8908174cd2b10e2365eee5a0eae89dcb0 (diff) | |
| parent | ae449dc594e837eaf7eb36de37097d59ad586280 (diff) | |
Merge pull request #10400 from opensourcerouting/pim6-compilefix
pim6d: get running with ipv6 types throughout
Diffstat (limited to 'pimd/pim_bsm.c')
| -rw-r--r-- | pimd/pim_bsm.c | 7 | 
1 files changed, 6 insertions, 1 deletions
diff --git a/pimd/pim_bsm.c b/pimd/pim_bsm.c index 5901ae3439..8d65901b57 100644 --- a/pimd/pim_bsm.c +++ b/pimd/pim_bsm.c @@ -1371,7 +1371,12 @@ int pim_bsm_process(struct interface *ifp, struct ip *ip_hdr, uint8_t *buf,  		}  	} -	if (ip_hdr->ip_dst.s_addr == qpim_all_pim_routers_addr.s_addr) { +#if PIM_IPV == 4 +	if (ip_hdr->ip_dst.s_addr == qpim_all_pim_routers_addr.s_addr) +#else +	if (0) +#endif +	{  		/* Multicast BSMs are only accepted if source interface & IP  		 * match RPF towards the BSR's IP address, or they have  		 * no-forward set  | 
