Skip to content

Commit f181565

Browse files
a3a3elummakynes
authored andcommitted
netfilter: br_netfilter: update stub br_nf_pre_routing_ipv6 parameter to void *priv.
The real br_nf_pre_routing_ipv6 function, defined when CONFIG_IPV6 is enabled, expects `void *priv`, not `const struct nf_hook_ops *ops`. Update the stub br_nf_pre_routing_ipv6, defined when CONFIG_IPV6 is disabled, to match. Fixes: 06198b3 ("netfilter: Pass priv instead of nf_hook_ops to netfilter hooks") Signed-off-by: Jeremy Sowden <jeremy@azazel.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
1 parent 22e81d7 commit f181565

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎include/net/netfilter/br_netfilter.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ static inline int br_validate_ipv6(struct net *net, struct sk_buff *skb)
6868
}
6969

7070
static inline unsigned int
71-
br_nf_pre_routing_ipv6(const struct nf_hook_ops *ops, struct sk_buff *skb,
71+
br_nf_pre_routing_ipv6(void *priv, struct sk_buff *skb,
7272
const struct nf_hook_state *state)
7373
{
7474
return NF_ACCEPT;

0 commit comments

Comments
 (0)