这些小活动你都参加了吗?快来围观一下吧!>>
电子产品世界 » 论坛首页 » 嵌入式开发 » MCU » 这两个inpcb有何不同,如何兼容?

共1条 1/1 1 跳转至

这两个inpcb有何不同,如何兼容?

菜鸟
2004-12-18 20:20:15     打赏
struct inpcb { LIST_ENTRY(inpcb) inp_list; /* list for all PCBs of this proto */ LIST_ENTRY(inpcb) inp_hash; /* hash list */ struct inpcbinfo *inp_pcbinfo; struct in_addr inp_faddr; /* foreign host table entry */ u_short inp_fport; /* foreign port */ struct in_addr inp_laddr; /* local host table entry */ u_short inp_lport; /* local port */ struct socket *inp_socket; /* back pointer to socket */ caddr_t inp_ppcb; /* pointer to per-protocol pcb */ struct route inp_route; /* placeholder for routing entry */ int inp_flags; /* generic IP/datagram flags */ struct ip inp_ip; /* header prototype; should have more */ struct mbuf *inp_options; /* IP options */ struct ip_moptions *inp_moptions; /* IP multicast options */ }; struct inpcb { struct inpcb *inp_next, *inp_prev; /* pointers to other pcb's */ struct inpcb *inp_head; /* pointer back to chain of inpcb's */ /* for this protocol */ struct in_addr inp_faddr; /* foreign host table entry */ ushort_t inp_fport; /* foreign port */ struct in_addr inp_laddr; /* local host table entry */ ushort_t inp_lport; /* local port */ struct socket *inp_socket; /* back pointer to socket */ caddr_t inp_ppcb; /* pointer to per-protocol pcb */ struct route inp_route; /* placeholder for routing entry */ struct mbuf *inp_options; /* IP options */ };



关键词: 两个     inpcb     有何     不同     如何     兼容     stru    

共1条 1/1 1 跳转至

回复

匿名不能发帖!请先 [ 登陆 注册 ]