summaryrefslogtreecommitdiffstats
path: root/src/vnet/bier/bier_api.c
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2017-12-13 09:13:41 -0800
committerNeale Ranns <nranns@cisco.com>2017-12-14 09:25:31 +0000
commitceb4d05ba0fb9771069b0081b928a9e75401fc87 (patch)
treecf05e164bcd06abde9e75a72ff402837a0644a2c /src/vnet/bier/bier_api.c
parentff6e7699a5e9921d73818970ecf3571080922ecc (diff)
BIER disposition default route
Change-Id: I7196ad8bf6afaf356674789c05e23ac000bc038e Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/bier/bier_api.c')
-rw-r--r--src/vnet/bier/bier_api.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vnet/bier/bier_api.c b/src/vnet/bier/bier_api.c
index 67c70462540..002ea0b051a 100644
--- a/src/vnet/bier/bier_api.c
+++ b/src/vnet/bier/bier_api.c
@@ -496,7 +496,10 @@ vl_api_bier_disp_entry_add_del_t_handler (vl_api_bier_disp_entry_add_del_t * mp)
table_id = ntohl(mp->bde_tbl_id);
bp = ntohs(mp->bde_bp);
- if (0 == bp || bp > 0xffff)
+ /*
+ * BP=0 is the default route
+ */
+ if (bp > 0xffff)
{
rv = -1;
goto done;