mirror of
https://repo.or.cz/socat.git
synced 2025-01-08 22:12:33 +00:00
option -x prints info about packet
This commit is contained in:
parent
06179edeb6
commit
aae035c5b9
2 changed files with 6 additions and 2 deletions
3
CHANGES
3
CHANGES
|
@ -20,6 +20,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
|
||||||
|
|
||||||
####################### V 1.7.1.3:
|
####################### V 1.7.1.3:
|
||||||
|
|
||||||
security:
|
security:
|
||||||
|
|
5
socat.c
5
socat.c
|
@ -1,5 +1,5 @@
|
||||||
/* source: socat.c */
|
/* 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 */
|
/* Published under the GNU General Public License V.2, see file COPYING */
|
||||||
|
|
||||||
/* this is the main source, including command line option parsing, general
|
/* 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) {
|
} else if (socat_opts.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]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue