Changeset bf66333 for lib/dagformat.h


Ignore:
Timestamp:
04/25/06 20:11:08 (16 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:
7fc01569
Parents:
030aa3f
Message:

Undo some of the ISO Cification due to the way VS deals with packed bitfield
types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/dagformat.h

    rd8fc342 rbf66333  
    1010#define TYPE_ATM          3
    1111#define TYPE_AAL5         4
     12
     13#ifdef WIN32
     14#pragma pack(push)
     15#pragma pack(1)
     16#endif
    1217
    1318/** GPP Type 1 */
     
    4146/** Flags */
    4247typedef struct flags {
    43         unsigned int   iface:2;
    44         unsigned int   vlen:1;
    45         unsigned int   trunc:1;
    46         unsigned int   rxerror:1;
    47         unsigned int   dserror:1;
    48         unsigned int   pad:2;
     48        uint8_t   iface:2;
     49        uint8_t   vlen:1;
     50        uint8_t   trunc:1;
     51        uint8_t   rxerror:1;
     52        uint8_t   dserror:1;
     53        uint8_t  pad:2;
    4954} PACKED flags_t;
    5055
     
    8994} duck_inf;
    9095
     96#ifdef WIN32
     97#pragma pack(pop)
     98#endif
     99
    91100/** sizeof(dag_record_t) without the payload helpers */
    92101#define dag_record_size         16
Note: See TracChangeset for help on using the changeset viewer.