From: Hongjun Ni Date: Tue, 25 Jul 2017 14:03:08 +0000 (+0800) Subject: Fix IP fragment-id and offset issue in LB-GRE4 X-Git-Tag: v17.10-rc1~249 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=755e41e4574103f5435ca45384c236bf11d8e28f;p=vpp.git Fix IP fragment-id and offset issue in LB-GRE4 Change-Id: Ic1c440b2594c3ec4cdc75730069f16432cdb9587 Signed-off-by: Hongjun Ni --- diff --git a/src/plugins/lb/node.c b/src/plugins/lb/node.c index 3171148bd3d..4a7485eb835 100644 --- a/src/plugins/lb/node.c +++ b/src/plugins/lb/node.c @@ -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);