esp: Introduce a helper to setup the trailer
authorSteffen Klassert <steffen.klassert@secunet.com>
Tue, 17 Jan 2017 09:23:08 +0000 (10:23 +0100)
committerSteffen Klassert <steffen.klassert@secunet.com>
Tue, 17 Jan 2017 09:23:08 +0000 (10:23 +0100)
commiteb758c8864d49f5786432ce38fd8a72bdbbd10cf
tree1ca9170765259d1cfff4def7f51bc788b42508c7
parent03e2a30f6a27e2f3e5283b777f6ddd146b38c738
esp: Introduce a helper to setup the trailer

We need to setup the trailer in two different cases,
so add a helper to avoid code duplication.

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/ipv4/esp4.c
net/ipv6/esp6.c