Changeset 1f3696b for lib/libtrace.h


Ignore:
Timestamp:
08/11/04 14:44:20 (17 years ago)
Author:
Daniel Lawson <dlawson@…>
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
Message:

Slight changes to code, basically #includes and #defines, and it should build cleanly on freebsd now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace.h

    r2137b49 r1f3696b  
    3232#define LIBTRACE_H
    3333
    34 #include <features.h>
    3534#include <sys/types.h>
    3635#include <netinet/in.h>
     
    9190struct libtrace_ip
    9291  {
    93 #if __BYTE_ORDER == __LITTLE_ENDIAN
     92#if BYTE_ORDER == __LITTLE_ENDIAN
    9493    unsigned int ip_hl:4;               /**< header length */
    9594    unsigned int ip_v:4;                /**< version */
    9695#endif
    97 #if __BYTE_ORDER == __BIG_ENDIAN
     96#if BYTE_ORDER == __BIG_ENDIAN
    9897    unsigned int ip_v:4;                /**< version */
    9998    unsigned int ip_hl:4;               /**< header length */
     
    120119    u_int32_t seq;              /**< Sequence number */
    121120    u_int32_t ack_seq;          /**< Acknowledgement Number */
    122 #  if __BYTE_ORDER == __LITTLE_ENDIAN
     121#  if BYTE_ORDER == __LITTLE_ENDIAN
    123122    u_int16_t res1:4;           /**< Reserved bits */
    124123    u_int16_t doff:4;           
     
    130129    u_int16_t urg:1;            /**< URG flag */
    131130    u_int16_t res2:2;           /**< Reserved */
    132 #  elif __BYTE_ORDER == __BIG_ENDIAN
     131#  elif BYTE_ORDER == __BIG_ENDIAN
    133132    u_int16_t doff:4;           
    134133    u_int16_t res1:4;
Note: See TracChangeset for help on using the changeset viewer.