aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabriel Ganne <gabriel.ganne@enea.com>2017-10-26 10:10:42 +0200
committerDave Barach <openvpp@barachs.net>2017-11-01 09:52:29 +0000
commit2e2a0ebf0b3b30a8e8d0e39de5b0fdc3b82ab14c (patch)
tree751ec586393a21f8e9c74a662b937871c76cc22b
parent0c0fe27b9f1de8c6b466b2f124c70f473c5645d5 (diff)
nat plugin - fix test logic
warning found by clang: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] Change-Id: I964651a4444b11da145edc329da83675cd830f78 Signed-off-by: Gabriel Ganne <gabriel.ganne@enea.com>
-rw-r--r--src/plugins/nat/nat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/nat/nat.h b/src/plugins/nat/nat.h
index 9c50a0b77ec..aac46bfc4f8 100644
--- a/src/plugins/nat/nat.h
+++ b/src/plugins/nat/nat.h
@@ -409,7 +409,7 @@ typedef struct {
@param s SNAT session
@return 1 if SNAT session is created from static mapping otherwise 0
*/
-#define snat_is_session_static(s) s->flags & SNAT_SESSION_FLAG_STATIC_MAPPING
+#define snat_is_session_static(s) (s->flags & SNAT_SESSION_FLAG_STATIC_MAPPING)
/** \brief Check if SNAT session for unknown protocol.
@param s SNAT session