mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
bridge: Pass net into br_validate_ipv4 and br_validate_ipv6
The network namespace is easiliy available in state->net so use it. Signed-off-by: "Eric W. Biederman" <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
This commit is contained in:
parent
5f5d74d723
commit
c1444c6357
3 changed files with 16 additions and 18 deletions
|
|
@ -45,12 +45,12 @@ struct net_device *setup_pre_routing(struct sk_buff *skb);
|
|||
void br_netfilter_enable(void);
|
||||
|
||||
#if IS_ENABLED(CONFIG_IPV6)
|
||||
int br_validate_ipv6(struct sk_buff *skb);
|
||||
int br_validate_ipv6(struct net *net, struct sk_buff *skb);
|
||||
unsigned int br_nf_pre_routing_ipv6(void *priv,
|
||||
struct sk_buff *skb,
|
||||
const struct nf_hook_state *state);
|
||||
#else
|
||||
static inline int br_validate_ipv6(struct sk_buff *skb)
|
||||
static inline int br_validate_ipv6(struct net *net, struct sk_buff *skb)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue