Changeset 4a207b8 for lib/libtrace.h.in


Ignore:
Timestamp:
03/23/07 16:41:03 (15 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:
dbdc23f
Parents:
83f2cbf
Message:

Endace POS traces are in fact PPP traces. Deal with this correctly, even when
converting between trace formats

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace.h.in

    r2fbcb26 r4a207b8  
    210210        TRACE_DLT_NULL = 0,
    211211        TRACE_DLT_EN10MB = 1,
     212        TRACE_DLT_PPP = 9,
    212213        TRACE_DLT_ATM_RFC1483 = 11,
    213214        TRACE_DLT_RAW = 101,
     
    236237       TRACE_TYPE_DUCK = 14,         /**< Pseudo link layer for DUCK packets */
    237238       TRACE_TYPE_80211_RADIO = 15,  /**< Radiotap + 802.11 */
    238        TRACE_TYPE_LLCSNAP = 16       /**< Raw LLC/SNAP */
     239       TRACE_TYPE_LLCSNAP = 16,      /**< Raw LLC/SNAP */
     240       TRACE_TYPE_PPP = 17           /**< PPP frames */
    239241       
    240242} libtrace_linktype_t;
     
    562564} PACKED libtrace_atm_nni_capture_cell_t;
    563565
    564 /** POS header */
    565 typedef struct libtrace_pos
     566/** PPP header */
     567typedef struct libtrace_pps
    566568{
    567  uint16_t header;
    568  uint16_t ether_type;           /**< Ether Type */
    569 } PACKED libtrace_pos_t;
     569 uint8_t addres;                /**< PPP Address (0xFF - All stations) */
     570 uint8_t header;                /**< PPP Control (0x03 - Unnumbered info) */
     571 uint16_t protocol;             /**< PPP Protocol (htons(0x0021) - IPv4 */
     572} PACKED libtrace_ppp_t;
    570573
    571574/** 802.11 header */
Note: See TracChangeset for help on using the changeset viewer.