Lines Matching refs:sock

27 #include <net/sock.h>
177 static inline struct inet_hashinfo *tcp_or_dccp_get_hashinfo(const struct sock *sk)
240 const struct sock *sk);
249 const struct sock *sk);
253 int l3mdev, const struct sock *sk);
262 inet_bhashfn_portaddr(const struct inet_hashinfo *hinfo, const struct sock *sk,
277 inet_bhash2_addr_any_hashbucket(const struct sock *sk, const struct net *net, int port);
283 int inet_bhash2_update_saddr(struct sock *sk, void *saddr, int family);
284 void inet_bhash2_reset_saddr(struct sock *sk);
286 void inet_bind_hash(struct sock *sk, struct inet_bind_bucket *tb,
290 int __inet_inherit_port(const struct sock *sk, struct sock *child);
292 void inet_put_port(struct sock *sk);
300 bool inet_ehash_insert(struct sock *sk, struct sock *osk, bool *found_dup_sk);
301 bool inet_ehash_nolisten(struct sock *sk, struct sock *osk,
303 int __inet_hash(struct sock *sk, struct sock *osk);
304 int inet_hash(struct sock *sk);
305 void inet_unhash(struct sock *sk);
307 struct sock *__inet_lookup_listener(struct net *net,
315 static inline struct sock *inet_lookup_listener(struct net *net,
354 static inline bool inet_match(struct net *net, const struct sock *sk,
371 struct sock *__inet_lookup_established(struct net *net,
385 struct sock *inet_lookup_reuseport(struct net *net, struct sock *sk,
391 struct sock *inet_lookup_run_sk_lookup(struct net *net,
398 static inline struct sock *
408 static inline struct sock *__inet_lookup(struct net *net,
417 struct sock *sk;
429 static inline struct sock *inet_lookup(struct net *net,
436 struct sock *sk;
448 struct sock *inet_steal_sock(struct net *net, struct sk_buff *skb, int doff,
453 struct sock *sk, *reuse_sk;
479 /* We've chosen a new reuseport sock which is never refcounted. This
487 static inline struct sock *__inet_lookup_skb(struct inet_hashinfo *hashinfo,
497 struct sock *sk;
512 static inline void sk_daddr_set(struct sock *sk, __be32 addr)
520 static inline void sk_rcv_saddr_set(struct sock *sk, __be32 addr)
529 struct sock *sk, u64 port_offset,
531 struct sock *, __u16,
535 struct sock *sk);