Changeset f3ed52a
- Timestamp:
- 11/23/05 12:38:56 (15 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:
- 6342c18
- Parents:
- 08f7fca
- Location:
- lib
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/format_erf.c
r08f7fca rf3ed52a 63 63 #include <stdlib.h> 64 64 65 /* 66 gzread (gzFile, buf, len) 67 gzwrite(gzFile, buf, len) 68 gzdopen(path, mode) 69 gzclose(gzFile) 70 71 fread(ptr, size, num, FILE) 72 fwrite(ptr, size, num, FILE) 73 fopen(path, mode) 74 fdopen(fildes, mode) 75 */ 65 76 #if HAVE_ZLIB 66 77 # include <zlib.h> 67 78 # define LIBTRACE_READ gzread 79 # define LIBTRACE_OPEN gzopen 68 80 # define LIBTRACE_FDOPEN gzdopen 69 81 # define LIBTRACE_CLOSE gzclose 70 82 # define LIBTRACE_WRITE gzwrite 71 83 #else 72 # define LIBTRACE_READ read 73 # define LIBTRACE_FDOPEN open 74 # define LIBTRACE_CLOSE close 75 # define LIBTRACE_WRITE write 84 # define LIBTRACE_READ fread 85 # define LIBTRACE_OPEN fopen 86 # define LIBTRACE_FDOPEN fdopen 87 # define LIBTRACE_CLOSE fclose 88 # define LIBTRACE_WRITE fwrite 76 89 #endif 77 90 … … 83 96 #endif 84 97 85 externstruct libtrace_format_t erf;86 externstruct libtrace_format_t rtclient;98 static struct libtrace_format_t erf; 99 static struct libtrace_format_t rtclient; 87 100 #if HAVE_DAG 88 externstruct libtrace_format_t dag;101 static struct libtrace_format_t dag; 89 102 #endif 90 externstruct libtrace_format_t legacypos;91 externstruct libtrace_format_t legacyeth;92 externstruct libtrace_format_t legacyatm;103 static struct libtrace_format_t legacypos; 104 static struct libtrace_format_t legacyeth; 105 static struct libtrace_format_t legacyatm; 93 106 94 107 #define CONNINFO libtrace->format_data->conn_info … … 113 126 gzFile *file; 114 127 #else 115 FILE *file;128 FILE *file; 116 129 #endif 117 130 } input; -
lib/format_pcap.c
r41b53c2 rf3ed52a 65 65 66 66 #if HAVE_PCAP 67 externstruct libtrace_format_t pcap;68 externstruct libtrace_format_t pcapint;67 static struct libtrace_format_t pcap; 68 static struct libtrace_format_t pcapint; 69 69 70 70 … … 468 468 pcap_set_capture_length, /* set_capture_length */ 469 469 pcap_get_fd, /* get_fd */ 470 trace_event_ device, /* trace_event */470 trace_event_trace, /* trace_event */ 471 471 pcapint_help /* help */ 472 472 }; -
lib/format_template.c
r7c8eacf rf3ed52a 41 41 #endif 42 42 43 externstruct libtrace_format_t template;43 static struct libtrace_format_t template; 44 44 45 45 struct libtrace_format_data_t { -
lib/format_wag.c
r8013711 rf3ed52a 88 88 #endif 89 89 90 externstruct libtrace_format_t wag;90 static struct libtrace_format_t wag; 91 91 92 92 #define CONNINFO libtrace->format_data->conn_info -
lib/trace.c
rf04e489 rf3ed52a 1095 1095 struct libtrace_eventobj_t trace_event(struct libtrace_t *trace, 1096 1096 struct libtrace_packet_t *packet) { 1097 struct libtrace_eventobj_t event ;1097 struct libtrace_eventobj_t event = {0,0,0.0,0}; 1098 1098 1099 1099 if (!trace) {
Note: See TracChangeset
for help on using the changeset viewer.