diff options
author | Neale Ranns <nranns@cisco.com> | 2019-05-21 06:54:54 -0700 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2019-06-04 10:32:46 +0000 |
commit | b538dd868665009f9a3737610177342f88e3ba80 (patch) | |
tree | 2e2a1964e56a70e7c2584668b8f32017311e834c /src/vnet/ip/ip6_forward.c | |
parent | 0c6ac791dde099346af1752aa92d0eb05fc2db11 (diff) |
Punt: specify packets by IP protocol Type
Change-Id: I0c2d6fccd95146e52bb88ca4a6e84554d5d6b2ed
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/ip/ip6_forward.c')
-rw-r--r-- | src/vnet/ip/ip6_forward.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/vnet/ip/ip6_forward.c b/src/vnet/ip/ip6_forward.c index 74f51fa912f..b6eae6e3811 100644 --- a/src/vnet/ip/ip6_forward.c +++ b/src/vnet/ip/ip6_forward.c @@ -1433,6 +1433,16 @@ ip6_register_protocol (u32 protocol, u32 node_index) vlib_node_add_next (vm, ip6_local_node.index, node_index); } +void +ip6_unregister_protocol (u32 protocol) +{ + ip6_main_t *im = &ip6_main; + ip_lookup_main_t *lm = &im->lookup_main; + + ASSERT (protocol < ARRAY_LEN (lm->local_next_by_ip_protocol)); + lm->local_next_by_ip_protocol[protocol] = IP_LOCAL_NEXT_PUNT; +} + clib_error_t * ip6_probe_neighbor (vlib_main_t * vm, ip6_address_t * dst, u32 sw_if_index, u8 refresh) |