summaryrefslogtreecommitdiffstats
path: root/src/vnet/ip
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2017-07-19 15:07:10 +0200
committerFlorin Coras <florin.coras@gmail.com>2017-07-20 21:47:57 +0000
commitfb3288fe56ba9f0efc1ffc7fdca56f2412749df0 (patch)
treebf7d738180fc89a6980668a1cb22aeae328093cf /src/vnet/ip
parent503766955cbadbeb0962ee602dca0b2159973b0a (diff)
Fix coverity issue introduced with IP checksum offload commit
Change-Id: Ib5ad1369678389534426902ce698bccf7a6d9ec2 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet/ip')
-rwxr-xr-xsrc/vnet/ip/ip4_forward.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vnet/ip/ip4_forward.c b/src/vnet/ip/ip4_forward.c
index 4a9e7919140..4b05bf10c75 100755
--- a/src/vnet/ip/ip4_forward.c
+++ b/src/vnet/ip/ip4_forward.c
@@ -2458,7 +2458,7 @@ ip4_rewrite_inline (vlib_main_t * vm,
/* Verify checksum. */
ASSERT ((ip0->checksum == ip4_header_checksum (ip0)) ||
- (p0->flags | VNET_BUFFER_F_OFFLOAD_IP_CKSUM));
+ (p0->flags & VNET_BUFFER_F_OFFLOAD_IP_CKSUM));
}
else
{
@@ -2494,7 +2494,7 @@ ip4_rewrite_inline (vlib_main_t * vm,
/* Verify checksum. */
ASSERT ((ip1->checksum == ip4_header_checksum (ip1)) ||
- (p1->flags | VNET_BUFFER_F_OFFLOAD_IP_CKSUM));
+ (p1->flags & VNET_BUFFER_F_OFFLOAD_IP_CKSUM));
}
else
{
@@ -2633,7 +2633,7 @@ ip4_rewrite_inline (vlib_main_t * vm,
ip0->ttl = ttl0;
ASSERT ((ip0->checksum == ip4_header_checksum (ip0)) ||
- (p0->flags | VNET_BUFFER_F_OFFLOAD_IP_CKSUM));
+ (p0->flags & VNET_BUFFER_F_OFFLOAD_IP_CKSUM));
if (PREDICT_FALSE (ttl0 <= 0))
{