summaryrefslogtreecommitdiff
path: root/net/ipv6/netfilter/ip6t_dst.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2006-01-05 12:21:16 -0800
committerDavid S. Miller <davem@davemloft.net>2006-01-05 12:21:16 -0800
commitb777e0ce7437a0e788e2aeb42aca9af2cce1f2e1 (patch)
treececbfdf5b78b909b80f3f04cbfdac7599f5a3352 /net/ipv6/netfilter/ip6t_dst.c
parent1bd9bef6f9fe06dd0c628ac877c85b6b36aca062 (diff)
[NETFILTER]: make ipv6_find_hdr() find transport protocol header
The original ipv6_find_hdr() finds the specified header in IPv6 packets. This makes it possible to get transport header so that we can kill similar loop in ip6_match_packet(). Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/netfilter/ip6t_dst.c')
-rw-r--r--net/ipv6/netfilter/ip6t_dst.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/netfilter/ip6t_dst.c b/net/ipv6/netfilter/ip6t_dst.c
index c450a635e54..48cf5f9efc9 100644
--- a/net/ipv6/netfilter/ip6t_dst.c
+++ b/net/ipv6/netfilter/ip6t_dst.c
@@ -71,9 +71,9 @@ match(const struct sk_buff *skb,
unsigned int optlen;
#if HOPBYHOP
- if (ipv6_find_hdr(skb, &ptr, NEXTHDR_HOP) < 0)
+ if (ipv6_find_hdr(skb, &ptr, NEXTHDR_HOP, NULL) < 0)
#else
- if (ipv6_find_hdr(skb, &ptr, NEXTHDR_DEST) < 0)
+ if (ipv6_find_hdr(skb, &ptr, NEXTHDR_DEST, NULL) < 0)
#endif
return 0;