Fix IP fragment-id and offset issue in LB-GRE4 51/7751/3
authorHongjun Ni <hongjun.ni@intel.com>
Tue, 25 Jul 2017 14:03:08 +0000 (22:03 +0800)
committerFlorin Coras <florin.coras@gmail.com>
Fri, 11 Aug 2017 07:04:14 +0000 (07:04 +0000)
Change-Id: Ic1c440b2594c3ec4cdc75730069f16432cdb9587
Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
src/plugins/lb/node.c

index 3171148..4a7485e 100644 (file)
@@ -277,6 +277,8 @@ lb_node_fn (vlib_main_t * vm,
            ip40->dst_address = lbm->ass[asindex0].address.ip4;
            ip40->ip_version_and_header_length = 0x45;
            ip40->ttl = 128;
+           ip40->fragment_id = 0;
+           ip40->flags_and_fragment_offset = 0;
            ip40->length = clib_host_to_net_u16(len0 + sizeof(gre_header_t) + sizeof(ip4_header_t));
            ip40->protocol = IP_PROTOCOL_GRE;
            ip40->checksum = ip4_header_checksum (ip40);