Changeset 1f3696b for lib/libtrace.h
- Timestamp:
- 08/11/04 14:44:20 (18 years ago)
- Branches:
- 4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
- Children:
- ffe76f8
- Parents:
- e619d90
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/libtrace.h
r2137b49 r1f3696b 32 32 #define LIBTRACE_H 33 33 34 #include <features.h>35 34 #include <sys/types.h> 36 35 #include <netinet/in.h> … … 91 90 struct libtrace_ip 92 91 { 93 #if __BYTE_ORDER == __LITTLE_ENDIAN92 #if BYTE_ORDER == __LITTLE_ENDIAN 94 93 unsigned int ip_hl:4; /**< header length */ 95 94 unsigned int ip_v:4; /**< version */ 96 95 #endif 97 #if __BYTE_ORDER == __BIG_ENDIAN96 #if BYTE_ORDER == __BIG_ENDIAN 98 97 unsigned int ip_v:4; /**< version */ 99 98 unsigned int ip_hl:4; /**< header length */ … … 120 119 u_int32_t seq; /**< Sequence number */ 121 120 u_int32_t ack_seq; /**< Acknowledgement Number */ 122 # if __BYTE_ORDER == __LITTLE_ENDIAN121 # if BYTE_ORDER == __LITTLE_ENDIAN 123 122 u_int16_t res1:4; /**< Reserved bits */ 124 123 u_int16_t doff:4; … … 130 129 u_int16_t urg:1; /**< URG flag */ 131 130 u_int16_t res2:2; /**< Reserved */ 132 # elif __BYTE_ORDER == __BIG_ENDIAN131 # elif BYTE_ORDER == __BIG_ENDIAN 133 132 u_int16_t doff:4; 134 133 u_int16_t res1:4;
Note: See TracChangeset
for help on using the changeset viewer.