Home
last modified time | relevance | path

Searched refs:tw (Results 1 – 8 of 8) sorted by relevance

/net/ipv4/
Dinet_timewait_sock.c29 void inet_twsk_bind_unhash(struct inet_timewait_sock *tw, in inet_twsk_bind_unhash() argument
32 struct inet_bind_bucket *tb = tw->tw_tb; in inet_twsk_bind_unhash()
37 __hlist_del(&tw->tw_bind_node); in inet_twsk_bind_unhash()
38 tw->tw_tb = NULL; in inet_twsk_bind_unhash()
40 __sock_put((struct sock *)tw); in inet_twsk_bind_unhash()
44 static void inet_twsk_kill(struct inet_timewait_sock *tw) in inet_twsk_kill() argument
46 struct inet_hashinfo *hashinfo = tw->tw_dr->hashinfo; in inet_twsk_kill()
47 spinlock_t *lock = inet_ehash_lockp(hashinfo, tw->tw_hash); in inet_twsk_kill()
51 sk_nulls_del_node_init_rcu((struct sock *)tw); in inet_twsk_kill()
55 bhead = &hashinfo->bhash[inet_bhashfn(twsk_net(tw), tw->tw_num, in inet_twsk_kill()
[all …]
Dtcp_minisocks.c43 tcp_timewait_check_oow_rate_limit(struct inet_timewait_sock *tw, in tcp_timewait_check_oow_rate_limit() argument
46 struct tcp_timewait_sock *tcptw = tcp_twsk((struct sock *)tw); in tcp_timewait_check_oow_rate_limit()
48 if (!tcp_oow_rate_limited(twsk_net(tw), skb, mib_idx, in tcp_timewait_check_oow_rate_limit()
57 inet_twsk_put(tw); in tcp_timewait_check_oow_rate_limit()
92 tcp_timewait_state_process(struct inet_timewait_sock *tw, struct sk_buff *skb, in tcp_timewait_state_process() argument
96 struct tcp_timewait_sock *tcptw = tcp_twsk((struct sock *)tw); in tcp_timewait_state_process()
101 tcp_parse_options(twsk_net(tw), skb, &tmp_opt, 0, NULL); in tcp_timewait_state_process()
112 if (tw->tw_substate == TCP_FIN_WAIT2) { in tcp_timewait_state_process()
121 tw, skb, LINUX_MIB_TCPACKSKIPPEDFINWAIT2); in tcp_timewait_state_process()
133 inet_twsk_put(tw); in tcp_timewait_state_process()
[all …]
Dinet_hashtables.c420 struct inet_timewait_sock *tw = NULL; in __inet_check_established() local
431 tw = inet_twsk(sk2); in __inet_check_established()
447 if (tw) { in __inet_check_established()
448 sk_nulls_del_node_init_rcu((struct sock *)tw); in __inet_check_established()
455 *twp = tw; in __inet_check_established()
456 } else if (tw) { in __inet_check_established()
458 inet_twsk_deschedule_put(tw); in __inet_check_established()
693 struct inet_timewait_sock *tw = NULL; in __inet_hash_connect() local
751 port, &tw)) in __inet_hash_connect()
790 inet_ehash_nolisten(sk, (struct sock *)tw, NULL); in __inet_hash_connect()
[all …]
Dtcp_ipv4.c109 const struct inet_timewait_sock *tw = inet_twsk(sktw); in tcp_twsk_unique() local
119 if (tw->tw_bound_dev_if == LOOPBACK_IFINDEX) in tcp_twsk_unique()
122 if (tw->tw_family == AF_INET6) { in tcp_twsk_unique()
123 if (ipv6_addr_loopback(&tw->tw_v6_daddr) || in tcp_twsk_unique()
124 (ipv6_addr_v4mapped(&tw->tw_v6_daddr) && in tcp_twsk_unique()
125 (tw->tw_v6_daddr.s6_addr[12] == 127)) || in tcp_twsk_unique()
126 ipv6_addr_loopback(&tw->tw_v6_rcv_saddr) || in tcp_twsk_unique()
127 (ipv6_addr_v4mapped(&tw->tw_v6_rcv_saddr) && in tcp_twsk_unique()
128 (tw->tw_v6_rcv_saddr.s6_addr[12] == 127))) in tcp_twsk_unique()
133 if (ipv4_is_loopback(tw->tw_daddr) || in tcp_twsk_unique()
[all …]
Dinet_diag.c326 struct inet_timewait_sock *tw = inet_twsk(sk); in inet_twsk_diag_fill() local
337 BUG_ON(tw->tw_state != TCP_TIME_WAIT); in inet_twsk_diag_fill()
342 r->idiag_state = tw->tw_substate; in inet_twsk_diag_fill()
344 tmo = tw->tw_timer.expires - jiffies; in inet_twsk_diag_fill()
/net/dccp/
Dminisocks.c33 struct inet_timewait_sock *tw; in dccp_time_wait() local
35 tw = inet_twsk_alloc(sk, &dccp_death_row, state); in dccp_time_wait()
37 if (tw != NULL) { in dccp_time_wait()
41 if (tw->tw_family == PF_INET6) { in dccp_time_wait()
42 tw->tw_v6_daddr = sk->sk_v6_daddr; in dccp_time_wait()
43 tw->tw_v6_rcv_saddr = sk->sk_v6_rcv_saddr; in dccp_time_wait()
44 tw->tw_ipv6only = sk->sk_ipv6only; in dccp_time_wait()
60 inet_twsk_schedule(tw, timeo); in dccp_time_wait()
64 inet_twsk_hashdance(tw, sk, &dccp_hashinfo); in dccp_time_wait()
/net/ipv6/
Dinet6_hashtables.c218 struct inet_timewait_sock *tw = NULL; in __inet6_check_established() local
229 tw = inet_twsk(sk2); in __inet6_check_established()
245 if (tw) { in __inet6_check_established()
246 sk_nulls_del_node_init_rcu((struct sock *)tw); in __inet6_check_established()
253 *twp = tw; in __inet6_check_established()
254 } else if (tw) { in __inet6_check_established()
256 inet_twsk_deschedule_put(tw); in __inet6_check_established()
Dtcp_ipv6.c1046 struct inet_timewait_sock *tw = inet_twsk(sk); in tcp_v6_timewait_ack() local
1050 tcptw->tw_rcv_wnd >> tw->tw_rcv_wscale, in tcp_v6_timewait_ack()
1052 tcptw->tw_ts_recent, tw->tw_bound_dev_if, tcp_twsk_md5_key(tcptw), in tcp_v6_timewait_ack()
1053 tw->tw_tclass, cpu_to_be32(tw->tw_flowlabel), tw->tw_priority); in tcp_v6_timewait_ack()
1055 inet_twsk_put(tw); in tcp_v6_timewait_ack()
1708 struct inet_timewait_sock *tw = inet_twsk(sk); in tcp_v6_rcv() local
1709 inet_twsk_deschedule_put(tw); in tcp_v6_rcv()
1958 struct inet_timewait_sock *tw, int i) in get_timewait6_sock() argument
1960 long delta = tw->tw_timer.expires - jiffies; in get_timewait6_sock()
1964 dest = &tw->tw_v6_daddr; in get_timewait6_sock()
[all …]