Changeset 64b6517


Ignore:
Timestamp:
04/08/06 01:33:04 (15 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:
0220eb1
Parents:
7b4b5ab
Message:

Fix pcap dependancies

Location:
lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lib/protocols.c

    r9231fe5 r64b6517  
    77#include "wag.h"
    88#include <assert.h>
     9#include <stdio.h>
    910
    1011
     
    181182                case TRACE_TYPE_ATM:
    182183                        return trace_get_payload_from_atm(link,type,remaining);
    183                 default:
    184                         fprintf(stderr,"Don't understand link layer type %i in trace_get_ip6()\n",
    185                                 linktype);
    186                         return NULL;
    187         }
     184        }
     185        fprintf(stderr,"Don't understand link layer type %i in trace_get_ip6()\n",
     186                linktype);
     187        return NULL;
    188188}
    189189
  • lib/rt_protocol.h

    rb51edf5 r64b6517  
    33
    44#include "libtrace.h"
     5#ifdef HAVE_PCAP
    56#include <pcap.h>
     7#endif
    68
    79#define CAPTURE_PORT 3434
     
    5961 RT_DATA_LEGACY_ETH     =RT_DATA_SIMPLE + TRACE_FORMAT_LEGACY_ETH,
    6062
     63#ifdef HAVE_PCAP
    6164 RT_DATA_PCAP_NULL              =RT_DATA_PCAP + DLT_NULL,
    6265 RT_DATA_PCAP_EN10MB            =RT_DATA_PCAP + DLT_EN10MB,
     
    6871#ifdef DLT_PFLOG
    6972 RT_DATA_PCAP_PFLOG             =RT_DATA_PCAP + DLT_PFLOG,
     73#endif
    7074#endif
    7175 RT_LAST = 3000
Note: See TracChangeset for help on using the changeset viewer.