/*
* Netgrind -- The Network Traffic Analyser
*
- * (c) 2003 Martin Mares <mj@ucw.cz>
+ * (c) 2003--2013 Martin Mares <mj@ucw.cz>
*
* This software may be freely distributed and used according to the terms
* of the GNU General Public License.
-s Dump connection summary\n\
-t Calculate statistics only\n\
-w TCP: Wait for ACK before processing packets\n\
+-x <dir> Dump HTTP transactions to a given directory\n\
");
exit(1);
}
byte *histogram = NULL;
tcp_default_appl = &appl_mux;
- while ((c = getopt(argc, argv, "ac:d:D:f:h:stw")) >= 0)
+ while ((c = getopt(argc, argv, "ac:d:D:f:h:stwx:")) >= 0)
switch (c)
{
case 'a':
case 't':
tcp_default_appl = &appl_sink;
break;
+ case 'x':
+ http_log_dir = optarg;
+ break;
default:
usage();
}
}
tcp_cleanup(last_timestamp);
histogram_cleanup();
+ printf("\n");
printf("# Netgrind statistics:\n");
printf("# Pcap: %Ld(%Ld) in, %Ld(%Ld) incomplete\n",
stat_pcap_in.packets, stat_pcap_in.bytes,