diff options
author | David S. Miller <davem@davemloft.net> | 2015-04-03 22:31:01 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-04-04 18:25:22 +0200 |
commit | 1d1de89b9a4746f1dd055a3b8d073dd2f962a3b6 (patch) | |
tree | 84465aaf839096b56d542b37da24cadbd861eb16 /net/ipv6 | |
parent | netfilter: Create and use nf_hook_state. (diff) | |
download | linux-1d1de89b9a4746f1dd055a3b8d073dd2f962a3b6.tar.xz 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/ipv6')
-rw-r--r-- | net/ipv6/netfilter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/netfilter.c b/net/ipv6/netfilter.c index 398377a9d018..d958718b5031 100644 --- a/net/ipv6/netfilter.c +++ b/net/ipv6/netfilter.c @@ -84,7 +84,7 @@ static void nf_ip6_saveroute(const struct sk_buff *skb, { struct ip6_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 ipv6hdr *iph = ipv6_hdr(skb); rt_info->daddr = iph->daddr; @@ -98,7 +98,7 @@ static int nf_ip6_reroute(struct sk_buff *skb, { struct ip6_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 ipv6hdr *iph = ipv6_hdr(skb); if (!ipv6_addr_equal(&iph->daddr, &rt_info->daddr) || !ipv6_addr_equal(&iph->saddr, &rt_info->saddr) || |