"tcpdump -tttt" prints date in "MM/DD/YYYY" format. This must be rather uncomfortable for non-English users (It was for me). So I cooked up a patch to util.c using setlocale() and strftime().
Again, I've no idea how to apply this change to the configure process (testing for setlocale(), locale.h etc). config.h needs these defines to make use of national date-format: HAVE_LOCALE, HAVE_LOCAL_H and HAVE_STRFTIME. Patch attached. PS. How come the tcpdump 3.7.2 release have several older files? The tcpdump-current from last month has several files that are newer (in terms of CVS version, but not file-version) than the release dated Febr 27. Example: diff -u3 -H -B -r tcpdump-2003.02.20/addrtoname.c tcpdump-3.7.2/addrtoname.c --- tcpdump-2003.02.20/addrtoname.c Sat Oct 5 19:19:24 2002 +++ tcpdump-3.7.2/addrtoname.c Wed Feb 26 06:07:14 2003 @@ -23,14 +23,18 @@ */ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/addrtoname.c,v 1.94 2002/10/05 19:19:24 hannes Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/addrtoname.c,v 1.83.4.1 2002/06/02 00:08:07 guy Exp $ (LBL)"; #endif Note the released file is newer (Feb 26 06:07:14 2003), but has an older CVS version (1.83). Very confusing. -- Gisle V. Entropy isn't what it used to be.
util.c.diff
Description: Binary data
