Revert "NAT: VPP-1531 api cleanup & update" 12/19112/2
authorOle Trøan <otroan@employees.org>
Tue, 23 Apr 2019 12:38:35 +0000 (12:38 +0000)
committerOle Trøan <otroan@employees.org>
Tue, 23 Apr 2019 15:08:45 +0000 (15:08 +0000)
commit89fec713f84b8f567c52743c9c514ac29297fbda
tree52c25aa7bd1a23f03f8a176b669b33724f57d09c
parentb8591ac91318984a2706c6388ff836f1a9ef0a16
Revert "NAT: VPP-1531 api cleanup & update"

This reverts commit bed1421b9f1b3643d93384084972337b596aec73.

/vpp/master3/src/plugins/nat/nat_api.c: In function ‘send_nat_worker_details’:
/vpp/master3/src/vppinfra/clib.h:62:33: error: division ‘sizeof (u8 * {aka unsigned char *}) / sizeof (u8 {aka unsigned char})’ does not compute the number of array elements [-Werror=sizeof-pointer-div]
 #define ARRAY_LEN(x) (sizeof (x)/sizeof (x[0]))
                                 ^
/vpp/master3/src/plugins/nat/nat_api.c:205:43: note: in expansion of macro ‘ARRAY_LEN’
   rmp = vl_msg_api_alloc (sizeof (*rmp) + ARRAY_LEN (w->name) - 1);
                                           ^~~~~~~~~

Change-Id: Ie82672c145fb2f6580827f95e535435307bc7a23
Signed-off-by: Ole Troan <ot@cisco.com>
extras/vom/vom/nat_binding.cpp
extras/vom/vom/nat_binding_cmds.cpp
extras/vom/vom/nat_static_cmds.cpp
src/plugins/nat/nat.api
src/plugins/nat/nat.h
src/plugins/nat/nat_api.c
src/plugins/nat/nat_test.c
src/vpp-api/vapi/vapi_json_parser.py
test/test_gbp.py
test/test_nat.py
test/vpp_papi_provider.py