Lines Matching refs:sock
47 static u32 sk_ehashfn(const struct sock *sk)
107 const struct sock *sk)
129 const struct sock *sk)
149 const struct sock *sk)
168 void inet_bind_hash(struct sock *sk, struct inet_bind_bucket *tb,
179 * Get rid of any references to a local port held by the given sock.
181 static void __inet_put_port(struct sock *sk)
213 void inet_put_port(struct sock *sk)
221 int __inet_inherit_port(const struct sock *sk, struct sock *child)
302 inet_lhash2_bucket_sk(struct inet_hashinfo *h, struct sock *sk)
319 static inline int compute_score(struct sock *sk, struct net *net,
355 * the selected sock or an error.
357 struct sock *inet_lookup_reuseport(struct net *net, struct sock *sk,
363 struct sock *reuse_sk = NULL;
377 * does not allow a listening sock to specify the remote port nor the
383 static struct sock *inet_lhash2_lookup(struct net *net,
390 struct sock *sk, *result = NULL;
410 struct sock *inet_lookup_run_sk_lookup(struct net *net,
417 struct sock *sk, *reuse_sk;
432 struct sock *__inet_lookup_listener(struct net *net,
440 struct sock *result = NULL;
477 void sock_gen_put(struct sock *sk)
497 struct sock *__inet_lookup_established(struct net *net,
505 struct sock *sk;
545 struct sock *sk, __u16 lport,
561 struct sock *sk2;
590 sk_nulls_del_node_init_rcu((struct sock *)tw);
609 static u64 inet_sk_port_offset(const struct sock *sk)
621 static bool inet_ehash_lookup_by_sk(struct sock *sk,
629 struct sock *esk;
661 bool inet_ehash_insert(struct sock *sk, struct sock *osk, bool *found_dup_sk)
694 bool inet_ehash_nolisten(struct sock *sk, struct sock *osk, bool *found_dup_sk)
710 static int inet_reuseport_add_sock(struct sock *sk,
715 struct sock *sk2;
733 int __inet_hash(struct sock *sk, struct sock *osk)
768 int inet_hash(struct sock *sk)
779 void inet_unhash(struct sock *sk)
822 int l3mdev, const struct sock *sk)
832 unsigned short port, int l3mdev, const struct sock *sk)
856 unsigned short port, int l3mdev, const struct sock *sk)
868 inet_bhash2_addr_any_hashbucket(const struct sock *sk, const struct net *net, int port)
883 static void inet_update_saddr(struct sock *sk, void *saddr, int family)
896 static int __inet_bhash2_update_saddr(struct sock *sk, void *saddr, int family, bool reset)
974 int inet_bhash2_update_saddr(struct sock *sk, void *saddr, int family)
980 void inet_bhash2_reset_saddr(struct sock *sk)
1001 struct sock *sk, u64 port_offset,
1003 struct sock *, __u16, struct inet_timewait_sock **))
1120 inet_ehash_nolisten(sk, (struct sock *)tw, NULL);
1168 struct sock *sk)