Changeset 299e9a0


Ignore:
Timestamp:
08/13/04 10:30:01 (16 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:
ac96828
Parents:
6a9feb2
Message:

setting the packed attribute on some datastructures to fix AMD64 alignment issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/dagformat.h

    r750a1e0 r299e9a0  
    1313        unsigned                hdlc;
    1414        unsigned char           pload[1];
    15 } pos_rec_t;
     15}  pos_rec_t;
    1616
    1717/* GPP Type 2 */
     
    2323        unsigned short          etype;
    2424        unsigned char           pload[1];
    25 } eth_rec_t;
     25}  eth_rec_t;
    2626
    2727/* GPP Type 3 */
     
    2929        unsigned                header;
    3030        unsigned char           pload[1];
    31 } atm_rec_t;
     31}  atm_rec_t;
    3232
    3333/* GPP Type 4 */
     
    3535        unsigned                header;
    3636        unsigned char           pload[1];
    37 } aal5_rec_t;
     37}  aal5_rec_t;
    3838
    3939typedef struct flags {
     
    4444        unsigned char           dserror:1;
    4545        unsigned char           pad:2;
    46 } flags_t;
     46} __attribute__((packed)) flags_t;
    4747
    4848/* GPP Global type */
     
    6060                aal5_rec_t      aal5;
    6161        } rec;
    62 } dag_record_t;
     62} __attribute__((packed)) dag_record_t;
    6363
    6464#define dag_record_size         16
Note: See TracChangeset for help on using the changeset viewer.