Changeset d7e8e67
- Timestamp:
- 03/23/10 11:47:46 (11 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:
- ddab7f9
- Parents:
- f1ab057
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/format_linux.c
r238d50a rd7e8e67 496 496 hdr->wirelen = recvmsg(FORMAT(libtrace->format_data)->fd, &msghdr, 0); 497 497 498 if (hdr->wirelen== -1) {498 if (hdr->wirelen==~0U) { 499 499 trace_set_err(libtrace,errno,"recvmsg"); 500 500 return -1; 501 501 } 502 502 503 hdr->caplen=LIBTRACE_MIN( snaplen,hdr->wirelen);503 hdr->caplen=LIBTRACE_MIN((unsigned int)snaplen,(unsigned int)hdr->wirelen); 504 504 505 505 /* Extract the timestamps from the msghdr and store them in our -
tools/tracediff/tracediff.c
r7da2676 rd7e8e67 24 24 * by the trace format, e.g. the ERF or PCAP header, is not examined. 25 25 */ 26 void per_packet(libtrace_packet_t *a, libtrace_packet_t *b)26 static void per_packet(libtrace_packet_t *a, libtrace_packet_t *b) 27 27 { 28 28 char *buf_a, *buf_b; … … 74 74 } 75 75 76 void usage(char *prog) {76 static void usage(char *prog) { 77 77 printf("Usage instructions for %s\n\n", prog); 78 78 printf("\t%s [options] traceA traceB\n\n", prog); … … 89 89 libtrace_t *trace[2]; 90 90 libtrace_packet_t *packet[2]; 91 int opt , i;91 int opt; 92 92 93 93 if (argc<2) {
Note: See TracChangeset
for help on using the changeset viewer.