summaryrefslogtreecommitdiff
path: root/print-tftp.c
Commit message (Collapse)AuthorAgeFilesLines
* NDOize the rest of util.cDenis Ovsienko2014-04-141-3/+3
|
* spell "%s" format strings (complements 708a68a)Denis Ovsienko2014-03-311-1/+1
| | | | | Make "%s" format string always reside in the print function call explicitly such that the reader doesn't have to assess its safety.
* NDOize 7 more small decodersDenis Ovsienko2014-03-211-20/+21
| | | | | This change converts DVMRP, DLT_ENC, EGP, GeoNet, NetFlow, SLIP and TFTP decoders.
* remove unused macro SEGSIZEDenis Ovsienko2014-03-141-5/+0
|
* don't include addrtoname.h needlesslyDenis Ovsienko2014-02-251-1/+0
|
* 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.
* Merge branch 'master' of git+ssh://bpf.tcpdump.org/tcpdump/master/git/tcpdumpMichael Richardson2014-01-011-1/+42
|\ | | | | | | | | Conflicts: enc.h
| * Commit more changes from the previous two.Guy Harris2013-12-301-1/+42
| |
* | whitespace changesMichael Richardson2014-01-011-1/+1
|/
* make consistent use of the "tstr" idiomDenis Ovsienko2013-12-261-1/+2
| | | | | | | | 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-2/+2
| | | | | | 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.
* Clean up handling of tftp.h.Guy Harris2010-08-231-8/+0
| | | | | | | | Don't include the win32/Include/Arpa copy in print-udp.c; don't put that copy into the release tarball; and don't talk about <arpa/tftp.h>, or work around its deficiencies in some OSes, as we no longer include it, we include our own tftp.h, which has a th_stuff array in its structure definition.
* Redefined ERROR into TFTP_ERROR, as ERROR is already defined in thegianluca2008-04-111-3/+3
| | | | Microsoft header files.
* From Christian Sievers: add support for TFTP option acknowledgementsguy2007-09-141-6/+12
| | | | | | | | | | (RFC 2347), and add an opening quotation mark to the error message string. Don't use the system's <arpa/tftp.h>, use our own. Update the README to reflect the current practice for submitting patches, and fix a spelling error.
* 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".
* Add some casts to squelch compiler warnings.guy2003-05-021-3/+3
| | | | | | | | When seeing whether the difference between two pointers exceeds an unsigned value (we know the difference is positive), subtract the pointers and then cast the result to an unsigned integer, don't cast the pointers to unsigned integers - the latter isn't the right way to do it in C, and isn't LP64-clean.
* From Rob Braun <bbraun@synack.net>: print mode and TFTP options in readguy2003-02-191-1/+13
| | | | and write request packets.
* The "__attribute__((packed))" tag on structures causes some files not toguy2002-12-111-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | compile with Sun C, as "interface.h" isn't being included before the structures are being declared. Furthermore, in the files that Sun C *can* compile, it doesn't cause Sun C to generate code that's safe with unaligned accesses, as "__attribute__" is defined as a do-nothing macro with compilers that don't support it. Therefore, we get rid of that tag on the structures to which it was added, and instead use "EXTRACT_16BIT()" and "EXTRACT_32BIT()" to fetch 16-bit and 32-bit big-endian quantities from packets. We also fix some other references to multi-byte quantities to get rid of code that tries to do unaligned loads on platforms that don't support them. We also throw in a hack that makes those macros use "__attribute__((packed))" on structures containing only one 16-bit or 32-bit integer to get the compiler to generate unaligned-safe code rather than doing it by hand. (GCC on SPARC produces the same code that doing it by hand does; I don't know if GCC on any other big-endian strict-alignment processor generates better code for that case. On little-endian processors, as "ntohs()" and "ntohl()" might be functions, that might actually produce worse code.) Fix some places to use "%u" rather than "%d" to print unsigned quantities.
* Added support for Win32, based on WinPcap.risso2002-08-011-6/+2
|
* Switch to config.h instead of passing defines in DEFS.fenner1999-11-211-1/+5
|
* Initial revisionmcr1999-10-071-0/+142