option -x prints info about packet

This commit is contained in:
Gerhard Rieger 2012-07-22 16:31:57 +02:00
parent 352820b21c
commit ab25a5199b
2 changed files with 6 additions and 2 deletions

View file

@ -49,6 +49,9 @@ corrections:
address option ioctl-intp failed with "unimplemented type 26". Thanks address option ioctl-intp failed with "unimplemented type 26". Thanks
to Jeremy W. Sherman for reporting and fixing that bug 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. docu mentions option so-bindtodev but correct name is so-bindtodevice.
Thanks to Jim Zimmerman for reporting. Thanks to Jim Zimmerman for reporting.

View file

@ -1,5 +1,5 @@
/* source: xiotransfer.c */ /* 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 */ /* Published under the GNU General Public License V.2, see file COPYING */
/* this is the source file of the data transfer function */ /* 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) { } else if (xioparams->verbhex) {
int i; int i;
/*! prefix? */ /* print prefix */
xioprintblockheader(stderr, bytes, righttoleft);
for (i = 0; i < bytes; ++i) { for (i = 0; i < bytes; ++i) {
fprintf(stderr, " %02x", (*buff)[i]); fprintf(stderr, " %02x", (*buff)[i]);
} }