option -x prints info about packet

This commit is contained in:
Gerhard Rieger 2010-12-08 10:58:25 +01:00
parent 06179edeb6
commit aae035c5b9
2 changed files with 6 additions and 2 deletions

View file

@ -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:

View file

@ -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]);
}