summaryrefslogtreecommitdiff
path: root/print-decnet.c
Commit message (Collapse)AuthorAgeFilesLines
* u_intN_t is dead, long live uintN_t.Guy Harris2014-04-231-8/+8
| | | | | | | | | And, as we require at least autoconf 2.61, and as autoconf 2.61 and later have AC_TYPE_UINTn_T and AC_TYPE_INTn_T macros, we use them to define the uintN_t and intN_t macros if the system doesn't define them for us. This lets us get rid of bitypes.h as well.
* Netdissectify the to-name resolution routines.Guy Harris2014-04-041-9/+9
| | | | | | | | Have them take a netdissect_options * argument, and get the "no name resolution" flag from it. Move the declaration of dnaddr_string to addrtoname.h, along with the other XXX-to-string routines.
* fixup a few ND_DEFAULTPRINT() use casesDenis Ovsienko2014-04-021-3/+3
|
* NDOize DECnet, OSPF and TCP decodersDenis Ovsienko2014-04-021-187/+197
|
* merge decnet.h into print-decnet.cDenis Ovsienko2014-04-021-1/+439
|
* NDOize safeputs() and safeputchar()Denis Ovsienko2014-04-011-1/+1
|
* remove tcpdump's own CVS keywordsDenis Ovsienko2014-01-031-5/+0
| | | | | | Remove lots of $Header's and a few $Id's that all belong to the former CVS repository of tcpdump itself. These keywords have been frozen since the migration to git in late 2008.
* make consistent use of the "tstr" idiomDenis Ovsienko2013-12-261-6/+8
| | | | | | | | For each decoder that has more than one instance of truncation signaling and prints the same string in each instance make sure that the string is declared as "static const char tstr[]" right after the initial includes block. Where necessary, replace fputs(s, stdout) with equivalent printf("%s", s).
* justify declarations of struct tok arraysDenis Ovsienko2013-09-241-1/+1
| | | | | | Make sure all of them are declared const and most of them -- static. Proper declaration of token arrays is a common review point for new code that is based on existing decoders. Thus fix the issue at its root.
* 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