mirror of
https://repo.or.cz/socat.git
synced 2024-12-22 15:32:35 +00:00
option -x prints info about packet
This commit is contained in:
parent
352820b21c
commit
ab25a5199b
2 changed files with 6 additions and 2 deletions
3
CHANGES
3
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.
|
||||
|
|
|
@ -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]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue