··· if (unlikely(tcp_sk(sk)->repair)) { sk->sk_prot->disconnect(sk, 0); } else if (data_was_unread) { /* Unread data was tossed, zap the connection. */ NET_INC_STATS(sock_net(sk), LINUX_MIB_TCPABORTONCLOSE); tcp_set_state(sk, TCP_CLOSE); tcp_send_active_reset(sk, ...
Microsoft Windows XP ProfessionalMicrosoft Windows XP Home EditionWindows Server 2008 Datacenter without Hyper-VWindows Server 2008 Enterprise without Hyper-VWindows Server 2008 for Itanium-Based SystemsWindows Server 2008 R2 DatacenterWindows Server 2008 R2 EnterpriseWindows Server 2008 R2 StandardWindows Ser...
tp->advmss =tcp_mss_clamp(tp, dst_metric_advmss(dst)); tcp_initialize_rcv_mss(sk);/*limit the window selection if the user enforce a smaller rx buffer*/if(sk->sk_userlocks & SOCK_RCVBUF_LOCK &&(tp->window_clamp > tcp_full_space(sk) || tp->window_clamp ==0)) tp->window_c...
复制inttcp_connect(structsock *sk){structtcp_sock*tp=tcp_sk(sk);structsk_buff*buff;interr;//初始化传输控制块中与连接相关的成员tcp_connect_init(sk);if(unlikely(tp->repair)) { tcp_finish_connect(sk,NULL);return0; }//为SYN段分配报文并进行初始化(分配skbuff)buff = sk_stream_alloc_skb(s...
1.if(likely(!tp->repair)) { 2.if(!tp->write_seq) 3. WRITE_ONCE(tp->write_seq, 4. secure_tcp_seq(inet->inet_saddr, 5. inet->inet_daddr, 6. inet->inet_sport, 7. usin->sin_port)); 8. WRITE_ONCE(tp->tsoffset,
if (unlikely(tcp_sk(sk)->repair)) { sk->sk_prot->disconnect(sk, 0); } else if (data_was_unread) { /* Unread data was tossed, zap the connection. */ NET_INC_STATS(sock_net(sk), LINUX_MIB_TCPABORTONCLOSE); tcp_set_state(sk, TCP_CLOSE); ...
proxy是golang实现的高性能http,https,websocket,tcp,socks5代理服务器,支持正向代理和内网穿透.程序本身可以作为一级代理,如果设置了上级代理那么可以作为二级代理,乃至N级代理.如果程序不是一级代理,而且上级代理也是本程序,那么可以加密和上级代理之间的通讯,采用底层tls高强度加密,安全无特征.代理时会自动判断访问的...
*/ if (flags & MSG_OOB) goto recv_urg; if (unlikely(tp->repair)) { err = -EPERM; if (!(flags & MSG_PEEK)) goto out; if (tp->repair_queue == TCP_SEND_QUEUE) goto recv_sndq; err = -EINVAL; if (tp->repair_queue == TCP_NO_QUEUE) goto out; /* 'common' recv queue ...
In order to repair the damage possibly done to the ARP caches on other computers, the offending computer re-broadcasts another ARP, restoring the original values in the ARP caches of the other computers.A computer using a duplicate IP address can be started when it is not attached to the ...
* 如果使用了TCP_REPAIR选项,就不用重新计算。 */ if (! tp->write_seq && likely(! tp->repair)) tp->write_seq = secure_tcp_sequence_number(inet->inet_saddr, inet->inet_daddr, inet->inet_sport, usin->sin_port); inet->inet_id = tp->write_seq ^ jiffies; /* 根据初始序号和当前时...