Changeset 114b8d6 for lib/rt_protocol.h


Ignore:
Timestamp:
04/22/06 00:43:32 (16 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:
2d96bf2
Parents:
a4bfbf0
Message:

Remove reliance on pcap.h for DLT_'s (and while we're here, make them a pretty
enum, so we get warnings if we forget one somewhere)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/rt_protocol.h

    r566e404 r114b8d6  
    33
    44#include "libtrace.h"
    5 #ifdef HAVE_PCAP
    6 #include <pcap.h>
    7 #endif
    85
    96#define CAPTURE_PORT 3434
     
    6259 RT_DATA_LINUX_NATIVE   =RT_DATA_SIMPLE + TRACE_FORMAT_LINUX_NATIVE,
    6360
    64 #ifdef HAVE_PCAP
    65  RT_DATA_PCAP_NULL              =RT_DATA_PCAP + DLT_NULL,
    66  RT_DATA_PCAP_EN10MB            =RT_DATA_PCAP + DLT_EN10MB,
    67  RT_DATA_PCAP_ATM_RFC1483       =RT_DATA_PCAP + DLT_ATM_RFC1483,
    68  RT_DATA_PCAP_IEEE802_11        =RT_DATA_PCAP + DLT_IEEE802_11,
    69 #ifdef DLT_LINUX_SLL
    70  RT_DATA_PCAP_LINUX_SLL         =RT_DATA_PCAP + DLT_LINUX_SLL,
    71 #endif
    72 #ifdef DLT_PFLOG
    73  RT_DATA_PCAP_PFLOG             =RT_DATA_PCAP + DLT_PFLOG,
    74 #endif
    75 #endif
     61 RT_DATA_PCAP_NULL              =RT_DATA_PCAP + TRACE_DLT_NULL,
     62 RT_DATA_PCAP_EN10MB            =RT_DATA_PCAP + TRACE_DLT_EN10MB,
     63 RT_DATA_PCAP_ATM_RFC1483       =RT_DATA_PCAP + TRACE_DLT_ATM_RFC1483,
     64 RT_DATA_PCAP_IEEE802_11        =RT_DATA_PCAP + TRACE_DLT_IEEE802_11,
     65 RT_DATA_PCAP_LINUX_SLL         =RT_DATA_PCAP + TRACE_DLT_LINUX_SLL,
     66 RT_DATA_PCAP_PFLOG             =RT_DATA_PCAP + TRACE_DLT_PFLOG,
    7667 RT_LAST = 3000
    7768};
Note: See TracChangeset for help on using the changeset viewer.