Lines Matching refs:sock

187 void inet_bind_hash(struct sock *sk, struct inet_bind_bucket *tb,
196 static inline int inet_sk_listen_hashfn(const struct sock *sk) in inet_sk_listen_hashfn()
202 int __inet_inherit_port(const struct sock *sk, struct sock *child);
204 void inet_put_port(struct sock *sk);
208 bool inet_ehash_insert(struct sock *sk, struct sock *osk);
209 bool inet_ehash_nolisten(struct sock *sk, struct sock *osk);
210 void __inet_hash(struct sock *sk, struct sock *osk);
211 void inet_hash(struct sock *sk);
212 void inet_unhash(struct sock *sk);
214 struct sock *__inet_lookup_listener(struct net *net,
221 static inline struct sock *inet_lookup_listener(struct net *net, in inet_lookup_listener()
284 struct sock *__inet_lookup_established(struct net *net,
290 static inline struct sock *
300 static inline struct sock *__inet_lookup(struct net *net, in __inet_lookup()
307 struct sock *sk = __inet_lookup_established(net, hashinfo, in __inet_lookup()
314 static inline struct sock *inet_lookup(struct net *net, in inet_lookup()
320 struct sock *sk; in inet_lookup()
329 static inline struct sock *__inet_lookup_skb(struct inet_hashinfo *hashinfo, in __inet_lookup_skb()
334 struct sock *sk = skb_steal_sock(skb); in __inet_lookup_skb()
345 u32 sk_ehashfn(const struct sock *sk);
350 static inline void sk_daddr_set(struct sock *sk, __be32 addr) in sk_daddr_set()
358 static inline void sk_rcv_saddr_set(struct sock *sk, __be32 addr) in sk_rcv_saddr_set()
367 struct sock *sk, u32 port_offset,
369 struct sock *, __u16,
373 struct sock *sk);