tcp_v4_connect /* This will initiate an outgoing connection. tcp_v4_connect函数初始化一个对外的连接请求,创建一个SYN包并发送出去, 把套接字的状态从CLOSE切换到SYN_SENT,初始化TCP部分选项数据包序列号. 窗口大小.MSS.套接字传送超时等*/ int tcp_v4_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len) { struct…