summaryrefslogtreecommitdiff
path: root/print-ripng.c
Commit message (Collapse)AuthorAgeFilesLines
* From Gisle Vanem: don't do the IN6_IS_ADDR_UNSPECIFIED stuff unless it'sguy2005-01-041-17/+9
| | | | | | | not defined, and, if it isn't and _MSC_VER also isn't defined, just define a IN6_IS_ADDR_UNSPECIFIED() function, rather than, on MinGW, defining an IN6_ADDR_EQUAL() function and defining IN6_IS_ADDR_UNSPECIFIED() in terms of it.
* 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".
* Fix up some errors from the previous checkin.guy2002-12-111-7/+13
| | | | | | | 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-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.
* 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).
* Small fix to reflect the change in the ip6_misc.h file of libpcaprisso2002-08-021-1/+6
|
* Added support for Win32, based on WinPcap.risso2002-08-011-6/+11
|
* clarify some signedness mixupitojun2001-11-161-5/+5
|
* print [|ripng], not [|rip], on truncation.itojun2001-11-161-2/+2
|
* Don't print multiple lines for a single packet unless -vvfenner2001-05-101-3/+3
|
* no need to include ip6.hitojun2000-10-071-3/+1
|
* 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.
* Add an "ip.h" header, to declare the IP stuff needed by dissectors, andguy2000-09-231-3/+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-3/+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.
* Unify rcsid[]'s.fenner2000-01-091-1/+1
|
* 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/+123
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?