summaryrefslogtreecommitdiff
path: root/print-bootp.c
Commit message (Collapse)AuthorAgeFilesLines
* From: alex medvedev <alexm@pycckue.org>hannes2004-03-021-1/+5
| | | | | | catch a segfault: option 81 min size should be 4 bytes: http://sunsite.uakom.sk/doc/rfc/bootp-dhcp-option-81
* 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-1/+1
| | | | | | | | | | | 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".
* 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".
* Fix typo in truncation check of bp_filefenner2003-08-011-2/+2
|
* Move the definitions of "bootp_flag_values[]" and "bootp_op_values[]"guy2003-07-011-1/+12
| | | | | | out of "bootp.h" into "print-bootp.c", so we don't get unused copies of them in files other than "print-bootp.c" that include "bootp.h", and so we don't get warnings from GCC 3.3 about those unused copies.
* The source and destination port arguments to "bootp_print()" are noguy2003-05-011-2/+2
| | | | longer used; get rid of them.
* per bill fenners suggestion:hannes2003-04-281-25/+18
| | | | | | lets print a little more useful information in non-verbose mode like - Request/Reply indication - hardware adress
* Update URL for IANA BOOTP and DHCP extensions registryfenner2003-03-161-2/+2
|
* Print the length in the truncation message if we know it.fenner2003-03-121-3/+7
| | | | | | Fix the CID parser for type=0 (ASCII text) client IDs. Make the overall parser a little more robust to buggy parsers like the CID one by incrementing bp when there are bytes left over.
* We no longer use "packetp" for anything, so eliminate it. (If anyguy2002-12-181-13/+2
| | | | | | | | | | | | | dissector really needs source and destination MAC addresses, we should make global pointers to them - which would be null for packets lacking MAC addresses, so dissectors that need them will need to do something sensible if those pointers are null.) Don't fake up an Ethernet header if there aren't any MAC addresses to use when faking it up. "bp_chaddr" in "print-bootp.c" is an array, so "bp->bp_chaddr" cannot be null, and there's no need to test for it not being null.
* The "__attribute__((packed))" tag on structures causes some files not toguy2002-12-111-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* changed bootp decoder for multiline output, fixed segfault referencing NULL ↵hannes2002-12-041-25/+31
| | | | pointer
* Get rid of the "-Wno-unused" flag, and fix up most of theguy2002-09-051-3/+2
| | | | | | | | | | | | | | | 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".
* Get rid of some unnecessary includes (<time.h>, <netdb.h>, and <ctype.h>guy2002-08-061-2/+1
| | | | | are included by <tcpdump-stdinc.h>, so we don't have to include them explicitly; <errno.h> isn't needed by print routines).
* Added support for Win32, based on WinPcap.risso2002-08-011-6/+2
|
* whitespace cleanupitojun2002-06-111-2/+2
|
* Get rid of unneeded incomplete definitions of "struct mbuf" and "structguy2002-06-011-4/+1
| | | | | rtentry", and unneded includes of <sys/uio.h>, <sys/file.h>, and <sys/ioctl.h>.
* Make the tag in "rfc1048_print()" a 16-bit variable, as 16-bitguy2002-04-261-18/+19
| | | | | | | | | | quantities are stuffed into it. Add an unsigned 8-bit variable as well, for 8-bit unsigned quantities. Stuff unsigned 16-bit quantities into 16-bit variables. Print unsigned values with "%u".
* Eliminate some unused parameters.fenner2001-09-171-18/+17
| | | | | | | | | | | 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.
* Add "$" format, meaning to escape to a special printer (from LBL)fenner2001-07-041-7/+107
| | | | | | Add "$" printers for NetBIOS Node Type (WNT), DHCP Option Overload (OO), Client Identifier (CID), Client FQDN (FQDN) Change Vendor Class (VC) from decimal string to ASCII string
* Don't bother using a variable to store a constant format stringfenner2001-04-271-3/+2
| | | | in cmu_print()
* constify/printf audit changes from netbsd.itojun2001-02-211-4/+7
|
* Use EXTRACT_* instead of memcpy() to extract numeric values to handlefenner2000-12-041-7/+11
| | | | byte orders properly.
* Undo spamming of rev 1.50fenner2000-12-031-2/+2
|
* Update for new RFC's and IANA assignments. Many special-format optionsfenner2000-12-031-4/+67
| | | | | are printed as binary strings. Any of these that are in common use can get their own printers.
* Patch sent to Debian by Roderick Schertler <roderick@argon.org> to printguy2000-10-271-2/+5
| | | | | the time zone offset as a signed 32-bit integer (as RFC 1533 says it is) rather than as an unsigned 32-bit integer.
* Get rid of unneeded includes of <net/if.h>.guy2000-09-281-2/+1
|
* Add definitions of Ethernet types fromguy2000-09-231-2/+2
| | | | | | | | | | | | | | | | "linux-includes/netinet/if_ether.h" to "ethertype.h". Move other stuff used by dissectors from <netinet/if_ether.h> to "ether.h", along the lines of "fddi.h" and "token.h". Move ARP declarations from BSD include files to "print-arp.c". Remove from dissectors includes of <netinet/if_ether.h>, and add includes of "ethertype.h" and/or "ether.h" as necessary. Get rid of configuration options that test declarations now made in "ether.h" or "print-arp.c", as those declarations are now under our control, not the OS's control.
* print client-identifier in hex, from "Gisle Vanem" <gvanem@eunet.no>assar2000-07-011-4/+5
|
* remove non-STDC codeassar2000-07-011-6/+1
|
* Switch to config.h instead of passing defines in DEFS.fenner1999-11-211-1/+5
|
* now prints DHCP optionsdhcpmcr1999-10-171-1/+127
|
* Initial revisionmcr1999-10-071-0/+353