summaryrefslogtreecommitdiffstats
path: root/src/vnet/bier/bier_disp_table.c
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2017-11-15 10:44:07 -0800
committerChris Luke <chris_luke@comcast.com>2017-11-15 19:45:47 +0000
commit93149bb4cd0a137b2a6da4b0d9f8cb2032e44734 (patch)
tree5818b346974d496f784050220ffca9a86052df4f /src/vnet/bier/bier_disp_table.c
parentb8a0d2cf9ff8796123b3c167c051f78ab03cc4cf (diff)
BIER: coverity fixes
Change-Id: I657bade082f9f754b294cd5f23ecfad4f0f46265 Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/bier/bier_disp_table.c')
-rw-r--r--src/vnet/bier/bier_disp_table.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/vnet/bier/bier_disp_table.c b/src/vnet/bier/bier_disp_table.c
index b2541dacc4d..47d23e8ac3b 100644
--- a/src/vnet/bier/bier_disp_table.c
+++ b/src/vnet/bier/bier_disp_table.c
@@ -206,9 +206,11 @@ bier_disp_table_entry_remove (index_t bdti,
static index_t
bier_disp_table_lookup_hton(index_t bdti,
- bier_bp_t src)
+ bier_bp_t bp)
{
- return (bier_disp_table_lookup(bdti, clib_host_to_net_u16(src)));
+ bier_hdr_src_id_t src = bp;
+
+ return (bier_disp_table_lookup(bdti, clib_host_to_net_u32(src)));
}
void