Add an ability to punt all unknown UDP traffic to the host 40/3840/2
authorAlexander Popovsky (apopovsk) <[email protected]>
Tue, 15 Nov 2016 23:36:23 +0000 (15:36 -0800)
committerJohn Lo <[email protected]>
Wed, 16 Nov 2016 07:24:26 +0000 (07:24 +0000)
commit740bcdbd2b13bef4f5c9b487ed0dcbbee6a760c9
tree88ccaafef0c9e57d046830cb591c9450f9a1185e
parent25e26dc5136137c771715145dd5b2884060ff9eb
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) <[email protected]>
vnet/vnet/ip/punt.c
vnet/vnet/ip/udp.h
vnet/vnet/ip/udp_error.def
vnet/vnet/ip/udp_local.c