Changeset 0220eb1 for lib/linktypes.c


Ignore:
Timestamp:
04/08/06 01:34:40 (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:
68155f1
Parents:
64b6517
Message:

Remove dependance on pcap.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/linktypes.c

    r7ac9705 r0220eb1  
    11#include "libtrace.h"
     2#ifdef HAVE_PCAP
    23#include <pcap.h>
     4#endif
    35#include "dagformat.h"
    46#include "rt_protocol.h"
     
    1517{
    1618        switch(dlt) {
     19#if HAVE_PCAP
    1720                case DLT_NULL: return TRACE_TYPE_NONE;
    1821                case DLT_EN10MB: return TRACE_TYPE_ETH;
     
    2528                case DLT_PFLOG: return TRACE_TYPE_PFLOG;
    2629#endif
     30#endif
    2731                default:
    2832                        return -1;
     
    3337{
    3438        switch(type) {
     39#ifdef HAVE_PCAP
    3540                case TRACE_TYPE_NONE: return DLT_NULL;
    3641                case TRACE_TYPE_ETH: return DLT_EN10MB;
     
    4247#ifdef DLT_PFLOG
    4348                case TRACE_TYPE_PFLOG: return DLT_PFLOG;
     49#endif
    4450#endif
    4551                default:
Note: See TracChangeset for help on using the changeset viewer.