- Timestamp:
- 02/23/07 15:52:17 (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:
- 3bfeb7d
- Parents:
- b5dc60d
- Location:
- tools/tracereport
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/tracereport/Makefile.am
rd4336d5 r051618c 21 21 ttl_report.c\ 22 22 tcpopt_report.c\ 23 synopt_report.c\ 23 24 nlp_report.c\ 24 25 ecn_report.c\ -
tools/tracereport/report.h
rd4336d5 r051618c 10 10 void ttl_per_packet(struct libtrace_packet_t *packet); 11 11 void tcpopt_per_packet(struct libtrace_packet_t *packet); 12 void synopt_per_packet(struct libtrace_packet_t *packet); 12 13 void nlp_per_packet(struct libtrace_packet_t *packet); 13 14 void ecn_per_packet(struct libtrace_packet_t *packet); … … 22 23 void ttl_report(void); 23 24 void tcpopt_report(void); 25 void synopt_report(void); 24 26 void nlp_report(void); 25 27 void ecn_report(void); -
tools/tracereport/tracereport.c
rb5dc60d r051618c 98 98 if (reports_required & REPORT_TYPE_TCPOPT) 99 99 tcpopt_per_packet(packet); 100 if (reports_required & REPORT_TYPE_SYNOPT) 101 synopt_per_packet(packet); 100 102 if (reports_required & REPORT_TYPE_NLP) 101 103 nlp_per_packet(packet); … … 122 124 "-t --ttl Report IP TTL\n" 123 125 "-O --tcpoptions \tReport TCP Options\n" 126 "-o --synoptions \tReport TCP Options seen on SYNs\n" 124 127 "-n --nlp Report network layer protocols\n" 125 128 "-d --direction Report direction\n" … … 151 154 { "ttl", 0, 0, 't' }, 152 155 { "tcpoptions", 0, 0, 'O' }, 156 { "synoptions", 0, 0, 'o' }, 153 157 { "nlp", 0, 0, 'n' }, 154 158 { "direction", 0, 0, 'd' }, … … 157 161 { NULL, 0, 0, 0 } 158 162 }; 159 opt = getopt_long(argc, argv, "f:HeFPpTtO ndCs", long_options,163 opt = getopt_long(argc, argv, "f:HeFPpTtOondCs", long_options, 160 164 &option_index); 161 165 if (opt == -1) … … 186 190 case 'O': 187 191 reports_required |= REPORT_TYPE_TCPOPT; 192 break; 193 case 'o': 194 reports_required |= REPORT_TYPE_SYNOPT; 188 195 break; 189 196 case 'P': … … 234 241 if (reports_required & REPORT_TYPE_TCPOPT) 235 242 tcpopt_report(); 243 if (reports_required & REPORT_TYPE_SYNOPT) 244 synopt_report(); 236 245 if (reports_required & REPORT_TYPE_NLP) 237 246 nlp_report(); -
tools/tracereport/tracereport.h
rf9b6f64 r051618c 18 18 REPORT_TYPE_DIR = 1 << 8, 19 19 REPORT_TYPE_ECN = 1 << 9, 20 REPORT_TYPE_TCPSEG = 1 << 10 20 REPORT_TYPE_TCPSEG = 1 << 10, 21 REPORT_TYPE_SYNOPT = 1 << 11 21 22 } report_type_t; 22 23
Note: See TracChangeset
for help on using the changeset viewer.