summaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2015-04-03 16:31:01 -0400
committerDavid S. Miller <davem@davemloft.net>2015-04-04 12:25:22 -0400
commit1d1de89b9a4746f1dd055a3b8d073dd2f962a3b6 (patch)
tree84465aaf839096b56d542b37da24cadbd861eb16 /net/ipv4
parentcfdfab314647b1755afedc33ab66f3f247e161ae (diff)
downloadlinux-1d1de89b9a4746f1dd055a3b8d073dd2f962a3b6.tar.gz
linux-1d1de89b9a4746f1dd055a3b8d073dd2f962a3b6.tar.bz2
linux-1d1de89b9a4746f1dd055a3b8d073dd2f962a3b6.zip
netfilter: Use nf_hook_state in nf_queue_entry.
That way we don't have to reinstantiate another nf_hook_state on the stack of the nf_reinject() path. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r--net/ipv4/netfilter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/netfilter.c b/net/ipv4/netfilter.c
index 7ebd6e37875c..65de0684e22a 100644
--- a/net/ipv4/netfilter.c
+++ b/net/ipv4/netfilter.c
@@ -94,7 +94,7 @@ static void nf_ip_saveroute(const struct sk_buff *skb,
{
struct ip_rt_info *rt_info = nf_queue_entry_reroute(entry);
- if (entry->hook == NF_INET_LOCAL_OUT) {
+ if (entry->state.hook == NF_INET_LOCAL_OUT) {
const struct iphdr *iph = ip_hdr(skb);
rt_info->tos = iph->tos;
@@ -109,7 +109,7 @@ static int nf_ip_reroute(struct sk_buff *skb,
{
const struct ip_rt_info *rt_info = nf_queue_entry_reroute(entry);
- if (entry->hook == NF_INET_LOCAL_OUT) {
+ if (entry->state.hook == NF_INET_LOCAL_OUT) {
const struct iphdr *iph = ip_hdr(skb);
if (!(iph->tos == rt_info->tos &&