Changeset dce95f3 for lib/trace.c
- Timestamp:
- 11/19/04 12:45:04 (18 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:
- 1f284e7
- Parents:
- 79ffccd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/trace.c
r624a2f5 rdce95f3 81 81 #include "libtrace.h" 82 82 #include "fifo.h" 83 84 #define HAVE_BPF 0 85 #define HAVE_PCAP 0 86 #define HAVE_ZLIB 0 87 #define DAGDEVICE 0 83 88 84 89 #if HAVE_PCAP_BPF_H … … 368 373 struct sockaddr_in remote; 369 374 struct sockaddr_un unix_sock; 375 #if HAVE_PCAP 370 376 char errbuf[PCAP_ERRBUF_SIZE]; 377 #endif 371 378 372 379 if(init_trace(&libtrace,uri) == 0) { … … 620 627 int size; 621 628 char buf[RP_BUFSIZE]; 629 #if HAVE_PCAP 622 630 struct pcap_pkthdr pcaphdr; 631 const u_char *pcappkt; 632 #endif 623 633 dag_record_t *erfptr; 624 const u_char *pcappkt;625 634 int read_required = 0; 626 635 … … 976 985 timestamp = erfptr->ts; 977 986 break; 987 #if HAVE_PCAP 978 988 case PCAPINT: 979 989 case PCAP: … … 982 992 (pcapptr->ts.tv_usec*UINT_MAX/1000000)); 983 993 break; 994 #endif 984 995 case WAGINT: 985 996 case WAG:
Note: See TracChangeset
for help on using the changeset viewer.