SSHOW - Implementation (cont.) Per-packet state typedef struct { int direction; /* 0 for client to server */ clock_t timestamp; /* timestamp of this packet */ u_int cipher_size; /* ciphertext size */ range plain_range; /* possible plaintext sizes */ } record; Per-session state struct history { record packets[HISTORY_SIZE]; /* recent packets (circular list) */ int index; /* next (free) index into packets[] */ u_int directions; /* recent directions (bitmask) */ clock_t timestamps[2]; /* last timestamps in each direction */ };