1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-06-30 19:12:48 -05:00

In SSH packet logging mode, log SSH-2 packet sequence numbers, in

both directions. We had a bug report yesterday about a Cisco router
sending SSH2_MSG_UNIMPLEMENTED and it wasn't clear for which packet;
logging the sequence numbers should make such problems much easier
to diagnose.

(In fact this logging fix wouldn't have helped in yesterday's case,
because the router also didn't bother to fill in the sequence number
field in the SSH2_MSG_UNIMPLEMENTED packet! This is a precautionary
measure against the next one of these problems.)

[originally from svn r8295]
This commit is contained in:
Simon Tatham
2008-11-11 07:47:27 +00:00
parent 59691d28a3
commit 3a3abd211b
3 changed files with 25 additions and 15 deletions

View File

@ -870,8 +870,9 @@ struct logblank_t {
int type;
};
void log_packet(void *logctx, int direction, int type,
char *texttype, void *data, int len,
int n_blanks, const struct logblank_t *blanks);
char *texttype, const void *data, int len,
int n_blanks, const struct logblank_t *blanks,
const unsigned long *sequence);
/*
* Exports from testback.c