Changeset 73dd29f for lib/libtrace.h.in


Ignore:
Timestamp:
04/02/07 21:44:53 (14 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:
11f2df7
Parents:
02bd77e
Message:

Sooo, pcap has two types of DLT's "pure" DLT's that are platform dependant,
and "linktype" DLT's that are portable and are what are written to pcap files.

Instead of fudging the two concepts together so much, attempt to disintangle
this mess without exposing too much of the god awful mess to the end user.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace.h.in

    r3ec29a9 r73dd29f  
    203203};
    204204
    205 /** Enumeration of DLT types supported by libtrace
    206  * These aren't actually DLTs, but LINKTYPE_'s, so becareful when modifying
    207  * this.
    208  */
     205/** Enumeration of DLT supported by libtrace
     206 */
    209207typedef enum {
    210208        TRACE_DLT_NULL = 0,
     
    212210        TRACE_DLT_PPP = 9,
    213211        TRACE_DLT_ATM_RFC1483 = 11,
    214         TRACE_DLT_RAW = 101,
     212        /* Sigh. This is handled in files with LINKTYPE's */
     213#ifdef __OpenBSD__
     214        TRACE_DLT_RAW = 14,     
     215#else
     216        TRACE_DLT_RAW = 12,
     217#endif
     218        TRACE_DLT_LINKTYPE_RAW = 101,
    215219        TRACE_DLT_IEEE802_11 = 105,
    216220        TRACE_DLT_LINUX_SLL = 113,
Note: See TracChangeset for help on using the changeset viewer.