diff options
author | jerryian <gu.jian1@zte.com.cn> | 2016-12-05 17:13:00 +0800 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2016-12-05 10:53:49 +0000 |
commit | ff82ed6ccf09b93e1bf1432d9f26e66f91b60191 (patch) | |
tree | b10eab93a3d1d7e94d2dbe61ab41419191ba1ee4 | |
parent | b46227a6dfc8fe326ac0fd1a7cd8aa6595cdc2d3 (diff) |
Fix crash in debug mode when call ethernet_register_l3_redirect()
Change-Id: I1c2a13663ec75460cd28ea8593aa8de3f27e47b9
Signed-off-by: jerryian <gu.jian1@zte.com.cn>
-rwxr-xr-x[-rw-r--r--] | vnet/vnet/ethernet/node.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vnet/vnet/ethernet/node.c b/vnet/vnet/ethernet/node.c index c8dc05e4100..5a27fd0c750 100644..100755 --- a/vnet/vnet/ethernet/node.c +++ b/vnet/vnet/ethernet/node.c @@ -1334,6 +1334,10 @@ ethernet_register_l3_redirect (vlib_main_t * vm, u32 node_index) i = vlib_node_add_next (vm, ethernet_input_type_node.index, node_index); ASSERT (i == em->redirect_l3_next); + + i = vlib_node_add_next (vm, ethernet_input_not_l2_node.index, node_index); + + ASSERT (i == em->redirect_l3_next); } /* |