首页 > Linux考试认证

tcp.c文件的sock结构

时间:2009-10-02 19:03:10  作者:  我要投稿
Linux初探欢迎您的投稿,投放方法请点击这里查看,我们会定期赠送精美小礼品给优秀的投稿作者。海纳百川 取则行远!LinuxGoo欢迎您的到来。
/** This structure really needs to be cleaned up.* Most of it is for TCP, and not used by any of* the other protocols.*/struct sock {struct options *o......

  /*

  * This structure really needs to be cleaned up.

  * Most of it is for TCP, and not used by any of

  * the other protocols.

  */

  struct sock {

  struct options *opt;

  volatile unsigned long wmem_alloc;

  volatile unsigned long rmem_alloc;

  unsigned long write_seq;

  unsigned long sent_seq;

  unsigned long acked_seq;

  unsigned long copied_seq;

  unsigned long rcv_ack_seq;

  unsigned long window_seq;

  unsigned long fin_seq;

  unsigned long urg_seq;

  unsigned long urg_data;

  /*

  * Not all are volatile, but some are, so we

  * might as well say they all are.

  */

  volatile char   inuse,

  dead,

  urginline,

  intr,

  blog,

  done,

  reuse,

  keepopen,

  linger,

  delay_acks,

  destroy,

  ack_timed,

  no_check,

  zapped, /* In ax25 & ipx means not linked */

  broadcast,

  nonagle;

  unsigned long lingertime;

  int proc;

  struct sock *next;

  struct sock   *prev; /* Doubly linked chain.. */

  struct sock *pair;

  struct sk_buff * volatile send_head;

  struct sk_buff * volatile send_tail;

  struct sk_buff_head back_log;

  struct sk_buff *partial;

  struct timer_list partial_timer;

  long retransmits;

  struct sk_buff_head   write_queue,

  receive_queue;

  struct proto *prot;

  struct wait_queue **sleep;

  unsigned long daddr;

  unsigned long saddr;

  unsigned short max_unacked;

  unsigned short window;

  unsigned short bytes_rcv;

  /* mss is min(mtu, max_window) */

  unsigned short mtu; /* mss negotiated in the syn's */

  volatile unsigned short   mss;   /* current eff. mss - can change */

  volatile unsigned short user_mss; /* mss requested by user in ioctl */

  volatile unsigned short max_window;

  unsigned long window_clamp;

  unsigned short num;

如果您需转载 tcp.c文件的sock结构,请注明来自LinuxGoo.com,其版权归原作者所有。请广大网友留言时遵纪守法,使用文明用语。如果您在应用中有什么问题,请在下面留言,我们会尽快解答。
来顶一下
近回首页
返回首页
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表
相关文章
栏目热门