Changeset d99c759
- Timestamp:
- 03/17/10 16:50:34 (12 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:
- 026eb88
- Parents:
- 666b5cf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/tracereport/tcpsegment_report.c
r666b5cf rd99c759 7 7 #include "report.h" 8 8 9 static stat_t tcpseg_stat[3][9000] = {{{0,0}}} ; 9 #define MAX_SEG_SIZE 10000 10 11 static stat_t tcpseg_stat[3][MAX_SEG_SIZE + 1] = {{{0,0}}} ; 10 12 static bool suppress[3] = {true,true,true}; 11 13 … … 26 28 ip_len = ntohs(ip->ip_len); 27 29 ss = ip_len - (ip->ip_hl * 4); 30 31 if (ss > MAX_SEG_SIZE) { 32 fprintf(stderr, "Maximum segment size %u exceeded - size was %u\n", 33 MAX_SEG_SIZE, ss); 34 return; 35 } 36 28 37 29 38 tcpseg_stat[dir][ss].count++;
Note: See TracChangeset
for help on using the changeset viewer.