--- a/dump.c Mon Oct 08 11:28:29 2007 +0200
+++ b/dump.c Mon Oct 08 12:15:46 2007 +0200
@@ -9,7 +9,7 @@
#include "main.h"
-const int should_dump = 0;
+int should_dump = 0;
void dump_line(const char *msg, ...)
{
--- a/main.c Mon Oct 08 11:28:29 2007 +0200
+++ b/main.c Mon Oct 08 12:15:46 2007 +0200
@@ -116,7 +116,7 @@
extern int optind, opterr, optopt;
while(1) {
- c = my_getopt(argc, argv, "tp:nBxdPN:hwCE"
+ c = my_getopt(argc, argv, "tp:nBxdPN:hwCED"
#ifdef linux
"c:e:"
#endif /* linux */
@@ -167,6 +167,9 @@
case 'E':
command_line.s_param.echo_in_local_terminal = 1;
break;
+ case 'D':
+ should_dump = 1;
+ break;
case 'e':
command_line.s_param.serve_eth = 1;
command_line.eth_device = strdup(optarg);
--- a/main.h Mon Oct 08 11:28:29 2007 +0200
+++ b/main.h Mon Oct 08 12:15:46 2007 +0200
@@ -59,6 +59,8 @@
extern int stream_buffer_size;
extern char *ostream_buffer;
extern int ostream_buffer_size;
+extern char *ostream_buffer2;
+extern int ostream_buffer2_size;
void init_stream_buffers();
void welcome_new_client_socket(int s);
@@ -80,6 +82,7 @@
char * get_xterm_resize_string();
/* dump.c */
+extern int should_dump;
void hex_dump(const char *head, const unsigned char *data, int len);
void dump_line(const char *msg, ...);