Changeset 22e626a for lib


Ignore:
Timestamp:
05/04/10 16:08:40 (11 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:
10cf089
Parents:
d6cd078
Message:

Add better discussion on LINKTYPEs vs DLTs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace.h.in

    r8ed31c2 r22e626a  
    228228 */
    229229typedef enum {
    230         TRACE_DLT_NULL = 0,
     230        /** pcap documents this as having the Address Family value in host byte order as the
     231          * framing.  Ugly? Yes.
     232          */
     233        TRACE_DLT_NULL = 0,
    231234        TRACE_DLT_EN10MB = 1,
    232235        TRACE_DLT_PPP = 9,
    233236        TRACE_DLT_ATM_RFC1483 = 11,
    234237       
    235         /* Sigh. This is handled in files with LINKTYPE's */
     238        /** Ok, so OpenBSD has a different value for DLT_RAW as the rest of the planet, so detect
     239          * this.  When reading to/from files we should be using TRACE_DLT_LINKTYPE_RAW instead.
     240          * When talking about DLT's inside libtrace tho, we should be using /these/ DLT's.
     241          */
    236242#ifdef __OpenBSD__
    237243        TRACE_DLT_RAW = 14,     
     
    240246#endif
    241247        TRACE_DLT_PPP_SERIAL = 50,
    242         TRACE_DLT_LINKTYPE_RAW = 101,
     248        TRACE_DLT_LINKTYPE_RAW = 101, /**< See TRACE_DLT_RAW for explainations of pain. */
    243249        TRACE_DLT_C_HDLC = 104,
    244250        TRACE_DLT_IEEE802_11 = 105,
Note: See TracChangeset for help on using the changeset viewer.