X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/babac7bd70fda1ec0c9810c8f4ccf08cfa1e31fb..00db133f300dd6aa08111d2b42c749a940ecede9:/putty.h diff --git a/putty.h b/putty.h index 4302b849..27a6564e 100644 --- a/putty.h +++ b/putty.h @@ -130,7 +130,8 @@ GLOBAL unsigned char unitab_ctrl[256]; #define LGXF_ASK -1 /* existing logfile ask */ #define LGTYP_NONE 0 /* logmode: no logging */ #define LGTYP_ASCII 1 /* logmode: pure ascii */ -#define LGTYP_DEBUG 2 /* logmode: all chars of taffic */ +#define LGTYP_DEBUG 2 /* logmode: all chars of traffic */ +#define LGTYP_PACKETS 3 /* logmode: SSH data packets */ GLOBAL char *logfile; /* @@ -486,6 +487,13 @@ void logfclose(void); void term_copyall(void); /* + * Exports from logging.c. + */ +void logtraffic(unsigned char c, int logmode); +enum { PKT_INCOMING, PKT_OUTGOING }; +void log_packet(int direction, int type, char *texttype, void *data, int len); + +/* * Exports from raw.c. */