Changeset 652d720


Ignore:
Timestamp:
03/27/15 18:02:26 (6 years ago)
Author:
Richard Sanger <rsangerarj@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, 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:
91e016c
Parents:
5431dfc
Message:

Remove endian adjustment in libtrace_stat_t

Firstly we don't need it here, secondly I probably didn't do it correctly anyway.
It would make more sense to byte swap the full 64bits if we ever put this on the network.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace.h.in

    r0a52945 r652d720  
    13861386 */
    13871387typedef struct libtrace_stat_t {
    1388         // Align to 64 bits, because the compiler is likely to do this anyway.
    1389 #if __BYTE_ORDER == __LITTLE_ENDIAN
    13901388#define X(name) LT_BITFIELD64 name ##_valid : 1;
    13911389        LIBTRACE_STAT_FIELDS
     
    13981396        LT_BITFIELD64 magic: 8; /**< A number stored against the format to
    13991397                                  ensure the struct was allocated correctly */
    1400 #else
    1401         LT_BITFIELD64 magic: 8;
    1402         LT_BITFIELD64 reserved2: 24;
    1403         LT_BITFIELD64 reserved1: 26;
    1404         LT_BITFIELD64 dropped_valid: 1;
    1405         LT_BITFIELD64 received_valid: 1;
    1406         LT_BITFIELD64 filtered_valid: 1;
    1407         LT_BITFIELD64 accepted_valid: 1;
    1408 #endif
     1398
    14091399        /* These must all be uint64_t's, match this order with the X macro */
    14101400        uint64_t accepted;
Note: See TracChangeset for help on using the changeset viewer.