linux网络协议栈分析——重要数据结构及其关系(socket、sock、sk_buff)

struct socket *sock

struct sock *sk;

static DEFINE_RWLOCK(proto_list_lock);
static LIST_HEAD(proto_list);

inet_init(void)函数中调用proto_register分别把tcp_prot、udp_prot、raw_prot加到proto_list全局链表中。

 

 

你可能感兴趣的:(数据结构,linux,socket,list,struct,网络协议)