Fix coverity issue introduced with IP checksum offload commit
@@ -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))
{
