Changeset e3b0188
- Timestamp:
- 11/07/05 10:06:22 (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:
- 5843707
- Parents:
- 130a0e4
- Files:
-
- 1 added
- 1 deleted
- 25 edited
Legend:
- Unmodified
- Added
- Removed
-
ChangeLog
r1da1812 re3b0188 29 29 ## 30 30 31 - Version 2.0.24 (unreleased) 31 - Version 2.0.25 (unreleased) 32 * updated rtclient_read_packet to be compatible with new rt protocol 33 * rtclient input now correctly ignores packets with type = RT_MSG 34 35 - Version 2.0.24 32 36 * minor bugs in format_erf 33 37 * applied autoconf to tools/ dir - these are now built and installed … … 36 40 * improved checking for libpcap 37 41 * improved checking for g++ (needed for libpacketdump) 38 * updated rtclient_read_packet to be compatible with new rt protocol39 * rtclient input now correctly ignores packets with type = RT_MSG40 42 41 43 - Version 2.0.23 -
lib/Makefile.am
r41b53c2 re3b0188 1 1 lib_LTLIBRARIES = libtrace.la 2 include_HEADERS = libtrace.h dagformat.h wag.h daglegacy.h2 include_HEADERS = libtrace.h dagformat.h wag.h lt_inttypes.h 3 3 4 libtrace_la_SOURCES = trace.c fifo.c fifo.h common.h format_template.c format_erf.c format_pcap.c format_wag.c format_helper.c format_helper.h parse_cmd.c parse_cmd.h libtrace_int.h lt_inttypes.h 4 5 if DAG2_4 5 libtrace_la_SOURCES = trace.c fifo.c fifo.h common.h format_template.c format_erf.c format_pcap.c format_wag.c format_helper.c format_helper.h parse_cmd.c parse_cmd.h libtrace_int.h daglegacy.h6 6 nodist_libtrace_la_SOURCES = dagopts.c dagapi.c 7 else8 libtrace_la_SOURCES = trace.c fifo.c fifo.h common.h format_template.c format_erf.c format_pcap.c format_wag.c format_helper.c format_helper.h parse_cmd.c parse_cmd.h libtrace_int.h daglegacy.h9 7 endif 10 8 -
lib/dagformat.h
rb87e133 re3b0188 87 87 #define dag_record_size 16 88 88 89 typedef struct legacy_cell { 90 uint64_t ts; 91 uint32_t crc; 92 } legacy_cell_t; 93 94 typedef struct legacy_ether { 95 uint64_t ts; 96 uint16_t wlen; 97 } legacy_ether_t; 98 99 typedef struct legacy_pos { 100 uint64_t ts; 101 uint32_t slen; 102 uint32_t wlen; 103 } legacy_pos_t; 104 89 105 #endif // _DAGFORMAT_H_ -
lib/format_erf.c
r117e83b re3b0188 62 62 #include <string.h> 63 63 #include <stdlib.h> 64 #include "daglegacy.h"65 64 66 65 #if HAVE_ZLIB -
lib/libtrace_int.h
r7c8eacf re3b0188 69 69 # include "dagformat.h" 70 70 #endif 71 #include "daglegacy.h"72 71 73 72 typedef enum {SOCKET, TRACE, STDIN, DEVICE, INTERFACE, RT } source_t; -
libpacketdump/ip_17.cc
r010fafb re3b0188 4 4 #include <map> 5 5 #include "libpacketdump.h" 6 #include "libtrace.h" 6 7 #include <netinet/udp.h> 7 8 #include <netinet/in.h> … … 28 29 void decode(int link_type,char *packet,int len) 29 30 { 30 struct udphdr *udp = (struct udphdr*)packet;31 struct libtrace_udp *udp = (struct libtrace_udp*)packet; 31 32 printf(" UDP:"); 32 33 if (SAFE(source)) { -
libpacketdump/libpacketdump.cc
r41b53c2 re3b0188 8 8 #include <stdlib.h> 9 9 #include <getopt.h> 10 11 #include <sys/socket.h> 10 12 11 13 #ifdef HAVE_NETINET_ETHER -
tools/tracereport/contain.c
r49ce177 re3b0188 1 1 #include <stdio.h> 2 #include <inttypes.h> 3 #include <lt_inttypes.h> 2 4 #include <stdlib.h> 3 5 #include "contain.h" 6 #include "config.h" 4 7 5 8 splay *splay_search_tree(splay *tree, splay_cmp_t cmp, splay *node) { -
tools/tracereport/dir_report.c
r49ce177 re3b0188 1 1 #include <netdb.h> 2 2 #include <inttypes.h> 3 #include <lt_inttypes.h> 3 4 #include <stdio.h> 4 5 #include "libtrace.h" -
tools/tracereport/error_report.c
r49ce177 re3b0188 1 1 #include <netdb.h> 2 2 #include <inttypes.h> 3 #include <lt_inttypes.h> 3 4 #include <stdio.h> 4 5 #include "libtrace.h" -
tools/tracereport/flow_report.c
r49ce177 re3b0188 1 1 #include <netdb.h> 2 2 #include <inttypes.h> 3 #include <lt_inttypes.h> 3 4 #include <stdio.h> 4 5 #include <stdlib.h> -
tools/tracereport/output.c
rd3ff1fb re3b0188 1 1 #define _GNU_SOURCE 2 2 #include <stdio.h> 3 #include <inttypes.h> 4 #include <lt_inttypes.h> 5 3 6 4 7 enum stats_output_format_t { -
tools/tracereport/port_report.c
r49ce177 re3b0188 1 1 #include <netdb.h> 2 2 #include <inttypes.h> 3 #include <lt_inttypes.h> 3 4 #include <stdio.h> 4 5 #include <stdlib.h> -
tools/tracereport/protocol_report.c
rd3ff1fb re3b0188 1 1 #include <netdb.h> 2 2 #include <inttypes.h> 3 #include <lt_inttypes.h> 3 4 #include <stdio.h> 4 5 #include "libtrace.h" -
tools/tracereport/tos_report.c
rd3ff1fb re3b0188 1 1 #include <netdb.h> 2 2 #include <inttypes.h> 3 #include <lt_inttypes.h> 3 4 #include <stdio.h> 4 5 #include "libtrace.h" -
tools/tracereport/tracereport.c
r49ce177 re3b0188 50 50 #include <getopt.h> 51 51 #include <inttypes.h> 52 #include "lt_inttypes.h" 52 53 53 54 #include "libtrace.h" -
tools/tracereport/ttl_report.c
rd3ff1fb re3b0188 1 1 #include <netdb.h> 2 2 #include <inttypes.h> 3 #include <lt_inttypes.h> 3 4 #include <stdio.h> 4 5 #include "libtrace.h" -
tools/tracertstats/output.c
r9c13ab0 re3b0188 1 1 #include <inttypes.h> 2 #include <lt_inttypes.h> 2 3 #include <stdio.h> 3 4 #include <assert.h> … … 57 58 assert(col>=0 && col<out->columns); \ 58 59 out->data[col].type=TYPE_ ## type_; \ 59 out->data[col].d _ ## type_ = data; \60 out->data[col].d.d_ ## type_ = data; \ 60 61 } 61 62 -
tools/tracertstats/output.h
r9c13ab0 re3b0188 14 14 TYPE__float d_float; 15 15 TYPE__time d_time; 16 } ;16 } d; 17 17 }; 18 18 -
tools/tracertstats/output_csv.c
r65cdb7f re3b0188 2 2 #include <stdio.h> 3 3 #include <stdlib.h> 4 #include <inttypes.h> 5 #include <lt_inttypes.h> 4 6 5 7 static void output_csv_init(struct output_data_t *out) … … 21 23 switch (out->data[i].type) { 22 24 case TYPE_int: 23 printf("%" PRIu64,out->data[i].d _int);25 printf("%" PRIu64,out->data[i].d.d_int); 24 26 break; 25 27 case TYPE_str: 26 printf("%s",out->data[i].d _str);27 free(out->data[i].d _str);28 printf("%s",out->data[i].d.d_str); 29 free(out->data[i].d.d_str); 28 30 break; 29 31 case TYPE_float: 30 printf("%f",out->data[i].d _float);32 printf("%f",out->data[i].d.d_float); 31 33 break; 32 34 case TYPE_time: 33 printf("%.03f",out->data[i].d _time);35 printf("%.03f",out->data[i].d.d_time); 34 36 break; 35 37 } -
tools/tracertstats/output_html.c
r65cdb7f re3b0188 2 2 #include <stdio.h> 3 3 #include <stdlib.h> 4 #include <inttypes.h> 5 #include <lt_inttypes.h> 4 6 5 7 static void output_html_init(struct output_data_t *out) … … 38 40 switch (out->data[i].type) { 39 41 case TYPE_int: 40 printf(" <td class=\"numeric\">%" PRIu64 "</td>\n",out->data[i].d _int);42 printf(" <td class=\"numeric\">%" PRIu64 "</td>\n",out->data[i].d.d_int); 41 43 break; 42 44 case TYPE_str: 43 printf(" <td>%s</td>\n",out->data[i].d _str);44 free(out->data[i].d _str);45 printf(" <td>%s</td>\n",out->data[i].d.d_str); 46 free(out->data[i].d.d_str); 45 47 break; 46 48 case TYPE_float: 47 printf(" <td class=\"numeric\">%f</td>\n",out->data[i].d _float);49 printf(" <td class=\"numeric\">%f</td>\n",out->data[i].d.d_float); 48 50 break; 49 51 case TYPE_time: 50 printf(" <td class=\"numeric\">%.03f</td>\n",out->data[i].d _time);52 printf(" <td class=\"numeric\">%.03f</td>\n",out->data[i].d.d_time); 51 53 break; 52 54 } -
tools/tracertstats/output_png.c
r8e99466 re3b0188 7 7 #include "gdchart.h" 8 8 #include "gdcpie.h" 9 #include <inttypes.h> 10 #include <lt_inttypes.h> 9 11 10 12 struct private_png_t { … … 29 31 switch (out->data[i].type) { 30 32 case TYPE_int: 31 prv->data[out->columns*(prv->rows-1)+i]=out->data[i].d _int;33 prv->data[out->columns*(prv->rows-1)+i]=out->data[i].d.d_int; 32 34 break; 33 35 case TYPE_str: 34 free(out->data[i].d _str);36 free(out->data[i].d.d_str); 35 37 break; 36 38 case TYPE_float: 37 prv->data[out->columns*(prv->rows-1)+i]=out->data[i].d _float;39 prv->data[out->columns*(prv->rows-1)+i]=out->data[i].d.d_float; 38 40 break; 39 41 case TYPE_time: 40 prv->data[out->columns*(prv->rows-1)+i]=out->data[i].d _time;42 prv->data[out->columns*(prv->rows-1)+i]=out->data[i].d.d_time; 41 43 break; 42 44 } -
tools/tracertstats/output_txt.c
r9c13ab0 re3b0188 2 2 #include <stdio.h> 3 3 #include <stdlib.h> 4 #include <inttypes.h> 5 #include <lt_inttypes.h> 4 6 5 7 #define COLWIDTH 11 … … 28 30 switch (out->data[i].type) { 29 31 case TYPE_int: 30 printf("%*" PRIu64 " ",COLWIDTH-1,out->data[i].d _int);32 printf("%*" PRIu64 " ",COLWIDTH-1,out->data[i].d.d_int); 31 33 break; 32 34 case TYPE_str: 33 printf("%*s ",COLWIDTH-1,out->data[i].d _str);34 free(out->data[i].d _str);35 printf("%*s ",COLWIDTH-1,out->data[i].d.d_str); 36 free(out->data[i].d.d_str); 35 37 break; 36 38 case TYPE_float: 37 printf("%*f ",COLWIDTH-1,out->data[i].d _float);39 printf("%*f ",COLWIDTH-1,out->data[i].d.d_float); 38 40 break; 39 41 case TYPE_time: 40 printf("%*.0f ",COLWIDTH-1,out->data[i].d _time);42 printf("%*.0f ",COLWIDTH-1,out->data[i].d.d_time); 41 43 break; 42 44 } -
tools/tracertstats/tracertstats.c
r9c13ab0 re3b0188 50 50 #include <getopt.h> 51 51 #include <inttypes.h> 52 #include <lt_inttypes.h> 52 53 53 54 #include "libtrace.h" -
tools/tracesplit/tracesplit.c
r41b53c2 re3b0188 5 5 # include <inttypes.h> 6 6 #endif 7 #include <lt_inttypes.h> 7 8 #include <stdbool.h> 8 9 #include <getopt.h> 9 10 #include <string.h> 10 11 #ifndef UINT64_MAX12 # if __WORDSIZE == 6413 # define UINT64_MAX 18446744073709551615UL14 # else15 # define UINT64_MAX 18446744073709551615ULL16 # endif17 #endif18 11 19 12 char *strdupcat(char *str,char *app)
Note: See TracChangeset
for help on using the changeset viewer.