mirror of
https://github.com/moparisthebest/socat
synced 2024-12-21 22:48:48 -05:00
option -x prints info about packet
This commit is contained in:
parent
06179edeb6
commit
aae035c5b9
3
CHANGES
3
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:
|
||||
|
5
socat.c
5
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]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user