diff options
author | Filip Varga <fivarga@cisco.com> | 2020-09-29 16:53:20 +0200 |
---|---|---|
committer | Filip Varga <fivarga@cisco.com> | 2020-10-09 10:20:21 +0000 |
commit | dd9eae5c29a4379943e60ddf6b7ab96b8e154040 (patch) | |
tree | 5e915d1377ffaf452e9dfa1945516d44c1ac8355 /src/plugins/nat/nat64/nat64.c | |
parent | aa04395573f26fe420d7eb9ca329732b7197fe52 (diff) |
nat: ipfix logging separation & refactor
Type: refactor
Change-Id: I8785e4987e4f60361072440d0c3c6954c9c12394
Signed-off-by: Filip Varga <fivarga@cisco.com>
Diffstat (limited to 'src/plugins/nat/nat64/nat64.c')
-rw-r--r-- | src/plugins/nat/nat64/nat64.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/nat/nat64/nat64.c b/src/plugins/nat/nat64/nat64.c index 5da498670f6..30142a70048 100644 --- a/src/plugins/nat/nat64/nat64.c +++ b/src/plugins/nat/nat64/nat64.c @@ -21,6 +21,7 @@ #include <vnet/plugin/plugin.h> #include <vpp/app/version.h> +#include <nat/lib/ipfix_logging.h> #include <nat/nat64/nat64.h> nat64_main_t nat64_main; @@ -293,9 +294,8 @@ nat64_init (vlib_main_t * vm) nm->port_per_thread = (0xffff - 1024) / _vec_len (nm->workers); } - // TODO: ipfix needs to be separated from NAT base plugin /* Init IPFIX logging */ - //snat_ipfix_logging_init (vm); + nat_ipfix_logging_init (vm); #define _(x) \ nm->counters.in2out.x.name = #x; \ @@ -749,7 +749,7 @@ nat64_alloc_addr_and_port_default (nat64_address_t * addresses, } /* Totally out of translations to use... */ - //snat_ipfix_logging_addresses_exhausted (thread_index, 0); + nat_ipfix_logging_addresses_exhausted (thread_index, 0); return 1; } |