]> git.ipfire.org Git - thirdparty/xtables-addons.git/commit
xt_ipp2p: fix compatibility with pre-5.1 kernels
authorJeremy Sowden <jeremy@azazel.net>
Mon, 13 Sep 2021 19:46:07 +0000 (21:46 +0200)
committerJan Engelhardt <jengelh@inai.de>
Tue, 14 Sep 2021 13:29:11 +0000 (15:29 +0200)
commita6079ae91389e11fd742c380fe21aea0a76319ee
treef71a840ba6e91b14b74ac795b8b7c1f5c65f9a13
parentbaa9e72b44fa9a3098a73ebc978e51040a1d0a4e
xt_ipp2p: fix compatibility with pre-5.1 kernels

`ip_transport_len` and `ipv6_transport_len` were introduced in 5.1.
They are both single-statement static inline functions, so add fall-back
implementations for compatibility with older kernels.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
extensions/xt_ipp2p.c