socket层结构关系图
2019-03-08 10:52:16 0 举报
socket层结构关系图
作者其他创作
大纲/内容
stuct inet_sock
+ sk : struct sock + inet_daddr : __sk_common.skc_daddr + inet_dport : __sk_common.skc_dport+ inet_saddr : __be32+ inet_sport : __be16+ *inet_opt : struct ip_options_rcu __rcu
struct socket
+ state : socket_state = SS_UNCONNECTED+ *file : struct file+ *sk : struct sock+ *ops : struct proto_ops = inet_stream_ops
struct request_sock
+ __req_common : struct sock_common+ rsk_listener : __req_common.skc_listener+ mss : u16+ num_retrans : u8+ *rsk_ops : const struct request_sock_ops = tcp_request_sock_ops+ *sk : srtuct sock+ *af_specific : const struct tcp_request_sock_ops = tcp_request_sock_ipv4_ops
struct tcp_sock
+ inet_conn : struct inet_connection_sock+ rcv_nxt : u32+ snd_nxt : u32- ucopy : srtuct+ snd_ssthresh : u32 = TCP_INFINITE_SSTHRESH = 0x7fffffff+ snd_cwnd : u32 = TCP_INIT_CWND = 10 (MSS)+ out_of_order_queue : struct br_root = RB_ROOT+ *ooo_last_skb : struct sk_buff
struct inet_connection_sock
+ icsk_inet : struct inet_sock+ icsk_accept_queue : struct request_sock_queue+ *icsk_bind_hash : struct inet_bind_bucket+ icsk_rto : u32 = TCP_TIMEOUT_INIT = HZ+ icsk_retransmit_timer : struct timer_list+ icsk_delack_timer : struct timer_list+ *icsk_ca_ops : const struct tcp_congestion_ops+ *icsk_af_ops : const struct inet_connection_sock_af_ops = ipv4_specific
struct sock
+ __sk_common : struct sock_common+ sk_state : __sk_common.skc_state = TCP_CLOSE+ sk_prot : __sk_common.skc_prot = tcp_prot+sk_prot_creator : struct proto+ sk_ack_backlog : u32+ sk_max_ack_backlog : u32 <= net.ipv4.tcp_max_syn_backlog- sk_socket : struct socket
struct sock_common
+ *skc_prot : struct proto = tcp_prot + skc_daddr : __be32+ skc_dport : __be16+ skc_state : volatile unsigned char = TCP_CLOSE+ *skc_listener : struct sock
struct inet_timewait_sock
+ __tw_common : struct sock_common+ tw_prot : __sk_common.skc_prot = tcp_prot
收藏
0 条评论
回复 删除
下一页