Merge pull request #5356 from v00lk/master

bgpd: IPv4 LU withdraw using 0x000000 label
This commit is contained in:
Donatas Abraitis 2019-11-27 10:54:25 +02:00 committed by GitHub
commit bdd2a9315e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,7 +58,7 @@ static inline int bgp_is_withdraw_label(mpls_label_t *label)
/* The check on pkt[2] for 0x00 or 0x02 is in case bgp_set_valid_label()
* was called on the withdraw label */
if ((pkt[0] == 0x80) && (pkt[1] == 0x00)
if (((pkt[0] == 0x80) || (pkt[0] == 0x00)) && (pkt[1] == 0x00)
&& ((pkt[2] == 0x00) || (pkt[2] == 0x02)))
return 1;
return 0;