Changeset 5bbe424 for lib/libtrace.h


Ignore:
Timestamp:
09/08/05 18:17:36 (15 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:
12290e6
Parents:
de8c420b
Message:

added vlan support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace.h

    rde8c420b r5bbe424  
    190190};
    191191
     192/** 802.1Q frame */
     193struct libtrace_8021q
     194{
     195  u_int8_t  ether_dhost[6];      /* destination eth addr */
     196  u_int8_t  ether_shost[6];      /* source ether addr    */
     197  u_int16_t ether_type;                 /* packet type ID field , 0x8100 for VLAN */
     198  u_int16_t vlan_pri:3;                 /* vlan user priority */
     199  u_int16_t vlan_cfi:1;                 /* vlan format indicator, 0 for ethernet, 1 for token ring */
     200  u_int16_t vlan_id:12;                 /* vlan id */
     201  u_int16_t vlan_ether_type;            /* vlan sub-packet type ID field (next-header)*/
     202} __attribute__ ((__packed__));
    192203
    193204/** Prints help information for libtrace
Note: See TracChangeset for help on using the changeset viewer.