From ab25a5199b8028a28e423bcb26f873fe9b164e89 Mon Sep 17 00:00:00 2001 From: Gerhard Rieger Date: Sun, 22 Jul 2012 16:31:57 +0200 Subject: [PATCH] option -x prints info about packet --- CHANGES | 3 +++ xiotransfer.c | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 62f2d4f..5dedd5f 100644 --- a/CHANGES +++ b/CHANGES @@ -49,6 +49,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 docu mentions option so-bindtodev but correct name is so-bindtodevice. Thanks to Jim Zimmerman for reporting. diff --git a/xiotransfer.c b/xiotransfer.c index 1a2bbcf..fa19911 100644 --- a/xiotransfer.c +++ b/xiotransfer.c @@ -1,5 +1,5 @@ /* source: xiotransfer.c */ -/* Copyright Gerhard Rieger 2007-2008 */ +/* Copyright Gerhard Rieger 2007-2012 */ /* Published under the GNU General Public License V.2, see file COPYING */ /* this is the source file of the data transfer function */ @@ -227,7 +227,8 @@ int xiotransfer(xiofile_t *inpipe, xiofile_t *outpipe, } } else if (xioparams->verbhex) { int i; - /*! prefix? */ + /* print prefix */ + xioprintblockheader(stderr, bytes, righttoleft); for (i = 0; i < bytes; ++i) { fprintf(stderr, " %02x", (*buff)[i]); }