/[pengfork]/pengfork/include/bsdtcp.h
ViewVC logotype

Diff of /pengfork/include/bsdtcp.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by chupa, Fri Aug 30 20:23:26 2002 UTC revision 1.3 by chupa, Sun Sep 1 14:31:07 2002 UTC
# Line 61  struct tcphdr Line 61  struct tcphdr
61    u_int16_t th_dport;           /* destination port */    u_int16_t th_dport;           /* destination port */
62    tcp_seq th_seq;               /* sequence number */    tcp_seq th_seq;               /* sequence number */
63    tcp_seq th_ack;               /* acknowledgement number */    tcp_seq th_ack;               /* acknowledgement number */
64  #  if __BYTE_ORDER == __LITTLE_ENDIAN  #if __BYTE_ORDER == __LITTLE_ENDIAN
65    u_int8_t th_x2:4;             /* (unused) */    u_int8_t th_x2:4;             /* (unused) */
66    u_int8_t th_off:4;            /* data offset */    u_int8_t th_off:4;            /* data offset */
67  #  endif  #elif __BYTE_ORDER == __BIG_ENDIAN
 #  if __BYTE_ORDER == __BIG_ENDIAN  
68    u_int8_t th_off:4;            /* data offset */    u_int8_t th_off:4;            /* data offset */
69    u_int8_t th_x2:4;             /* (unused) */    u_int8_t th_x2:4;             /* (unused) */
70  #  endif  #else
71    # error "Please fix <bits/endian.h>"
72    #endif
73    u_int8_t th_flags;    u_int8_t th_flags;
74  #  define TH_FIN        0x01  #  define TH_FIN        0x01
75  #  define TH_SYN        0x02  #  define TH_SYN        0x02
# Line 180  struct tcp_info Line 181  struct tcp_info
181    u_int32_t tcpi_reordering;    u_int32_t tcpi_reordering;
182  };  };
183    
184  #endif /* __BSDTCP_H__ */  #endif /* __BSD_TCP_H__ */

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26