summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2019-11-27 10:54:25 +0200
committerGitHub <noreply@github.com>2019-11-27 10:54:25 +0200
commitbdd2a9315eaa679227a775505719583e13f84fdb (patch)
tree92dce1cce419bc379b1d980a695d82416a85b84f
parent3e1cc63a5fb4ed5241868c235df05f51762ec3bb (diff)
parent6b9ce3dc81435e7ce89010ae7e6a50bb6c64ad60 (diff)
Merge pull request #5356 from v00lk/master
bgpd: IPv4 LU withdraw using 0x000000 label
-rw-r--r--bgpd/bgp_label.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_label.h b/bgpd/bgp_label.h
index 89bc9aabb0..523671468b 100644
--- a/bgpd/bgp_label.h
+++ b/bgpd/bgp_label.h
@@ -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;