diff options
author | Paul Vinciguerra <pvinci@vinciconsulting.com> | 2019-08-07 00:05:59 -0400 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2019-08-20 13:35:21 +0000 |
commit | e71748291171e53158e2d36d8f413fed1a137013 (patch) | |
tree | 2cd4c20efd3fd75e3e180ae39fd2ab400c406d75 /src/plugins/nat | |
parent | 630ab5846bceddf8d663e9f488a2dc0378949827 (diff) |
vppapigen: remove support for legacy typedefs
vppapigen has remapped legacy to typedefs behind the scenes
for some time now.
- update .api files to use new style typedefs.
- issue error on 'typeonly define' in .api files
- remove unneeded macros redefining vl_noop_handler
Type: refactor
Change-Id: I7a8c4a6dafacee6a131f95cd0e9b03a8c60dea8b
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'src/plugins/nat')
-rw-r--r-- | src/plugins/nat/nat.api | 2 | ||||
-rw-r--r-- | src/plugins/nat/nat_api.c | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/nat/nat.api b/src/plugins/nat/nat.api index b5057ce1d3c..bd880a6498d 100644 --- a/src/plugins/nat/nat.api +++ b/src/plugins/nat/nat.api @@ -893,7 +893,7 @@ define nat44_user_session_details { @param probability - probability of the internal node to be randomly matched @param vrf_id - VRF id */ -typeonly manual_endian define nat44_lb_addr_port { +typedef nat44_lb_addr_port { vl_api_ip4_address_t addr; u16 port; u8 probability; diff --git a/src/plugins/nat/nat_api.c b/src/plugins/nat/nat_api.c index ff11a82f099..5eaf7672914 100644 --- a/src/plugins/nat/nat_api.c +++ b/src/plugins/nat/nat_api.c @@ -33,7 +33,6 @@ #include <vnet/fib/fib_table.h> #include <vnet/ip/ip_types_api.h> -#define vl_api_nat44_lb_addr_port_t_endian vl_noop_handler #define vl_api_nat44_add_del_lb_static_mapping_t_endian vl_noop_handler #define vl_api_nat44_nat44_lb_static_mapping_details_t_endian vl_noop_handler |