nat plugin - fix test logic 40/9040/2
authorGabriel Ganne <gabriel.ganne@enea.com>
Thu, 26 Oct 2017 08:10:42 +0000 (10:10 +0200)
committerDave Barach <openvpp@barachs.net>
Wed, 1 Nov 2017 09:52:29 +0000 (09:52 +0000)
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>
src/plugins/nat/nat.h

index 9c50a0b..aac46bf 100644 (file)
@@ -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