From aae035c5b91f4d0435c68a2fbde410e7fea8153a Mon Sep 17 00:00:00 2001 From: Gerhard Rieger Date: Wed, 8 Dec 2010 10:58:25 +0100 Subject: [PATCH] option -x prints info about packet --- CHANGES | 3 +++ socat.c | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 96e4c3a..4e1f09e 100644 --- a/CHANGES +++ b/CHANGES @@ -20,6 +20,9 @@ corrections: address option ioctl-intp failed with "unimplemented type 26". Thanks to Jeremy W. Sherman for reporting and fixing that bug + socat option -x did not print packet direction, timestamp etc; thanks + to Anthony Sharobaiko for sending a patch + ####################### V 1.7.1.3: security: diff --git a/socat.c b/socat.c index ed53435..5062914 100644 --- a/socat.c +++ b/socat.c @@ -1,5 +1,5 @@ /* source: socat.c */ -/* Copyright Gerhard Rieger 2001-2009 */ +/* Copyright Gerhard Rieger 2001-2010 */ /* Published under the GNU General Public License V.2, see file COPYING */ /* this is the main source, including command line option parsing, general @@ -1297,7 +1297,8 @@ int xiotransfer(xiofile_t *inpipe, xiofile_t *outpipe, } } else if (socat_opts.verbhex) { int i; - /*! prefix? */ + /* print prefix */ + xioprintblockheader(stderr, bytes, righttoleft); for (i = 0; i < bytes; ++i) { fprintf(stderr, " %02x", (*buff)[i]); }