summaryrefslogtreecommitdiffstats
path: root/kernel/include/linux/netfilter/ip_set_getport.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/include/linux/netfilter/ip_set_getport.h')
-rw-r--r--kernel/include/linux/netfilter/ip_set_getport.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/include/linux/netfilter/ip_set_getport.h b/kernel/include/linux/netfilter/ip_set_getport.h
index 680a89a..cf150d3 100644
--- a/kernel/include/linux/netfilter/ip_set_getport.h
+++ b/kernel/include/linux/netfilter/ip_set_getport.h
@@ -69,18 +69,18 @@ get_ip4_port(const struct sk_buff *skb, bool src, u16 *port, u8 *proto)
static inline bool
get_ip6_port(const struct sk_buff *skb, bool src, u16 *port, u8 *proto)
{
- unsigned int *protooff = 0;
+ unsigned int protooff = 0;
int protocol;
unsigned short fragoff;
- protocol = ipv6_find_hdr(skb, protooff, -1, &fragoff);
+ protocol = ipv6_find_hdr(skb, &protooff, -1, &fragoff);
if (protocol < 0 || fragoff)
return false;
if (!(*proto >= IPSET_IPPROTO_TCPUDP || *proto == protocol))
return false;
- return get_port(skb, protocol, *protooff, src, port, proto);
+ return get_port(skb, protocol, protooff, src, port, proto);
}
static inline bool