for (i = -1; i < pktout.length; i++) debug(("  %02x", (unsigned char)pktout.body[i])); debug(("\r\n"));
dmemdump(pktout.body-1, pktout.length+1);
static int s_wrpkt_prepare(void) {    int pad, len, biglen, i;    unsigned long crc;    pktout.body[-1] = pktout.type;#if 0    debug(("Packet payload pre-compression:\n"));    for (i = -1; i < pktout.length; i++)        debug(("  %02x", (unsigned char)pktout.body[i]));    debug(("\r\n"));#endif    if (ssh1_compressing) {	unsigned char *compblk;	int complen;	zlib_compress_block(pktout.body-1, pktout.length+1,			    &compblk, &complen);	ssh1_pktout_size(complen-1);	memcpy(pktout.body-1, compblk, complen);	sfree(compblk);#if 0	debug(("Packet payload post-compression:\n"));	for (i = -1; i < pktout.length; i++)	    debug(("  %02x", (unsigned char)pktout.body[i]));	debug(("\r\n"));#endif    }    len = pktout.length + 5;	       /* type and CRC */    pad = 8 - (len%8);    biglen = len + pad;    for (i=0; i<pad; i++)	pktout.data[i+4] = random_byte();    crc = crc32(pktout.data+4, biglen-4);    PUT_32BIT(pktout.data+biglen, crc);    PUT_32BIT(pktout.data, len);#if 0    debug(("Sending packet len=%d\r\n", biglen+4));    for (i = 0; i < biglen+4; i++)        debug(("  %02x", (unsigned char)pktout.data[i]));    debug(("\r\n"));#endif    if (cipher)	cipher->encrypt(pktout.data+4, biglen);    return biglen+4;}