Home
last modified time | relevance | path

Searched refs:tw (Results 1 – 9 of 9) 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_bind2_bucket *tb2 = tw->tw_tb2; in inet_twsk_bind_unhash()
33 struct inet_bind_bucket *tb = tw->tw_tb; in inet_twsk_bind_unhash()
38 __hlist_del(&tw->tw_bind_node); in inet_twsk_bind_unhash()
39 tw->tw_tb = NULL; in inet_twsk_bind_unhash()
42 __hlist_del(&tw->tw_bind2_node); in inet_twsk_bind_unhash()
43 tw->tw_tb2 = NULL; in inet_twsk_bind_unhash()
46 __sock_put((struct sock *)tw); in inet_twsk_bind_unhash()
50 static void inet_twsk_kill(struct inet_timewait_sock *tw) in inet_twsk_kill() argument
52 struct inet_hashinfo *hashinfo = tw->tw_dr->hashinfo; in inet_twsk_kill()
[all …]
Dtcp_minisocks.c36 tcp_timewait_check_oow_rate_limit(struct inet_timewait_sock *tw, in tcp_timewait_check_oow_rate_limit() argument
39 struct tcp_timewait_sock *tcptw = tcp_twsk((struct sock *)tw); in tcp_timewait_check_oow_rate_limit()
41 if (!tcp_oow_rate_limited(twsk_net(tw), skb, mib_idx, in tcp_timewait_check_oow_rate_limit()
50 inet_twsk_put(tw); in tcp_timewait_check_oow_rate_limit()
85 tcp_timewait_state_process(struct inet_timewait_sock *tw, struct sk_buff *skb, in tcp_timewait_state_process() argument
89 struct tcp_timewait_sock *tcptw = tcp_twsk((struct sock *)tw); in tcp_timewait_state_process()
94 tcp_parse_options(twsk_net(tw), skb, &tmp_opt, 0, NULL); in tcp_timewait_state_process()
105 if (tw->tw_substate == TCP_FIN_WAIT2) { in tcp_timewait_state_process()
114 tw, skb, LINUX_MIB_TCPACKSKIPPEDFINWAIT2); in tcp_timewait_state_process()
126 inet_twsk_put(tw); in tcp_timewait_state_process()
[all …]
Dinet_hashtables.c543 struct inet_timewait_sock *tw = NULL; in __inet_check_established() local
553 tw = inet_twsk(sk2); in __inet_check_established()
569 if (tw) { in __inet_check_established()
570 sk_nulls_del_node_init_rcu((struct sock *)tw); in __inet_check_established()
577 *twp = tw; in __inet_check_established()
578 } else if (tw) { in __inet_check_established()
580 inet_twsk_deschedule_put(tw); in __inet_check_established()
987 struct inet_timewait_sock *tw = NULL; in __inet_hash_connect() local
1045 port, &tw)) in __inet_hash_connect()
1100 inet_ehash_nolisten(sk, (struct sock *)tw, NULL); in __inet_hash_connect()
[all …]
Dtcp_ipv4.c112 const struct inet_timewait_sock *tw = inet_twsk(sktw); in tcp_twsk_unique() local
122 if (tw->tw_bound_dev_if == LOOPBACK_IFINDEX) in tcp_twsk_unique()
125 if (tw->tw_family == AF_INET6) { in tcp_twsk_unique()
126 if (ipv6_addr_loopback(&tw->tw_v6_daddr) || in tcp_twsk_unique()
127 ipv6_addr_v4mapped_loopback(&tw->tw_v6_daddr) || in tcp_twsk_unique()
128 ipv6_addr_loopback(&tw->tw_v6_rcv_saddr) || in tcp_twsk_unique()
129 ipv6_addr_v4mapped_loopback(&tw->tw_v6_rcv_saddr)) in tcp_twsk_unique()
134 if (ipv4_is_loopback(tw->tw_daddr) || in tcp_twsk_unique()
135 ipv4_is_loopback(tw->tw_rcv_saddr)) in tcp_twsk_unique()
951 struct inet_timewait_sock *tw = inet_twsk(sk); in tcp_v4_timewait_ack() local
[all …]
Dinet_diag.c419 struct inet_timewait_sock *tw = inet_twsk(sk); in inet_twsk_diag_fill() local
431 BUG_ON(tw->tw_state != TCP_TIME_WAIT); in inet_twsk_diag_fill()
436 r->idiag_state = tw->tw_substate; in inet_twsk_diag_fill()
438 tmo = tw->tw_timer.expires - jiffies; in inet_twsk_diag_fill()
446 tw->tw_mark)) { in inet_twsk_diag_fill()
Dtcp.c4694 struct inet_timewait_sock *tw = inet_twsk(sk); in tcp_abort() local
4696 refcount_inc(&tw->tw_refcnt); in tcp_abort()
4698 inet_twsk_deschedule_put(tw); in tcp_abort()
/net/dccp/
Dminisocks.c34 struct inet_timewait_sock *tw; in dccp_time_wait() local
36 tw = inet_twsk_alloc(sk, &dccp_death_row, state); in dccp_time_wait()
38 if (tw != NULL) { in dccp_time_wait()
42 if (tw->tw_family == PF_INET6) { in dccp_time_wait()
43 tw->tw_v6_daddr = sk->sk_v6_daddr; in dccp_time_wait()
44 tw->tw_v6_rcv_saddr = sk->sk_v6_rcv_saddr; in dccp_time_wait()
45 tw->tw_ipv6only = sk->sk_ipv6only; in dccp_time_wait()
61 inet_twsk_schedule(tw, timeo); in dccp_time_wait()
65 inet_twsk_hashdance(tw, sk, &dccp_hashinfo); in dccp_time_wait()
/net/ipv6/
Dinet6_hashtables.c261 struct inet_timewait_sock *tw = NULL; in __inet6_check_established() local
272 tw = inet_twsk(sk2); in __inet6_check_established()
288 if (tw) { in __inet6_check_established()
289 sk_nulls_del_node_init_rcu((struct sock *)tw); in __inet6_check_established()
296 *twp = tw; in __inet6_check_established()
297 } else if (tw) { in __inet6_check_established()
299 inet_twsk_deschedule_put(tw); in __inet6_check_established()
Dtcp_ipv6.c1100 struct inet_timewait_sock *tw = inet_twsk(sk); in tcp_v6_timewait_ack() local
1104 tcptw->tw_rcv_wnd >> tw->tw_rcv_wscale, in tcp_v6_timewait_ack()
1106 tcptw->tw_ts_recent, tw->tw_bound_dev_if, tcp_twsk_md5_key(tcptw), in tcp_v6_timewait_ack()
1107 tw->tw_tclass, cpu_to_be32(tw->tw_flowlabel), tw->tw_priority, in tcp_v6_timewait_ack()
1108 tw->tw_txhash); in tcp_v6_timewait_ack()
1110 inet_twsk_put(tw); in tcp_v6_timewait_ack()
1820 struct inet_timewait_sock *tw = inet_twsk(sk); in tcp_v6_rcv() local
1821 inet_twsk_deschedule_put(tw); in tcp_v6_rcv()
2068 struct inet_timewait_sock *tw, int i) in get_timewait6_sock() argument
2070 long delta = tw->tw_timer.expires - jiffies; in get_timewait6_sock()
[all …]