From 755e41e4574103f5435ca45384c236bf11d8e28f Mon Sep 17 00:00:00 2001 From: Hongjun Ni Date: Tue, 25 Jul 2017 22:03:08 +0800 Subject: Fix IP fragment-id and offset issue in LB-GRE4 Change-Id: Ic1c440b2594c3ec4cdc75730069f16432cdb9587 Signed-off-by: Hongjun Ni --- src/plugins/lb/node.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/plugins/lb') 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); -- cgit 1.2.3-korg