diff options
author | Alexander Popovsky (apopovsk) <apopovsk@cisco.com> | 2016-11-15 15:36:23 -0800 |
---|---|---|
committer | John Lo <loj@cisco.com> | 2016-11-16 07:24:26 +0000 |
commit | 740bcdbd2b13bef4f5c9b487ed0dcbbee6a760c9 (patch) | |
tree | 88ccaafef0c9e57d046830cb591c9450f9a1185e /vnet/vnet/ip/udp.h | |
parent | 25e26dc5136137c771715145dd5b2884060ff9eb (diff) |
Add an ability to punt all unknown UDP traffic to the host
By default, VPP replies with ICMP error: port unreachable when receives
an ‘unknown’ UDP (destination port with no registered listener) packet.
An existing punt() API is extended to accept ALL (~0) as a L4 port
number and if used redirects all ‘unknown’ UDP packets to the host.
New ‘all’ option is added to the “set punt udp” CLI as well.
Change-Id: I444fc5e32ffa3f0f085bb17708bf32b883ba09df
Signed-off-by: Alexander Popovsky (apopovsk) <apopovsk@cisco.com>
Diffstat (limited to 'vnet/vnet/ip/udp.h')
-rw-r--r-- | vnet/vnet/ip/udp.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vnet/vnet/ip/udp.h b/vnet/vnet/ip/udp.h index 1845fa74a46..4de30f1d16f 100644 --- a/vnet/vnet/ip/udp.h +++ b/vnet/vnet/ip/udp.h @@ -114,6 +114,8 @@ void udp_register_dst_port (vlib_main_t * vm, udp_dst_port_t dst_port, u32 node_index, u8 is_ip4); +void udp_punt_unknown(vlib_main_t * vm, u8 is_ip4, u8 is_add); + always_inline void ip_udp_fixup_one (vlib_main_t * vm, vlib_buffer_t * b0, |