Lines Matching refs:net
43 struct sock *__inet6_lookup_established(const struct net *net,
51 typedef u32 (inet6_ehashfn_t)(const struct net *net,
59 struct sock *inet6_lookup_reuseport(const struct net *net, struct sock *sk,
67 struct sock *inet6_lookup_listener(const struct net *net,
76 struct sock *inet6_lookup_run_sk_lookup(const struct net *net,
85 static inline struct sock *__inet6_lookup(const struct net *net, in __inet6_lookup() argument
95 struct sock *sk = __inet6_lookup_established(net, hashinfo, saddr, in __inet6_lookup()
102 return inet6_lookup_listener(net, hashinfo, skb, doff, saddr, sport, in __inet6_lookup()
107 struct sock *inet6_steal_sock(struct net *net, struct sk_buff *skb, int doff, in inet6_steal_sock() argument
132 reuse_sk = inet6_lookup_reuseport(net, sk, skb, doff, in inet6_steal_sock()
153 struct net *net = skb_dst_dev_net_rcu(skb); in __inet6_lookup_skb() local
157 sk = inet6_steal_sock(net, skb, doff, &ip6h->saddr, sport, &ip6h->daddr, dport, in __inet6_lookup_skb()
164 return __inet6_lookup(net, hashinfo, skb, in __inet6_lookup_skb()
170 struct sock *inet6_lookup(const struct net *net, struct inet_hashinfo *hashinfo,
178 static inline bool inet6_match(const struct net *net, const struct sock *sk, in inet6_match() argument
184 if (!net_eq(sock_net(sk), net) || in inet6_match()
192 return inet_sk_bound_dev_eq(net, READ_ONCE(sk->sk_bound_dev_if), dif, in inet6_match()