summaryrefslogtreecommitdiff
path: root/print-rt6.c
Commit message (Collapse)AuthorAgeFilesLines
* Get rid of an unused variable.guy2005-04-201-4/+2
|
* Have various routines for printing non-final headers for IPv4/IPv6guy2003-11-191-2/+2
| | | | | | | return -1 if they run out of data. Have the IPv4 and IPv6 dissectors check for non-positive return values from those routines and quit if they see one.
* 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".
* From Kazushi Sugyo: update to draft-ietf-mobileip-ipv6-20.guy2003-02-051-2/+2
|
* The "__attribute__((packed))" tag on structures causes some files not toguy2002-12-111-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-8/+2
|
* From Kazushi Sugyo <sugyo@pb.jp.nec.com>:guy2002-06-271-1/+5
| | | | | | | | | Here is a patch for draft-ietf-mobileip-ipv6-17. - print-mobility.c: Mobility header(MIPv6 defines a new IPv6 protocol) printing - added Routing header type 2 - ICMPv6 Home Agent Address Discovery and Mobile Prefix Sol., Adv. message update
* whitespace cleanupitojun2002-06-111-2/+2
|
* Remove #if 0 sectionsfenner2001-06-151-7/+1
| | | | | | | | Finish converting over to having the caller print the IP address (except for UDP, TCP and SCTP). This consists mostly of removing places where the IP address is printed, both in the big "case" in ip_print() and in the individual printers. Also fix a couple of spacing bugs.
* add mobile-ip6 option handling. patches@tcpdump.org #113itojun2000-12-131-7/+7
| | | | from Timo Koskiahde.
* put stripped-down version of ip6.h and icmp6.h into tcpdump tree.itojun2000-10-071-2/+2
| | | | | | | | ip6.h is almost normal RFC2292 header. icmp6.h has couple of extensions (not covered by RFC2292), like MLD, ICMPv6 nodeinfo, and router renumber. XXX how to synchronize with future kame changes?
* typo in comment. from jinmei@kame.netitojun2000-10-031-2/+2
|
* Get rid of includes of <netinet/in_systm.h>, and replace "n_short",guy2000-09-291-2/+1
| | | | "n_long", and "n_time", defined in that file, with other types.
* Get rid of unneeded includes of <net/if.h>.guy2000-09-281-2/+1
|
* Add an "ip.h" header, to declare the IP stuff needed by dissectors, andguy2000-09-231-4/+1
| | | | | | | | | | | have dissectors include them rather than <netinet/ip.h> or <netinet/ip_var.h>, if they actually need that stuff. Put the declarations of the ICMP stuff directly into "print-icmp.c". Remove all unnecessary includes of <netinet/ip*.h> files. Copy the byte-order stuff from "nameser.h" into "tcp.h".
* Add "tcp.h" and "udp.h" headers, to declare the TCP and UDP stuff neededguy2000-09-231-4/+1
| | | | | | | | | by dissectors, and have dissectors include them rather than <netinet/udp.h>, <netinet/udp_var.h>, or <netinet/tcp.h>, if they actually need that stuff. Remove all unnecessary includes of <netinet/udp*.h> or <netinet/tcp*.h> files.
* Add definitions of Ethernet types fromguy2000-09-231-2/+1
| | | | | | | | | | | | | | | | "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.
* add fallback for IPV6_RTHDR_TYPE_0, noticed by Juergen Schoenwaelderassar2000-06-161-1/+4
| | | | <schoenw@ibr.cs.tu-bs.de>
* update comma/spacing.itojun2000-05-101-11/+9
|
* style. s/switch(/switch (/.itojun2000-04-241-2/+2
|
* untabify.itojun2000-04-241-2/+2
|
* avoid duplicate printout for ip6 src/dst.itojun2000-04-201-1/+3
|
* Unify rcsid[]'s.fenner2000-01-091-1/+1
|
* * print-rt6.c: make IPv6 routing header printing work with new 2292bisitojun1999-12-221-43/+43
| | | | | | | | | | | 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-0/+4
|
* Bring in KAME IPv6 tcpdump. replaces esp/ah/isakmp decoder.itojun1999-10-301-0/+116
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?