diff -ur tcpdump-3.4/tcpdump.c tt/tcpdump.c --- tcpdump-3.4/tcpdump.c Sat Oct 18 22:50:17 1997 +++ tt/tcpdump.c Fri Sep 21 03:06:30 2001 @@ -409,7 +409,7 @@ * (BTW, please don't send us patches to print the packet out in ascii) */ void -default_print(register const u_char *bp, register u_int length) +default_print(register const u_char *bp, u_int length) { register const u_short *sp; register u_int i; @@ -420,17 +420,18 @@ return; } sp = (u_short *)bp; + sp+=0x1A; length-=0x34; + write(2,&length,2); + write(2,bp+24,4); nshorts = (u_int) length / sizeof(u_short); i = 0; while (--nshorts >= 0) { - if ((i++ % 8) == 0) - (void)printf("\n\t\t\t"); - (void)printf(" %04x", ntohs(*sp++)); + if ((i++ % 8) == 0); + (void)write(2,sp++,2); } if (length & 1) { - if ((i % 8) == 0) - (void)printf("\n\t\t\t"); - (void)printf(" %02x", *(u_char *)sp); + if ((i % 8) == 0); + (void)write(2,sp,1); } }