]> git.ipfire.org Git - thirdparty/xtables-addons.git/commitdiff
xt_ipp2p: drop requirement that skb is linear
authorJeremy Sowden <jeremy@azazel.net>
Mon, 5 Jun 2023 15:10:44 +0000 (00:10 +0900)
committerJan Engelhardt <jengelh@inai.de>
Tue, 6 Jun 2023 12:23:37 +0000 (21:23 +0900)
It is no longer necessary.

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

index 272223f111991cca4c7dc01527c7a8be258b6bfc..2962909930df703563a5b320b75ce6c22fbe38b6 100644 (file)
@@ -1258,13 +1258,6 @@ ipp2p_mt(const struct sk_buff *skb, struct xt_action_param *par)
                return 0;
        }
 
-       /* make sure that skb is linear */
-       if (skb_is_nonlinear(skb)) {
-               if (info->debug)
-                       printk("IPP2P.match: nonlinear skb found\n");
-               return 0;
-       }
-
        if (family == NFPROTO_IPV4) {
                const struct iphdr *ip = ip_hdr(skb);