summaryrefslogtreecommitdiff
path: root/print-decnet.c
Commit message (Collapse)AuthorAgeFilesLines
* Add a bunch of bounds checks.guy2005-05-061-49/+174
| | | | | | | | | | | | | | | Don't bother copying the route header - we're using the EXTRACT_ macros, so we don't have to worry about alignment. Use the length field from the packet, not just the length of the containing packet, and check to make sure the containing packet is long enough to contain it. Add a bunch of checks against the packet length. In "default_print()" calls, cut the length off at the captured data length. In other calls, don't - let the bounds checks handle caplen < length.
* Have the configure script arrange that the Makefile define _U_guy2003-11-161-4/+4
| | | | | | | | | | appropriately, and that GNUmakefile and the MSVC++ project file define it apppriately, as we do with libpcap, rather than defining it in "interface.h". Undo the rcsid-shuffling and addition of extra #includes, as we no longer need to arrange that "interface.h" be included before using _U_ in an RCS ID or copyright.
* From Neil Spring:guy2003-11-151-4/+4
| | | | | | | | | | | use "_U_" in the definitions of "rcsid[]", to eliminate complaints about those variables being unused; move the definitions after the include of "interface.h", or add an include of "interface.h", so that "_U_" is defined. Include "config.h" before including "tcpdump-stdinc.h" in "missing/datalinks.c".
* Get rid of the "-Wno-unused" flag, and fix up most of theguy2002-09-051-3/+3
| | | | | | | | | | | | | | | unused-parameter problems reported by GCC. Add an _U_ tag to label parameters as unused if the function is called through a pointer (so that you can't change its signature by removing parameters) or if there are unused parameters only because the function isn't complete. Add some additional bounds checks the necessity for which was revealed while cleaning up unused-parameter problems. Make some routines static. "lcp_print()", defined in "print-lcp.c", isn't called anywhere - "print-ppp.c" has the code to dissect LCP. Get rid of "print-lcp.c".
* Added support for Win32, based on WinPcap.risso2002-08-011-6/+2
|
* From Maciej W. Rozycki <macro@ds2.pg.gda.pl>:guy2002-04-071-4/+4
| | | | | | | | DECnet support currently assumes certain conditions instead of checking for them explicitly. The following code checks if dnet_htoa() is available, possibly in libdnet and also verifies there is no declaration for the function in <netdnet/dnetdb.h> before it decides to provide a substitute.
* Eliminate some unused parameters.fenner2001-09-171-3/+3
| | | | | | | | | | | Use const more. Use EXTRACT_* macros more. Use TCHECK* more. Use tok2str() to replace some home-grown workalikes. smb: - Get rid of private types, use tcpdump-defined types - Rename fdata and fdata1 to smb_fdata and smb_fdata1 to avoid conflict with IRIX library function.
* use safeputchar() instead of cook up on its own.itojun2001-01-281-5/+2
|
* Patch from Pekka Savola <pekkas@netcore.fi> to get rid of "savestr()"guy2001-01-201-2/+2
| | | | | | | (which doesn't actually seem to be significantly more efficient than "strdup()", at least not to the extent that it makes any difference to "tcpdump"), modified to use the BSD "strdup()", rather than the old "savestr()", on platforms that lack "strdup()".
* Get rid of unneeded includes of <net/if.h>.guy2000-09-281-2/+1
|
* remove non-STDC codeassar2000-07-011-6/+1
|
* s/sprintf/snprintf/.itojun2000-01-171-3/+4
| | | | | there seem to be couple of unsafe use of strcat and strcpy - we should bring in strl{cat,cpy}.
* Switch to config.h instead of passing defines in DEFS.fenner1999-11-211-1/+5
|
* Initial revisionmcr1999-10-071-0/+778