10 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
11 #include <linux/module.h>
13 #include <linux/netfilter_bridge.h>
14 #include <linux/netfilter/xt_physdev.h>
15 #include <linux/netfilter/x_tables.h>
30 const char *indev, *outdev;
31 const struct nf_bridge_info *nf_bridge;
36 if (!(nf_bridge = skb->nf_bridge)) {
58 (!!(nf_bridge->mask & BRNF_BRIDGED) ^
70 indev = nf_bridge->physindev ? nf_bridge->physindev->name : nulldevname;
79 outdev = nf_bridge->physoutdev ?
80 nf_bridge->physoutdev->name : nulldevname;
98 pr_info(
"using --physdev-out in the OUTPUT, FORWARD and "
99 "POSTROUTING chains for non-bridged traffic is not "
100 "supported anymore.\n");
111 .checkentry = physdev_mt_check,
117 static int __init physdev_mt_init(
void)
122 static void __exit physdev_mt_exit(
void)