- Timestamp:
- 05/10/06 09:57:52 (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:
- 3fcb8b4
- Parents:
- 9b8c7ad
- Location:
- lib
- Files:
-
- 1 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/fifo.c
r431548c5 r77285d9 39 39 40 40 #include "fifo.h" 41 42 #ifndef PRIu64 43 #define PRIu64 "llu" 44 #endif 45 46 #ifndef PRIi64 47 #define PRIi64 "lli" 48 #endif 41 49 42 50 enum which_t { FIFO_PTR_IN, FIFO_PTR_OUT, FIFO_PTR_ACK }; -
lib/format_pcap.c
r431548c5 r77285d9 273 273 packet->buf_control = TRACE_CTRL_PACKET; 274 274 275 /* If we're using the replacement pcap_next_ex() we need to 276 * make sure we have a buffer to *shudder* memcpy into 277 */ 278 if (!packet->buffer) { 279 packet->buffer = malloc(LIBTRACE_PACKET_BUFSIZE); 280 if (!packet->buffer) { 281 trace_set_err(libtrace, errno, 282 "Cannot allocate memory"); 283 return -1; 284 } 285 286 packet->header = packet->buffer; 287 packet->payload = (char *)packet->buffer + 288 sizeof(struct pcap_pkthdr); 289 } 290 275 291 for(;;) { 276 292 -
lib/libtrace.h.in
re5f1431 r77285d9 57 57 58 58 #include <sys/types.h> 59 #include <sys/time.h> 60 59 61 #ifdef _MSC_VER 60 62 /* define the following from MSVC's internal types */ … … 98 100 # include <netinet/in.h> 99 101 # include <stdbool.h> 102 # include <sys/types.h> 103 # include <sys/socket.h> 100 104 #endif 101 105 … … 119 123 # define SIMPLE_FUNCTION 120 124 # define UNUSED 121 # define PACKED __declspec(align(1))125 # define PACKED 122 126 # define CONSTRUCTOR 123 127 #endif -
lib/linktypes.c
rfe4ab68 r77285d9 13 13 #ifndef WIN32 14 14 #include <net/if_arp.h> 15 #else 15 #endif 16 17 #ifndef ARPHRD_ETHER 16 18 #define ARPHRD_ETHER 1 /* Ethernet 10/100Mbps. */ 19 #endif 20 21 #ifndef ARPHRD_PPP 17 22 #define ARPHRD_PPP 512 18 23 #endif -
lib/pcap_dump_flush.c
rf2f47a7 r77285d9 17 17 return (0); 18 18 } 19 19 20 #endif -
lib/protocols.c
r95747c3 r77285d9 11 11 #ifndef WIN32 12 12 #include <net/if_arp.h> 13 #else 13 #endif 14 15 #ifndef ARPHRD_ETHER 14 16 #define ARPHRD_ETHER 1 /* Ethernet 10/100Mbps. */ 17 #endif 18 19 #ifndef ARPHRD_PPP 15 20 #define ARPHRD_PPP 512 16 21 #endif 22 17 23 18 24 /* Returns the payload from 802.3 ethernet. Type optionally returned in -
lib/trace.c
rc37ab9f r77285d9 50 50 #include <sys/stat.h> 51 51 #include <sys/types.h> 52 #include <sys/socket.h> 52 53 #include <stdarg.h> 53 54
Note: See TracChangeset
for help on using the changeset viewer.