pnat: add support to wildcard IP Protocol field if not specified 12/36112/5
authorFahad Naeem <fahadnaeemkhan@gmail.com>
Tue, 10 May 2022 06:03:52 +0000 (01:03 -0500)
committerOle Tr�an <otroan@employees.org>
Thu, 12 May 2022 07:30:33 +0000 (07:30 +0000)
commit0891b6aa449cca525b61d0cc23759b2efcd158dc
treed2010d7871c420fd9631ec3ea57e62eba738e52e
parente2159bd2d3721592edee90a511647f83ea9a4781
pnat: add support to wildcard IP Protocol field if not specified

- add pnat_binding_add_v2 which explicitly requires match mask to
  set to PNAT_PROTO if we want to match on IP Protocol
- fix pnat_binding_add backward compatibility i.e. no need to set
  match mast to PNAT_PROTO

Type: improvement

Signed-off-by: Fahad Naeem <fahadnaeemkhan@gmail.com>
Change-Id: I5a23244be55b7d4c10552c555881527a4b2f325f
src/plugins/nat/pnat/pnat.api
src/plugins/nat/pnat/pnat.c
src/plugins/nat/pnat/pnat_api.c
src/plugins/nat/pnat/pnat_cli.c
test/test_pnat.py