diff options
| author | Sarita Patra <saritap@vmware.com> | 2019-02-22 01:59:07 -0800 | 
|---|---|---|
| committer | Sarita Patra <saritap@vmware.com> | 2019-02-24 21:26:58 -0800 | 
| commit | 957d93eaf2ce5fe4969b406dc5e44677bf60ce5b (patch) | |
| tree | f993a2975b1dcb9f9d6f6a741db3860290319193 /pimd/pim_join.c | |
| parent | d8bed89dca5955fe298c108afe78b13a95469cea (diff) | |
pimd: Handling Null incoming interface of dummy upstream
When FRR receives IGMP/PIM (*, G) join and RP is not configured or not
reachable, then we are creating a dummy upstream with incoming interface
as NULL and upstream address as INADDR_ANY.
Added upstream address and incoming interface validation where it is necessary,
before doing any operation on the upstream.
Signed-off-by: Sarita Patra <saritap@vmware.com>
Diffstat (limited to 'pimd/pim_join.c')
| -rw-r--r-- | pimd/pim_join.c | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/pimd/pim_join.c b/pimd/pim_join.c index ae5032be73..cbacaf3ea8 100644 --- a/pimd/pim_join.c +++ b/pimd/pim_join.c @@ -439,9 +439,6 @@ int pim_joinprune_send(struct pim_rpf *rpf, struct list *groups)  	size_t packet_size = 0;  	size_t group_size = 0; -	on_trace(__PRETTY_FUNCTION__, rpf->source_nexthop.interface, -		 rpf->rpf_addr.u.prefix4); -  	if (rpf->source_nexthop.interface)  		pim_ifp = rpf->source_nexthop.interface->info;  	else { @@ -450,6 +447,9 @@ int pim_joinprune_send(struct pim_rpf *rpf, struct list *groups)  		return -1;  	} +	on_trace(__PRETTY_FUNCTION__, rpf->source_nexthop.interface, +		rpf->rpf_addr.u.prefix4); +  	if (!pim_ifp) {  		zlog_warn("%s: multicast not enabled on interface %s",  			  __PRETTY_FUNCTION__,  | 
