diff options
Diffstat (limited to 'src/vnet/udp/udp.h')
-rw-r--r-- | src/vnet/udp/udp.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/vnet/udp/udp.h b/src/vnet/udp/udp.h index f7985c928c2..ddc9a0eb27d 100644 --- a/src/vnet/udp/udp.h +++ b/src/vnet/udp/udp.h @@ -308,10 +308,9 @@ vlib_buffer_push_udp (vlib_buffer_t * b, u16 sp, u16 dp, u8 offload_csum) uh->checksum = 0; uh->length = clib_host_to_net_u16 (udp_len); if (offload_csum) - { - b->flags |= VNET_BUFFER_F_OFFLOAD_UDP_CKSUM; - vnet_buffer (b)->l4_hdr_offset = (u8 *) uh - b->data; - } + b->flags |= VNET_BUFFER_F_OFFLOAD_UDP_CKSUM; + vnet_buffer (b)->l4_hdr_offset = (u8 *) uh - b->data; + b->flags |= VNET_BUFFER_F_L4_HDR_OFFSET_VALID; return uh; } |