Tcp

Tcp

概要

実装

  158: /*
  159:  *  this represents the control info
  160:  *  for a single packet.  It is derived from
  161:  *  a packet in ntohtcp{4,6}() and stuck into
  162:  *  a packet in htontcp{4,6}().
  163:  */
  164: typedef struct Tcp Tcp;
  165: struct  Tcp
  166: {
  167:         ushort source;
  168:         ushort dest;
  169:         ulong  seq;
  170:         ulong  ack;
  171:         uchar  flags;
  172:         ushort ws;     /* window scale option (if not zero) */
  173:         ulong  wnd;
  174:         ushort urg;
  175:         ushort mss;    /* max segment size option (if not zero) */
  176:         ushort len;    /* size of data */
  177: };

* はてなダイアリーキーワード:Tcp