From: Gabriel Ganne Date: Thu, 26 Oct 2017 08:10:42 +0000 (+0200) Subject: nat plugin - fix test logic X-Git-Tag: v18.04-rc0~359 X-Git-Url: https://gerrit.fd.io/r/gitweb?p=vpp.git;a=commitdiff_plain;h=2e2a0ebf0b3b30a8e8d0e39de5b0fdc3b82ab14c 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 --- 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