diff options
| author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-07-01 17:53:21 +0300 | 
|---|---|---|
| committer | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-07-01 17:53:21 +0300 | 
| commit | 13ccce6e7e5b6f7801910fca53c4c45502bf6213 (patch) | |
| tree | 1137ab12737b73f976df3df678ab826a8d335c71 /bgpd/bgp_label.c | |
| parent | 936fbaef4794277a56185c535574df0f2771c117 (diff) | |
*: Convert numeric 128 into IPV6_MAX_BITLEN for prefixlen
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'bgpd/bgp_label.c')
| -rw-r--r-- | bgpd/bgp_label.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_label.c b/bgpd/bgp_label.c index 73ca9f07e0..975f7ecbd7 100644 --- a/bgpd/bgp_label.c +++ b/bgpd/bgp_label.c @@ -391,7 +391,7 @@ int bgp_nlri_parse_label(struct peer *peer, struct attr *attr,  		}  		if ((afi == AFI_IP && p.prefixlen > 32) -		    || (afi == AFI_IP6 && p.prefixlen > 128)) +		    || (afi == AFI_IP6 && p.prefixlen > IPV6_MAX_BITLEN))  			return BGP_NLRI_PARSE_ERROR_PREFIX_LENGTH;  		/* Fetch prefix from NLRI packet */  | 
