Changeset 063c879
- Timestamp:
- 10/11/04 14:48:11 (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:
- be78902
- Parents:
- 886c3d9
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
config.h
r886c3d9 r063c879 15 15 16 16 /* Define to 1 if you have the <net/bpf.h> header file. */ 17 /* #undef HAVE_NET_BPF_H */ 17 #define HAVE_NET_BPF_H 1 18 18 19 19 /* Define to 1 if you have the <pcap-bpf.h> header file. */ 20 #define HAVE_PCAP_BPF_H 1 20 /* #undef HAVE_PCAP_BPF_H */ 21 21 22 22 /* Define to 1 if you have the <pcap.h> header file. */ … … 99 99 /* #undef const */ 100 100 101 /* Define to `__inline__' or `__inline' if that's what the C compiler 102 calls it, or to nothing if 'inline' is not supported under any name. */ 103 #ifndef __cplusplus 101 /* Define as `__inline' if that's what the C compiler calls it, or to nothing 102 if it is not supported. */ 104 103 /* #undef inline */ 105 #endif106 104 107 105 /* Define to `unsigned' if <sys/types.h> does not define. */ -
config.h.in
r2b07596 r063c879 98 98 #undef const 99 99 100 /* Define to `__inline__' or `__inline' if that's what the C compiler 101 calls it, or to nothing if 'inline' is not supported under any name. */ 102 #ifndef __cplusplus 100 /* Define as `__inline' if that's what the C compiler calls it, or to nothing 101 if it is not supported. */ 103 102 #undef inline 104 #endif105 103 106 104 /* Define to `unsigned' if <sys/types.h> does not define. */ -
lib/libtrace.h
r1a857f1 r063c879 358 358 TRACE_EVENT_SLEEP, 359 359 TRACE_EVENT_PACKET 360 } libtrace_event _t;361 362 typedef struct libtrace_eventobj{363 libtrace_event _t type;360 } libtrace_eventtype_t; 361 362 struct libtrace_event_t { 363 libtrace_eventtype_t type; 364 364 int fd; 365 365 double seconds; 366 } libtrace_eventobj_t;366 }; 367 367 368 368 /** process a libtrace event … … 379 379 * TRACE_EVENT_PACKET Packet arrived in <buffer> with size <size> 380 380 */ 381 libtrace_eventobj_t trace_event(struct libtrace_t *trace,381 struct libtrace_event_t trace_event(struct libtrace_t *trace, 382 382 struct libtrace_packet_t *packet); 383 383 -
lib/trace.c
r37d2975 r063c879 1045 1045 * @author Perry Lorier 1046 1046 */ 1047 libtrace_eventobj_t libtrace_event(struct libtrace_t *trace,1047 struct libtrace_event_t libtrace_event(struct libtrace_t *trace, 1048 1048 struct libtrace_packet_t *packet) { 1049 libtrace_eventobj_t event;1049 struct libtrace_event_t event; 1050 1050 /* Is there a packet ready? */ 1051 1051 switch (trace->sourcetype) {
Note: See TracChangeset
for help on using the changeset viewer.