diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-09-13 18:23:42 +0000 | 
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-09-13 18:51:04 +0000 | 
| commit | e50f7cfdbd6d085cef2e2b60a213af8b971c4c93 (patch) | |
| tree | 6b1598d627efb4cf01dd544385b9baea0e9e0869 /bgpd/bgp_label.c | |
| parent | 6efca3442f9e74c789803cbcfba330cd12de7863 (diff) | |
bgpd: BGP_[WARN|ERR] -> EC_BGP
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_label.c')
| -rw-r--r-- | bgpd/bgp_label.c | 14 | 
1 files changed, 7 insertions, 7 deletions
diff --git a/bgpd/bgp_label.c b/bgpd/bgp_label.c index c32df275a3..e6ab51780f 100644 --- a/bgpd/bgp_label.c +++ b/bgpd/bgp_label.c @@ -192,7 +192,7 @@ static int bgp_nlri_get_labels(struct peer *peer, uint8_t *pnt, uint8_t plen,  	if (!(bgp_is_withdraw_label(label) || label_bos(label)))  		flog_warn( -			BGP_WARN_INVALID_LABEL_STACK, +			EC_BGP_INVALID_LABEL_STACK,  			"%s rcvd UPDATE with invalid label stack - no bottom of stack",  			peer->host); @@ -247,7 +247,7 @@ int bgp_nlri_parse_label(struct peer *peer, struct attr *attr,  		/* sanity check against packet data */  		if ((pnt + psize) > lim) {  			flog_err( -				BGP_ERR_UPDATE_RCV, +				EC_BGP_UPDATE_RCV,  				"%s [Error] Update packet error / L-U (prefix length %d exceeds packet size %u)",  				peer->host, prefixlen, (uint)(lim - pnt));  			return -1; @@ -259,7 +259,7 @@ int bgp_nlri_parse_label(struct peer *peer, struct attr *attr,  		/* There needs to be at least one label */  		if (prefixlen < 24) { -			flog_err(BGP_ERR_UPDATE_RCV, +			flog_err(EC_BGP_UPDATE_RCV,  				  "%s [Error] Update packet error"  				  " (wrong label length %d)",  				  peer->host, prefixlen); @@ -288,7 +288,7 @@ int bgp_nlri_parse_label(struct peer *peer, struct attr *attr,  				 * ignored.  				  */  				flog_err( -					BGP_ERR_UPDATE_RCV, +					EC_BGP_UPDATE_RCV,  					"%s: IPv4 labeled-unicast NLRI is multicast address %s, ignoring",  					peer->host, inet_ntoa(p.u.prefix4));  				continue; @@ -301,7 +301,7 @@ int bgp_nlri_parse_label(struct peer *peer, struct attr *attr,  				char buf[BUFSIZ];  				flog_err( -					BGP_ERR_UPDATE_RCV, +					EC_BGP_UPDATE_RCV,  					"%s: IPv6 labeled-unicast NLRI is link-local address %s, ignoring",  					peer->host,  					inet_ntop(AF_INET6, &p.u.prefix6, buf, @@ -314,7 +314,7 @@ int bgp_nlri_parse_label(struct peer *peer, struct attr *attr,  				char buf[BUFSIZ];  				flog_err( -					BGP_ERR_UPDATE_RCV, +					EC_BGP_UPDATE_RCV,  					"%s: IPv6 unicast NLRI is multicast address %s, ignoring",  					peer->host,  					inet_ntop(AF_INET6, &p.u.prefix6, buf, @@ -338,7 +338,7 @@ int bgp_nlri_parse_label(struct peer *peer, struct attr *attr,  	/* Packet length consistency check. */  	if (pnt != lim) {  		flog_err( -			BGP_ERR_UPDATE_RCV, +			EC_BGP_UPDATE_RCV,  			"%s [Error] Update packet error / L-U (%zu data remaining after parsing)",  			peer->host, lim - pnt);  		return -1;  | 
