Changeset f04e489 for lib/libtrace.h


Ignore:
Timestamp:
10/28/05 16:57:37 (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:
950d54a
Parents:
b190686
Message:

fixed the legacyatm legacypos and legacyeth formats to correctly calculate the framing offset then use that to step into the link layer properly.
Added headers to deal with the link layers.

updated tracedump to be correct now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace.h

    rba0017c rf04e489  
    4343
    4444/* HAVE_ATTR_PURE is replaced by autoconf */
    45 #define HAVE_ATTR_PURE 0
     45#define HAVE_ATTR_PURE 1
    4646
    4747/* Function does not depend on anything but its
     
    217217} __attribute__ ((packed));
    218218
     219/** ATM cell */
     220struct libtrace_atm_cell
     221{
     222  u_int8_t gfc:4;
     223  u_int8_t vpi;
     224  u_int16_t vci;
     225  u_int8_t pt:3;
     226  u_int8_t clp:1;
     227  u_int8_t hec;
     228  u_int16_t ether_type;
     229};
     230
     231/** POS header */
     232struct libtrace_pos
     233{
     234 u_int16_t header;
     235 u_int16_t ether_type;
     236};
     237
    219238/** Prints help information for libtrace
    220239 *
Note: See TracChangeset for help on using the changeset viewer.