diff options
-rwxr-xr-x | src/vnet/ip/ip4_forward.c | 6 |
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)) { |