From 86327be9751ad54cb24d16c161cacb001dc20772 Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Fri, 2 Nov 2018 09:14:01 -0700 Subject: Genric API types format/unformat support for VAT and custom dump Change-Id: I8bc3a991f0ede0605d78b51ba609fbe5889513f2 Signed-off-by: Neale Ranns --- src/vat/CMakeLists.txt | 1 + src/vat/api_format.c | 11 +++++++++++ src/vat/types.c | 1 + 3 files changed, 13 insertions(+) create mode 120000 src/vat/types.c (limited to 'src/vat') diff --git a/src/vat/CMakeLists.txt b/src/vat/CMakeLists.txt index 2ff907026db..e7f26d4491e 100644 --- a/src/vat/CMakeLists.txt +++ b/src/vat/CMakeLists.txt @@ -28,6 +28,7 @@ add_vpp_executable(vpp_api_test ENABLE_EXPORTS main.c plugin.c json_format.c + types.c LINK_LIBRARIES vlibmemoryclient diff --git a/src/vat/api_format.c b/src/vat/api_format.c index efd116dd7a7..8b8d0c9fdc0 100644 --- a/src/vat/api_format.c +++ b/src/vat/api_format.c @@ -18,6 +18,7 @@ */ #include +#include #include #include #include @@ -53,6 +54,8 @@ #include #include #include "vat/json_format.h" +#include +#include #include #include @@ -79,6 +82,14 @@ #if VPP_API_TEST_BUILTIN == 0 #include +/* *INDENT-OFF* */ +const mac_address_t ZERO_MAC_ADDRESS = { + .bytes = { + 0, 0, 0, 0, 0, 0, + }, +}; +/* *INDENT-ON* */ + u32 vl (void *p) { diff --git a/src/vat/types.c b/src/vat/types.c new file mode 120000 index 00000000000..8bcab8874ef --- /dev/null +++ b/src/vat/types.c @@ -0,0 +1 @@ +../vpp/api/types.c \ No newline at end of file -- cgit 1.2.3-korg