netfilter: propagate net to nf_bridge_get_physindev
[platform/kernel/linux-starfive.git] / net / netfilter / xt_physdev.c
index b92b22c..343e65f 100644 (file)
@@ -5,12 +5,13 @@
 /* (C) 2001-2003 Bart De Schuymer <bdschuym@pandora.be>
  */
 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
+#include <linux/if.h>
 #include <linux/module.h>
 #include <linux/skbuff.h>
 #include <linux/netfilter_bridge.h>
-#include <linux/netfilter/xt_physdev.h>
 #include <linux/netfilter/x_tables.h>
-#include <net/netfilter/br_netfilter.h>
+#include <uapi/linux/netfilter/xt_physdev.h>
 
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Bart De Schuymer <bdschuym@pandora.be>");
@@ -58,7 +59,7 @@ physdev_mt(const struct sk_buff *skb, struct xt_action_param *par)
            (!!outdev ^ !(info->invert & XT_PHYSDEV_OP_BRIDGED)))
                return false;
 
-       physdev = nf_bridge_get_physindev(skb);
+       physdev = nf_bridge_get_physindev(skb, xt_net(par));
        indev = physdev ? physdev->name : NULL;
 
        if ((info->bitmask & XT_PHYSDEV_OP_ISIN &&