ESP: Export esp_output_fill_trailer function

The esp fill trailer method is identical for both
IPv6 and IPv4.

Share the implementation for esp6 and esp to avoid
code duplication in addition it could be also used
at various drivers code.

Signed-off-by: Raed Salem <>
Reviewed-by: Boris Pismenny <>
Reviewed-by: Saeed Mahameed <>
Signed-off-by: Steffen Klassert <>
3 files changed