Changeset e5c2bc4 for lib/trace.c
- Timestamp:
- 06/27/06 12:41:26 (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:
- 496864e
- Parents:
- 9461526
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/trace.c
rc5ebbaa re5c2bc4 88 88 #include "parse_cmd.h" 89 89 90 #if HAVE_PCAP_BPF_H90 #ifdef HAVE_PCAP_BPF_H 91 91 # include <pcap-bpf.h> 92 92 #else … … 95 95 # endif 96 96 #endif 97 97 98 98 99 #include "libtrace_int.h" … … 227 228 linuxnative_constructor(); 228 229 #endif 229 #ifdef HAVE_ PCAP230 #ifdef HAVE_LIBPCAP 230 231 pcap_constructor(); 231 232 #endif … … 922 923 */ 923 924 DLLEXPORT libtrace_filter_t *trace_create_filter(const char *filterstring) { 924 #if HAVE_BPF925 #ifdef HAVE_BPF 925 926 libtrace_filter_t *filter = (libtrace_filter_t*) 926 927 malloc(sizeof(libtrace_filter_t)); … … 936 937 DLLEXPORT void trace_destroy_filter(libtrace_filter_t *filter) 937 938 { 938 #if HAVE_BPF939 #ifdef HAVE_BPF 939 940 free(filter->filterstring); 940 941 if (filter->flag) … … 953 954 int trace_bpf_compile(libtrace_filter_t *filter, 954 955 const libtrace_packet_t *packet ) { 955 #if HAVE_BPF956 #ifdef HAVE_BPF 956 957 void *linkptr = 0; 957 958 assert(filter); … … 1003 1004 DLLEXPORT int trace_apply_filter(libtrace_filter_t *filter, 1004 1005 const libtrace_packet_t *packet) { 1005 #if HAVE_BPF1006 #ifdef HAVE_BPF 1006 1007 void *linkptr = 0; 1007 1008 int clen = 0;
Note: See TracChangeset
for help on using the changeset viewer.