summaryrefslogtreecommitdiff
path: root/print-dhcp6.c
Commit message (Collapse)AuthorAgeFilesLines
* Improve printout of DHCPv6 options.Steinar Haug2010-11-131-3/+3
| | | | Reviewed-By: Guy Harris <guy@alum.mit.edu>
* From Francois-Xavier Le Bail: use hyphens, rather than spaces, in DHCPv6Guy (Core OS) Harris2009-06-031-39/+39
| | | | | | option names, so that the "-v" display, which prints options separated by spaces, isn't ambiguous. (The BOOTP dissector has hyphens in the BOOTP/DHCP option names.)
* Don't use structures to define the layout of DHCP options. For oneGuy Harris2009-05-241-125/+61
| | | | thing, there's no guarantee that __attribute__ ((__packed__)) works.
* From Francis Dupont: update the DHCPv6 printer to handle newer features.guy2008-02-061-1/+132
|
* From Shinsuke Suzuki:guy2006-10-251-44/+78
| | | | | | | | | | | Some of the options in print-dhcp6.c are declared as "unassigned ones". but it is no longer true due to an IETF standardization activities. Here's the patch to catch up with the latest IANA assignment, including an removal of the old Prefix- Delegation option used in the NTT-communications. (AFAIK they no longer uses this old option).
* Squelch some signed-vs-unsigned comparison warnings.guy2004-07-061-4/+4
|
* DHCPv6 authentication stuff. jinmei@kameitojun2004-07-051-2/+110
|
* From Shinsuke Suzuki <suz@kame.net>: a patch to support some DHCPv6guy2004-06-161-4/+29
| | | | | | | | | | | | options. It includes the following two features: - decode the names of all the DHCPv6 Options defined in RFC3315 - support DHCPv6-Lifetime option, as defined in draft-ietf-dhc-lifetime-00.txt Note that the latter doesn't have an official DHCPv6 type number, so it's subject to change.
* use official assigned numbers for DHCPv6 prefix delegation options. suz@kameitojun2004-01-211-11/+8
|
* Get rid of unused arguments to "dhcp6_print()".guy2003-11-181-4/+3
|
* 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.
* Escape question marks, to avoid warnings about trigraphs.guy2003-11-151-2/+2
|
* 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".
* update from suz@kame.netitojun2003-10-291-4/+51
| | | | | | | | | * RFC3315: DHCPv6 * supported DHCPv6 options: * RFC3319, * draft-ietf-dhc-dhcpv6-opt-dnsconfig-04.txt, * draft-ietf-dhc-dhcpv6-opt-prefix-delegation-05.txt * draft-ietf-dhc-dhcpv6-opt-timeconfig-02.txt,
* use snprintfitojun2003-08-131-3/+3
|
* decode dhcp6 relay message. from jinmei@kameitojun2003-07-161-27/+170
|
* Fix up some errors from the previous checkin.guy2002-12-111-6/+7
| | | | | | | Fix up some const and unsigned issues. Make static some routines unused outside the file in which they're defined.
* The "__attribute__((packed))" tag on structures causes some files not toguy2002-12-111-11/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Get rid of an argument to "printf()" that didn't have a matching formatguy2002-08-021-2/+2
| | | | item.
* Added support for Win32, based on WinPcap.risso2002-08-011-8/+2
|
* avoid trigraphitojun2002-06-151-10/+10
|
* dhcpv6 i-d revision 26, by jinmei@kameitojun2002-06-141-18/+207
|
* whitespace cleanupitojun2002-06-111-3/+3
|
* 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>.
* Fix a cast to use the correct type.guy2002-01-191-2/+2
|
* use draft 22 declaration for dhcp6 (which is under dhcwg last call - hopeitojun2002-01-101-255/+140
| | | | it does not change again).
* Eliminate some unused parameters.fenner2001-09-171-2/+2
| | | | | | | | | | | 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.
* tidy up prototypesitojun2001-01-281-4/+4
|
* Eliminate __P().fenner2000-10-241-4/+4
|
* Get rid of unneeded includes of <net/if.h>.guy2000-09-281-2/+1
|
* correct spacing.itojun2000-07-311-8/+7
|
* remove non-STDC codeassar2000-07-011-6/+1
|
* correct dhcp6 solitation plen/id handling. plen is 7 bit, id is 9 bit!itojun2000-05-171-29/+32
|
* sync with draft-ietf-dhc-dhcp6v6exts-12.itojun2000-05-151-25/+30
|
* correct protocol flag processing.itojun2000-05-131-16/+14
|
* support new IPv6 dhcp spec (15 draft). no backward compatibility initojun2000-05-131-23/+35
| | | | | packet format specification. From: jinmei@kame.net
* s/u_short/u_int16_t/ for KAME-origin source codesitojun2000-04-281-2/+2
|
* * print-rt6.c: make IPv6 routing header printing work with new 2292bisitojun1999-12-221-3/+5
| | | | | | | | | | | API. * print-bgp.c: improve options printing. ugly code exists for unaligned option parsing (need some fix). * const poisoning in SMB decoder. * make dump format back to original. someone may want to add an option to do ascii printing, but keep the default behavior as is for scripts used in many places. * -Wall -Werror clean checks.
* Switch to config.h instead of passing defines in DEFS.fenner1999-11-211-1/+5
|
* Bring in KAME IPv6 tcpdump. replaces esp/ah/isakmp decoder.itojun1999-10-301-0/+336
Hope I did not break anything. Portability on IPv4-only node needs checking, I'll do this very soon. (sorry for rather jumbo commit) XXx what is _FAVOR_BSD?