summaryrefslogtreecommitdiff
path: root/net/ipv4/esp4_offload.c
diff options
context:
space:
mode:
authorXin Long <lucien.xin@gmail.com>2020-04-10 12:06:56 +0300
committerSteffen Klassert <steffen.klassert@secunet.com>2020-04-15 10:50:03 +0300
commit3c96ec56828922e3fe5477f75eb3fc02f98f98b5 (patch)
tree1946f27bcce1ae8d24edadc021a76ede3df7ec2d /net/ipv4/esp4_offload.c
parent06a0afcfe2f551ff755849ea2549b0d8409fd9a0 (diff)
downloadlinux-3c96ec56828922e3fe5477f75eb3fc02f98f98b5.tar.xz
esp6: get the right proto for transport mode in esp6_gso_encap
For transport mode, when ipv6 nexthdr is set, the packet format might be like: ---------------------------------------------------- | | dest | | | | ESP | ESP | | IP6 hdr| opts.| ESP | TCP | Data | Trailer | ICV | ---------------------------------------------------- What it wants to get for x-proto in esp6_gso_encap() is the proto that will be set in ESP nexthdr. So it should skip all ipv6 nexthdrs and get the real transport protocol. Othersize, the wrong proto number will be set into ESP nexthdr. This patch is to skip all ipv6 nexthdrs by calling ipv6_skip_exthdr() in esp6_gso_encap(). Fixes: 7862b4058b9f ("esp: Add gso handlers for esp4 and esp6") Signed-off-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/ipv4/esp4_offload.c')
0 files changed, 0 insertions, 0 deletions