diff options
Diffstat (limited to 'pimd')
| -rw-r--r-- | pimd/pim_cmd.c | 6 | ||||
| -rw-r--r-- | pimd/pim_ifchannel.c | 9 | ||||
| -rw-r--r-- | pimd/pim_igmp.c | 4 | ||||
| -rw-r--r-- | pimd/pim_igmp_mtrace.c | 53 | 
4 files changed, 23 insertions, 49 deletions
diff --git a/pimd/pim_cmd.c b/pimd/pim_cmd.c index 6919ed9a6d..6ede015a0e 100644 --- a/pimd/pim_cmd.c +++ b/pimd/pim_cmd.c @@ -4979,8 +4979,7 @@ static void pim_show_mlag_help_string(struct vty *vty, bool uj)  	if (!uj) {  		vty_out(vty, "Owner codes:\n");  		vty_out(vty, -			"L: EVPN-MLAG Entry, I:PIM-MLAG Entry, " -			"P: Peer Entry\n"); +			"L: EVPN-MLAG Entry, I:PIM-MLAG Entry, P: Peer Entry\n");  	}  } @@ -8404,8 +8403,7 @@ DEFUN_HIDDEN (interface_ip_pim_ssm,  	}  	vty_out(vty, -		"WARN: Enabled PIM SM on interface; configure PIM SSM " -		"range if needed\n"); +		"WARN: Enabled PIM SM on interface; configure PIM SSM range if needed\n");  	return CMD_SUCCESS;  } diff --git a/pimd/pim_ifchannel.c b/pimd/pim_ifchannel.c index 89fd2bd215..212c77c039 100644 --- a/pimd/pim_ifchannel.c +++ b/pimd/pim_ifchannel.c @@ -139,8 +139,7 @@ void pim_ifchannel_delete(struct pim_ifchannel *ch)  	if (PIM_I_am_DualActive(pim_ifp)) {  		if (PIM_DEBUG_MLAG)  			zlog_debug( -				"%s: if-chnanel-%s is deleted from a Dual " -				"active Interface", +				"%s: if-chnanel-%s is deleted from a Dual active Interface",  				__func__, ch->sg_str);  		/* Post Delete only if it is the last Dual-active Interface */  		if (ch->upstream->dualactive_ifchannel_count == 1) { @@ -214,8 +213,7 @@ void pim_ifchannel_delete(struct pim_ifchannel *ch)  	else {  		if (PIM_DEBUG_PIM_TRACE)  			zlog_debug( -				"%s: Avoiding deletion of upstream with ref_count %d " -				"from ifchannel(%s): %s", +				"%s: Avoiding deletion of upstream with ref_count %d from ifchannel(%s): %s",  				__func__, ch->upstream->ref_count,  				ch->interface->name, ch->sg_str);  	} @@ -622,8 +620,7 @@ struct pim_ifchannel *pim_ifchannel_add(struct interface *ifp,  		}  		if (PIM_DEBUG_MLAG)  			zlog_debug( -				"%s: New Dual active if-chnanel is added to upstream:%s " -				"count:%d, flags:0x%x", +				"%s: New Dual active if-chnanel is added to upstream:%s count:%d, flags:0x%x",  				__func__, up->sg_str,  				up->dualactive_ifchannel_count, up->flags);  	} diff --git a/pimd/pim_igmp.c b/pimd/pim_igmp.c index 851b00b2ac..a8612f91fa 100644 --- a/pimd/pim_igmp.c +++ b/pimd/pim_igmp.c @@ -351,9 +351,7 @@ static int igmp_recv_query(struct igmp_sock *igmp, int query_version,  	 */  	if (query_version != pim_ifp->igmp_version) {  		zlog_warn( -			"Recv IGMP query v%d from %s on %s but we are using v%d, please " -			"configure all PIM routers on this subnet to use the same " -			"IGMP version", +			"Recv IGMP query v%d from %s on %s but we are using v%d, please configure all PIM routers on this subnet to use the same IGMP version",  			query_version, from_str, ifp->name,  			pim_ifp->igmp_version);  		return 0; diff --git a/pimd/pim_igmp_mtrace.c b/pimd/pim_igmp_mtrace.c index cac6fab271..9e78b76008 100644 --- a/pimd/pim_igmp_mtrace.c +++ b/pimd/pim_igmp_mtrace.c @@ -231,9 +231,7 @@ static void mtrace_debug(struct pim_interface *pim_ifp,  	ra = mtracep->rsp_addr;  	zlog_debug( -		"Rx mtrace packet incoming on %s: " -		"hops=%d type=%d size=%d, grp=%s, src=%s," -		" dst=%s rsp=%s ttl=%d qid=%ud", +		"Rx mtrace packet incoming on %s: hops=%d type=%d size=%d, grp=%s, src=%s, dst=%s rsp=%s ttl=%d qid=%ud",  		inet_ntop(AF_INET, &(pim_ifp->primary_address), inc_str,  			  sizeof(inc_str)),  		mtracep->hops, mtracep->type, mtrace_len, @@ -255,8 +253,7 @@ static void mtrace_debug(struct pim_interface *pim_ifp,  		if ((responses % sizeof(struct igmp_mtrace_rsp)) != 0)  			if (PIM_DEBUG_MTRACE)  				zlog_debug( -					"Mtrace response block of wrong" -					" length"); +					"Mtrace response block of wrong length");  		responses = responses / sizeof(struct igmp_mtrace_rsp); @@ -358,17 +355,14 @@ static int mtrace_send_packet(struct interface *ifp,  		if (sent < 0) {  			if (PIM_DEBUG_MTRACE)  				zlog_warn( -					"Send mtrace request failed for %s on" -					"%s: group=%s msg_size=%zd: errno=%d: " -					" %s", +					"Send mtrace request failed for %s on%s: group=%s msg_size=%zd: errno=%d:  %s",  					dst_str, ifp->name, group_str,  					mtrace_buf_len, errno,  					safe_strerror(errno));  		} else {  			if (PIM_DEBUG_MTRACE)  				zlog_warn( -					"Send mtrace request failed for %s on" -					" %s: group=%s msg_size=%zd: sent=%zd", +					"Send mtrace request failed for %s on %s: group=%s msg_size=%zd: sent=%zd",  					dst_str, ifp->name, group_str,  					mtrace_buf_len, sent);  		} @@ -418,8 +412,7 @@ static int mtrace_un_forward_packet(struct pim_instance *pim, struct ip *ip_hdr,  			close(fd);  			if (PIM_DEBUG_MTRACE)  				zlog_warn( -					"Dropping mtrace packet, " -					"no route to destination"); +					"Dropping mtrace packet, no route to destination");  			return -1;  		} @@ -448,8 +441,7 @@ static int mtrace_un_forward_packet(struct pim_instance *pim, struct ip *ip_hdr,  	if (sent < 0) {  		if (PIM_DEBUG_MTRACE)  			zlog_warn( -				"Failed to forward mtrace packet:" -				" sendto errno=%d, %s", +				"Failed to forward mtrace packet: sendto errno=%d, %s",  				errno, safe_strerror(errno));  		return -1;  	} @@ -480,8 +472,7 @@ static int mtrace_mc_forward_packet(struct pim_instance *pim, struct ip *ip_hdr)  	if (c_oil == NULL) {  		if (PIM_DEBUG_MTRACE) {  			zlog_debug( -				"Dropping mtrace multicast packet " -				"len=%u to %s ttl=%u", +				"Dropping mtrace multicast packet len=%u to %s ttl=%u",  				ntohs(ip_hdr->ip_len),  				inet_ntoa(ip_hdr->ip_dst), ip_hdr->ip_ttl);  		} @@ -532,8 +523,7 @@ static int mtrace_send_mc_response(struct pim_instance *pim,  	if (c_oil == NULL) {  		if (PIM_DEBUG_MTRACE) {  			zlog_debug( -				"Dropping mtrace multicast response packet " -				"len=%u to %s", +				"Dropping mtrace multicast response packet len=%u to %s",  				(unsigned int)mtrace_len,  				inet_ntoa(mtracep->rsp_addr));  		} @@ -595,8 +585,7 @@ static int mtrace_send_response(struct pim_instance *pim,  		if (!pim_nexthop_lookup(pim, &nexthop, mtracep->rsp_addr, 1)) {  			if (PIM_DEBUG_MTRACE)  				zlog_warn( -					"Dropped response qid=%ud, no route to " -					"response address", +					"Dropped response qid=%ud, no route to response address",  					mtracep->qry_id);  			return -1;  		} @@ -645,8 +634,7 @@ int igmp_mtrace_recv_qry_req(struct igmp_sock *igmp, struct ip *ip_hdr,  	if (igmp_msg_len < (int)sizeof(struct igmp_mtrace)) {  		if (PIM_DEBUG_MTRACE)  			zlog_warn( -				"Recv mtrace packet from %s on %s: too short," -				" len=%d, min=%zu", +				"Recv mtrace packet from %s on %s: too short, len=%d, min=%zu",  				from_str, ifp->name, igmp_msg_len,  				sizeof(struct igmp_mtrace));  		return -1; @@ -663,8 +651,7 @@ int igmp_mtrace_recv_qry_req(struct igmp_sock *igmp, struct ip *ip_hdr,  	if (recv_checksum != checksum) {  		if (PIM_DEBUG_MTRACE)  			zlog_warn( -				"Recv mtrace packet from %s on %s: checksum" -				" mismatch: received=%x computed=%x", +				"Recv mtrace packet from %s on %s: checksum mismatch: received=%x computed=%x",  				from_str, ifp->name, recv_checksum, checksum);  		return -1;  	} @@ -688,8 +675,7 @@ int igmp_mtrace_recv_qry_req(struct igmp_sock *igmp, struct ip *ip_hdr,  			if (IPV4_CLASS_DE(ntohl(ip_hdr->ip_dst.s_addr))) {  				if (PIM_DEBUG_MTRACE)  					zlog_debug( -						"Dropping multicast query " -						"on wrong interface"); +						"Dropping multicast query on wrong interface");  				return -1;  			}  			/* Unicast query on wrong interface */ @@ -700,8 +686,7 @@ int igmp_mtrace_recv_qry_req(struct igmp_sock *igmp, struct ip *ip_hdr,  		if (qry_id == mtracep->qry_id && qry_src == from.s_addr) {  			if (PIM_DEBUG_MTRACE)  				zlog_debug( -					"Dropping multicast query with " -					"duplicate source and id"); +					"Dropping multicast query with duplicate source and id");  			return -1;  		}  		qry_id = mtracep->qry_id; @@ -721,8 +706,7 @@ int igmp_mtrace_recv_qry_req(struct igmp_sock *igmp, struct ip *ip_hdr,  	} else {  		if (PIM_DEBUG_MTRACE)  			zlog_warn( -				"Recv mtrace packet from %s on %s: " -				"invalid length %d", +				"Recv mtrace packet from %s on %s: invalid length %d",  				from_str, ifp->name, igmp_msg_len);  		return -1;  	} @@ -732,8 +716,7 @@ int igmp_mtrace_recv_qry_req(struct igmp_sock *igmp, struct ip *ip_hdr,  	    && !IPV4_MC_LINKLOCAL(ntohl(ip_hdr->ip_dst.s_addr))) {  		if (PIM_DEBUG_MTRACE)  			zlog_warn( -				"Recv mtrace packet from %s on %s:" -				" not link-local multicast %s", +				"Recv mtrace packet from %s on %s: not link-local multicast %s",  				from_str, ifp->name, inet_ntoa(ip_hdr->ip_dst));  		return -1;  	} @@ -866,8 +849,7 @@ int igmp_mtrace_recv_response(struct igmp_sock *igmp, struct ip *ip_hdr,  	if (igmp_msg_len < (int)sizeof(struct igmp_mtrace)) {  		if (PIM_DEBUG_MTRACE)  			zlog_warn( -				"Recv mtrace packet from %s on %s: too short," -				" len=%d, min=%zu", +				"Recv mtrace packet from %s on %s: too short, len=%d, min=%zu",  				from_str, ifp->name, igmp_msg_len,  				sizeof(struct igmp_mtrace));  		return -1; @@ -884,8 +866,7 @@ int igmp_mtrace_recv_response(struct igmp_sock *igmp, struct ip *ip_hdr,  	if (recv_checksum != checksum) {  		if (PIM_DEBUG_MTRACE)  			zlog_warn( -				"Recv mtrace response from %s on %s: checksum" -				" mismatch: received=%x computed=%x", +				"Recv mtrace response from %s on %s: checksum mismatch: received=%x computed=%x",  				from_str, ifp->name, recv_checksum, checksum);  		return -1;  	}  | 
