diff options
author | Hongjun Ni <hongjun.ni@intel.com> | 2017-07-25 22:03:08 +0800 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2017-08-11 07:04:14 +0000 |
commit | 755e41e4574103f5435ca45384c236bf11d8e28f (patch) | |
tree | 9391366b9ab44319c4dc5b28dc72fa119de85bfb /src/plugins | |
parent | 6f9f6f3f2827e2b957c5f69e1d3ff0cb375034e6 (diff) |
Fix IP fragment-id and offset issue in LB-GRE4
Change-Id: Ic1c440b2594c3ec4cdc75730069f16432cdb9587
Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/lb/node.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |