projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
netfilter: nf_tables: Use pkt->net instead of computing net from the passed net_devices
[deliverable/linux.git]
/
net
/
netfilter
/
nft_log.c
diff --git
a/net/netfilter/nft_log.c
b/net/netfilter/nft_log.c
index a13d6a386d635f00b5715d1b71ba9b0819203544..319c22b4bca2386c0ba6f95bca3e0aba104660d0 100644
(file)
--- 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);
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->ops->pf, pkt->ops->hooknum
, pkt->skb, pkt->in,
+ nf_log_packet(
pkt->net, pkt->pf, pkt->hook
, pkt->skb, pkt->in,
pkt->out, &priv->loginfo, "%s", priv->prefix);
}
pkt->out, &priv->loginfo, "%s", priv->prefix);
}
This page took
0.028456 seconds
and
5
git commands to generate.