Changeset 09be643
- Timestamp:
- 02/21/07 16:06:38 (14 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:
- f9b6f64
- Parents:
- d4336d5
- Location:
- tools/tracereport
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/tracereport/ecn_report.c
rd4336d5 r09be643 29 29 int i; 30 30 printf("%-20s","Direction:"); 31 //printf("%20s", " ");32 31 for(i=0;i<4;i++){ 33 32 if(!suppress[i]){ -
tools/tracereport/port_report.c
rd4336d5 r09be643 39 39 int i; 40 40 printf("%-20s","Direction:"); 41 //printf("%20s", " ");42 41 for(i=0;i<4;i++){ 43 42 if(!suppress[i]){ … … 133 132 endprotoent(); 134 133 endservent(); 135 136 int total, j,k;137 for(i=0;i<4;i++){138 total = 0;139 for(j=0;j<256;j++)140 for(k=0;k<65536;k++)141 total += ports[i][j][k].count;142 //printf("%s: %i\n", "Total", total);143 }144 134 } -
tools/tracereport/protocol_report.c
rd4336d5 r09be643 28 28 int i; 29 29 printf("%-20s","Direction:"); 30 //printf("%20s", " ");31 30 for(i=0;i<4;i++){ 32 31 if(!suppress[i]){ … … 97 96 } 98 97 setprotoent(0); 99 100 int total;101 for(i=0;i<4;i++){102 total = 0;103 for(j=0;j<256;j++)104 total += prot_stat[i][j].count;105 //printf("%s: %i\n", "Total", total);106 }107 98 } -
tools/tracereport/tcpopt_report.c
rd4336d5 r09be643 46 46 int i; 47 47 printf("%-20s","Direction:"); 48 //printf("%20s", " ");49 48 for(i=0;i<4;i++){ 50 49 if(!suppress[i]){ -
tools/tracereport/tcpsegment_report.c
rd4336d5 r09be643 20 20 int a = trace_get_wire_length(packet); 21 21 a -= 34; 22 //int b = tcp->doff*4; 23 //if(b == 20) 24 // printf("Wire: %i\n", a); 22 25 23 tcpseg_stat[dir][a].count++; 26 24 tcpseg_stat[dir][a].bytes+=trace_get_wire_length(packet); … … 32 30 int i; 33 31 printf("%-20s","Direction:"); 34 //printf("%20s", " ");35 32 for(i=0;i<4;i++){ 36 33 if(!suppress[i]){ -
tools/tracereport/tos_report.c
rd4336d5 r09be643 12 12 { 13 13 struct libtrace_ip *ip = trace_get_ip(packet); 14 15 14 if (!ip) 16 15 return; … … 27 26 int i; 28 27 printf("%-20s","Direction:"); 29 //printf("%20s", " ");30 28 for(i=0;i<4;i++){ 31 29 if(!suppress[i]){ … … 77 75 printf("\n"); 78 76 } 79 80 int total;81 for(i=0;i<4;i++){82 total = 0;83 for(j=0;j<256;j++)84 total += tos_stat[i][j].count;85 //printf("%s: %i\n", "Total", total);86 }87 77 } -
tools/tracereport/tracereport.c
rd4336d5 r09be643 2 2 * This file is part of libtrace 3 3 * 4 * Copyright (c) 200 4The University of Waikato, Hamilton, New Zealand.4 * Copyright (c) 2007 The University of Waikato, Hamilton, New Zealand. 5 5 * Authors: Daniel Lawson 6 6 * Perry Lorier 7 * 7 * Josef Vodanovich 8 8 * 9 9 * All rights reserved. … … 136 136 //ecn_report(); 137 137 //tcpseg_report(); 138 138 return 0; 139 139 } -
tools/tracereport/ttl_report.c
rd4336d5 r09be643 26 26 int i; 27 27 printf("%-20s","Direction:"); 28 //printf("%20s", " ");29 28 for(i=0;i<4;i++){ 30 29 if(!suppress[i]){ … … 76 75 printf("\n"); 77 76 } 78 79 int total;80 for(i=0;i<4;i++){81 total = 0;82 for(j=0;j<256;j++)83 total += ttl_stat[i][j].count;84 //printf("%s: %i\n", "Total", total);85 }86 77 }
Note: See TracChangeset
for help on using the changeset viewer.