Changeset e696e87 for lib/libtrace.h.in


Ignore:
Timestamp:
09/14/07 23:37:28 (14 years ago)
Author:
Perry Lorier <perry@…>
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:
75453c2
Parents:
a81d2fc
Message:

Fix byteorder issues with ip struct

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace.h.in

    r3a14f3b re696e87  
    397397    uint16_t ip_len;                    /**< Total Length */
    398398    int16_t  ip_id;                     /**< Identification */
    399 #if BYTE_ORDER == LITTLE_ENDIAN
    400     LT_BITFIELD16 ip_off:13;            /**< Fragment Offset */
    401     LT_BITFIELD16 ip_mf:1;              /**< More Fragments Flag */
    402     LT_BITFIELD16 ip_df:1;              /**< Dont Fragment Flag */
    403     LT_BITFIELD16 ip_rf:1;              /**< Reserved Fragment Flag */
    404 #elif BYTE_ORDER == BIG_ENDIAN
    405     LT_BITFIELD16 ip_rf:1;              /**< Fragment Offset */
    406     LT_BITFIELD16 ip_df:1;              /**< More Fragments Flag */
    407     LT_BITFIELD16 ip_mf:1;              /**< Dont Fragment Flag */
    408     LT_BITFIELD16 ip_off:13;            /**< Reserved Fragment Flag */
    409 #else
    410 #   error "Adjust your <bits/endian.h> defines"
    411 #endif
     399    uint16_t ip_off;                    /**< IP Fragment offset (and flags) */
    412400    uint8_t  ip_ttl;                    /**< Time to Live */
    413401    uint8_t  ip_p;                      /**< Protocol */
Note: See TracChangeset for help on using the changeset viewer.