diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2015-09-18 14:33:01 -0500 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-09-18 21:58:49 +0200 |
commit | 88182a0e0c665cbd2f01af743c7f88e494924246 (patch) | |
tree | a5ef48a51c49d06d1b78fd7544dc93f91a224a65 /net/netfilter/nft_log.c | |
parent | 46448d0093ba18a212e314fd9ea029e740baa476 (diff) | |
download | op-kernel-dev-88182a0e0c665cbd2f01af743c7f88e494924246.zip op-kernel-dev-88182a0e0c665cbd2f01af743c7f88e494924246.tar.gz |
netfilter: nf_tables: Use pkt->net instead of computing net from the passed net_devices
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nft_log.c')
-rw-r--r-- | net/netfilter/nft_log.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/netfilter/nft_log.c b/net/netfilter/nft_log.c index c7c7df8..319c22b 100644 --- a/net/netfilter/nft_log.c +++ b/net/netfilter/nft_log.c @@ -31,9 +31,8 @@ static void nft_log_eval(const struct nft_expr *expr, const struct nft_pktinfo *pkt) { const struct nft_log *priv = nft_expr_priv(expr); - struct net *net = dev_net(pkt->in ? pkt->in : pkt->out); - nf_log_packet(net, pkt->pf, pkt->hook, pkt->skb, pkt->in, + nf_log_packet(pkt->net, pkt->pf, pkt->hook, pkt->skb, pkt->in, pkt->out, &priv->loginfo, "%s", priv->prefix); } |