Changeset 0220eb1
- Timestamp:
- 04/08/06 01:34:40 (16 years ago)
- 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:
- 68155f1
- Parents:
- 64b6517
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/linktypes.c
r7ac9705 r0220eb1 1 1 #include "libtrace.h" 2 #ifdef HAVE_PCAP 2 3 #include <pcap.h> 4 #endif 3 5 #include "dagformat.h" 4 6 #include "rt_protocol.h" … … 15 17 { 16 18 switch(dlt) { 19 #if HAVE_PCAP 17 20 case DLT_NULL: return TRACE_TYPE_NONE; 18 21 case DLT_EN10MB: return TRACE_TYPE_ETH; … … 25 28 case DLT_PFLOG: return TRACE_TYPE_PFLOG; 26 29 #endif 30 #endif 27 31 default: 28 32 return -1; … … 33 37 { 34 38 switch(type) { 39 #ifdef HAVE_PCAP 35 40 case TRACE_TYPE_NONE: return DLT_NULL; 36 41 case TRACE_TYPE_ETH: return DLT_EN10MB; … … 42 47 #ifdef DLT_PFLOG 43 48 case TRACE_TYPE_PFLOG: return DLT_PFLOG; 49 #endif 44 50 #endif 45 51 default:
Note: See TracChangeset
for help on using the changeset viewer.