[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1319458001-14958-1-git-send-email-richard@nod.at>
Date: Mon, 24 Oct 2011 14:06:41 +0200
From: Richard Weinberger <richard@....at>
To: netfilter-devel@...r.kernel.org
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
trivial@...nel.org, davem@...emloft.net, kaber@...sh.net,
Richard Weinberger <richard@....at>
Subject: [PATCH] [TRIVIAL] netfilter: make physdev_mt more readable
Signed-off-by: Richard Weinberger <richard@....at>
---
net/netfilter/xt_physdev.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/netfilter/xt_physdev.c b/net/netfilter/xt_physdev.c
index d7ca16b..eabb751 100644
--- a/net/netfilter/xt_physdev.c
+++ b/net/netfilter/xt_physdev.c
@@ -28,12 +28,12 @@ physdev_mt(const struct sk_buff *skb, struct xt_action_param *par)
const struct xt_physdev_info *info = par->matchinfo;
unsigned long ret;
const char *indev, *outdev;
- const struct nf_bridge_info *nf_bridge;
+ const struct nf_bridge_info *nf_bridge = skb->nf_bridge;
/* Not a bridged IP packet or no info available yet:
* LOCAL_OUT/mangle and LOCAL_OUT/nat don't know if
* the destination device will be a bridge. */
- if (!(nf_bridge = skb->nf_bridge)) {
+ if (!nf_bridge) {
/* Return MATCH if the invert flags of the used options are on */
if ((info->bitmask & XT_PHYSDEV_OP_BRIDGED) &&
!(info->invert & XT_PHYSDEV_OP_BRIDGED))
--
1.7.7
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists