diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-08-31 08:49:10 -0400 | 
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-08-31 10:30:19 -0400 | 
| commit | ea89ab14e26e7041277e0a584ea7144e9cb455ac (patch) | |
| tree | 0d520293ee0cceaf5fd827d5edf23331d6a98496 /pimd/pim_rpf.c | |
| parent | ce94edc7339dc4eddabe27ee35ffda5cce2b9094 (diff) | |
pimd: Smarten up pim_nexthop_lookup
There exists cases where we have not properly configured
a RP yet, but we are getting callbacks for nocache.
This is generating allot of spam messages in the log.
In the case where we attempt to lookup INADDR_NONE
just say it fails without need to talk to anyone
since we'll never get a real answer from zebra
anyways.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_rpf.c')
| -rw-r--r-- | pimd/pim_rpf.c | 8 | 
1 files changed, 8 insertions, 0 deletions
diff --git a/pimd/pim_rpf.c b/pimd/pim_rpf.c index 36c6c894ef..fd09b04b8a 100644 --- a/pimd/pim_rpf.c +++ b/pimd/pim_rpf.c @@ -61,6 +61,14 @@ int pim_nexthop_lookup(struct pim_instance *pim, struct pim_nexthop *nexthop,  	int found = 0;  	int i = 0; +	/* +	 * We should not attempt to lookup a +	 * 255.255.255.255 address, since +	 * it will never work +	 */ +	if (addr.s_addr == INADDR_NONE) +		return -1; +  	if ((nexthop->last_lookup.s_addr == addr.s_addr)  	    && (nexthop->last_lookup_time > last_route_change_time)) {  		if (PIM_DEBUG_TRACE) {  | 
