]> git.baikalelectronics.ru Git - kernel.git/commit
esp4: prepare esp_input_done2 for non-UDP encapsulation
authorSabrina Dubroca <sd@queasysnail.net>
Mon, 25 Nov 2019 13:49:00 +0000 (14:49 +0100)
committerSteffen Klassert <steffen.klassert@secunet.com>
Mon, 9 Dec 2019 08:59:07 +0000 (09:59 +0100)
commit2488814cae646d3697d8ec06d8a0f42aeb3da324
tree9f13eb3c6ed823f1890ef292ab17b38037f21499
parentc4a43970fbff088ade52399d6e9b993de46a9642
esp4: prepare esp_input_done2 for non-UDP encapsulation

For espintcp encapsulation, we will need to get the source port from the
TCP header instead of UDP. Introduce a variable to hold the port.

Co-developed-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/ipv4/esp4.c