From owner-freebsd-hackers Wed Feb 28 17:46:16 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id RAA06059 for hackers-outgoing; Wed, 28 Feb 1996 17:46:16 -0800 (PST) Received: from multivac.orthanc.com (root@multivac.orthanc.com [206.12.238.2]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id RAA06048 for ; Wed, 28 Feb 1996 17:46:12 -0800 (PST) Received: from localhost (lyndon@localhost) by multivac.orthanc.com (8.7.3/8.7.3) with SMTP id RAA05053 for ; Wed, 28 Feb 1996 17:46:09 -0800 (PST) Message-Id: <199602290146.RAA05053@multivac.orthanc.com> X-Authentication-Warning: multivac.orthanc.com: Host lyndon@localhost didn't use HELO protocol From: Lyndon Nerenberg VE7TCP To: hackers@freebsd.org Subject: tcpdump changes X-Attribution: VE7TCP Date: Wed, 28 Feb 1996 17:46:08 -0800 Sender: owner-hackers@freebsd.org Precedence: bulk I'm thinking of making a change to tcpdump and would like to solicit comments ... The '-x' option prints a hex dump of packet contents (modulo capture length). I would like to modify it to also include an ASCII representation of the same data. (Makes it easier to trace things like SMTP protocol sessions.) The ASCII representation would be printed in a second column to the right of the existing hex dump (with the hex output suitably shifted to the left to make space). For display purposes anything failing isprint() would print as a '.'. (Can anyone think of a rational for supporting locale's in this context?) Is there anything out there (expect scripts or the like) that will break if the output format of -x changes? I would like to avoid adding another option for ASCII output if at all possible. --lyndon