Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
nat: cleanup & reorganization
[vpp.git]
/
src
/
plugins
/
nat
/
lib
/
ipfix_logging.c
diff --git
a/src/plugins/nat/lib/ipfix_logging.c
b/src/plugins/nat/lib/ipfix_logging.c
index
6a94469
..
f664585
100644
(file)
--- a/
src/plugins/nat/lib/ipfix_logging.c
+++ b/
src/plugins/nat/lib/ipfix_logging.c
@@
-1269,6
+1269,13
@@
nat_ipfix_flush (u32 thread_index)
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, do_flush);
}
+int
+nat_ipfix_logging_enabled ()
+{
+ nat_ipfix_logging_main_t *silm = &nat_ipfix_logging_main;
+ return !clib_atomic_fetch_or(&silm->enabled, 0);
+}
+
void
nat_ipfix_flush_from_main (void)
{