tcp.c文件的sock结构Linux认证考试
文章作者 100test 发表时间 2009:10:03 16:35:10
来源 100Test.Com百考试题网
  /*
  * 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.