aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ipv6.h
AgeCommit message (Collapse)AuthorFilesLines
2002-01-21Include files from the "epan" directory and subdirectories thereof withguy1-2/+2
"epan/..." pathnames, so as to avoid collisions with header files in any of the directories in which we look (e.g., "proto.h", as some other package has its own "proto.h" file which it installs in the top-level include directory). Don't add "-I" flags to search "epan", as that's no longer necessary (and we want includes of "epan" headers to fail if the "epan/" is left out, so that we don't re-introduce includes lacking "epan/"). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4586 f5534014-38df-0310-8fa8-9805f1628bb7
2002-01-15From Martti Kuparinen: update the HMIPv6 support to match the latestguy1-5/+3
draft (draft-ietf-mobileip-hmipv6-05.txt). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4546 f5534014-38df-0310-8fa8-9805f1628bb7
2001-09-04HMIPv6 support, from Martti Kuparinen.guy1-2/+27
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3907 f5534014-38df-0310-8fa8-9805f1628bb7
2001-06-26indentation consistencies.itojun1-33/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3608 f5534014-38df-0310-8fa8-9805f1628bb7
2001-06-01draft-draves-ipngwg-router-selection-01 support.itojun1-17/+40
fix icmp6 homeagent info option decoding (convert to tvb framework). plug a memory leak. sync some of mobile-ip6 #define symbol names with draft-ietf-ipngwg-2292bis-02. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3497 f5534014-38df-0310-8fa8-9805f1628bb7
2001-04-23Now that the IPv6 dissector has been tvbuffified, we can register it; doguy1-3/+1
so, make it static, and call it only through a handle. In the ICMPv6 dissector, when we dissect the invoking packet in an ICMPv6 error or in a redirected header option, make the columns non-writable, so the summary line for the packet shows it as an ICMPv6 packet, not as the packet included in the ICMPv6 packet. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3361 f5534014-38df-0310-8fa8-9805f1628bb7
2001-04-23Tvbuffification of the IPv6 and ICMPv6 dissectors, and some bug fixesguy1-2/+2
and an update to draft 7 of ICMPv6 name lookups, from Heikki Vatiainen. Fix some formats in the ICMPv6 dissector to use %u, rather than %d, for unsigned quantities. Show various type and code values in ICMPv6 as decimal, not hexadecimal (they're decimal in the RFCs). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3360 f5534014-38df-0310-8fa8-9805f1628bb7
2001-04-01Moved some ipv6 definitions from packet-ipv6.h to epan/ipv6-utils.h.hagbard1-30/+3
Fixed some typos. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3230 f5534014-38df-0310-8fa8-9805f1628bb7
2001-01-23Mobile IPv6 updates from Borosa Tomislav <tomislav.borosa@SIEMENS.HR>.gerald1-77/+102
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2935 f5534014-38df-0310-8fa8-9805f1628bb7
2000-12-14Mobile IPv6 support, from Martti Kuparinen.guy1-1/+76
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2755 f5534014-38df-0310-8fa8-9805f1628bb7
2000-11-11Get rid of the definitions of LITTLE_ENDIAN and BIG_ENDIAN inguy1-33/+1
"epan/pint.h" - they caused GCC to whine about them being redefined when I compiled on FreeBSD 3.4. Get rid of the stuff in "packet-ipv6.h" that defines various bit vectors differently depending on the byte order of the machine; instead, define them so that they work with items in host byte order. This lets us use a number of them rather than using hardwired hex values. Put "frag.ip6f_offlg" in host byte order before using it; this means that IP6F_MORE_FRAG can still be used even though it now works only on items in host byte order. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2610 f5534014-38df-0310-8fa8-9805f1628bb7
2000-11-09support match-prefix and use-prefix decoding for router renumbering protocolitojun1-48/+16
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2592 f5534014-38df-0310-8fa8-9805f1628bb7
2000-11-09correct IPv6 router renumbering dissector.itojun1-22/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2591 f5534014-38df-0310-8fa8-9805f1628bb7
2000-08-18add dissector for draft-ietf-ipngwg-icmp-name-lookups-06.txtitojun1-20/+70
(icmp node information query). not finished yet - need DNS decoding. for DNS name queries/replies. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2289 f5534014-38df-0310-8fa8-9805f1628bb7
2000-02-15Create a header file for every packet-*.c file. Prune the packet.h file.gram1-1/+3
This change allows you to add a new packet-*.c file and not cause a recompilation of everything that #include's packet.h Add the plugin_api.[ch] files ot the plugins/Makefile.am packaging list. Add #define YY_NO_UNPUT 1 to the lex source so that the yyunput symbol is not defined, squelching a compiler complaint when compiling the generated C file. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1637 f5534014-38df-0310-8fa8-9805f1628bb7
1999-12-06Use WORDS_BIGENDIAN, rather than BYTE_ORDER, to determine which valuesguy1-5/+4
to use for IPV6_FLOWINFO_MASK and IPV6_FLOWLABEL_MASK. WORDS_BIGENDIAN is defined as long as you include "config.h"; BYTE_ORDER is defined only if you include "global.h" (or if your OS *happens* to define it in an include file that's being included), and we're trimming the number of files that include "global.h". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1230 f5534014-38df-0310-8fa8-9805f1628bb7
1999-12-06Remove #include "globals.h" from packet-atalk.c (not needed) and fromgram1-5/+1
packet-ipv6.h. Of all the files that include packet-ipv6.h, only ipproto.c needs "globals.h", so I put the #include in ipproto.c git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1229 f5534014-38df-0310-8fa8-9805f1628bb7
1999-11-18Craig Rodrigues' fixes to let it compile on AIX using IBM's compilerguy1-31/+31
(remove commas following the last member of an enum, make all bit fields "guint32" - GCC lets you get away with that, but at least some other compilers don't). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1052 f5534014-38df-0310-8fa8-9805f1628bb7
1999-11-03Don't define IPV6_VERSION; at least on AIX 4.3.2, one user got aguy1-4/+1
compiler warning because it was also defined by <netinet/in.h>, and we're not using it. Don't define IPV6_VERSION, either. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@966 f5534014-38df-0310-8fa8-9805f1628bb7
1999-10-22Generalize the "ip_src" and "ip_dst" members of the "packet_info"guy1-1/+11
structure to "dl_src"/"dl_dst", "net_src"/"net_dst", and "src"/"dst" addresses, where an address is an address type, an address length in bytes, and a pointer to that many bytes. "dl_{src,dst}" are the link-layer source/destination; "net_{src,dst}" are the network-layer source/destination; "{src,dst}" are the source/destination from the highest of those two layers that we have in the packet. Add a port type to "packet_info" as well, specifying whether it's a TCP or UDP port. Don't set the address and port columns in the dissector functions; just set the address and port members of the "packet_info" structure. Set the columns in "fill_in_columns()"; this means that if we're showing COL_{DEF,RES,UNRES}_SRC" or "COL_{DEF,RES,UNRES}_DST", we only generate the string from "src" or "dst", we don't generate a string for the link-layer address and then overwrite it with a string for the network-layer address (generating those strings costs CPU). Add support for "conversations", where a "conversation" is (at present) a source and destination address and a source and destination port. (In the future, we may support "conversations" above the transport layer, e.g. a TFTP conversation, where the first packet goes from the client to the TFTP server port, but the reply comes back from a different port, and all subsequent packets go between the client address/port and the server address/new port, or an NFS conversation, which might include lock manager, status monitor, and mount packets, as well as NFS packets.) Currently, all we support is a call that takes the source and destination address/port pairs, looks them up in a hash table, and: if nothing is found, creates a new entry in the hash table, and assigns it a unique 32-bit conversation ID, and returns that conversation ID; if an entry is found, returns its conversation ID. Use that in the SMB and AFS code to keep track of individual SMB or AFS conversations. We need to match up requests and replies, as, for certain replies, the operation code for the request to which it's a reply doesn't show up in the reply - you have to find the request with a matching transaction ID. Transaction IDs are per-conversation, so the hash table for requests should include a conversation ID and transaction ID as the key. This allows SMB and AFS decoders to handle IPv4 or IPv6 addresses transparently (and should allow the SMB decoder to handle NetBIOS atop other protocols as well, if the source and destination address and port values in the "packet_info" structure are set appropriately). In the "Follow TCP Connection" code, check to make sure that the addresses are IPv4 addressses; ultimately, that code should be changed to use the conversation code instead, which will let it handle IPv6 transparently. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@909 f5534014-38df-0310-8fa8-9805f1628bb7
1999-10-14use inet_pton() and inet_ntop(), which are RFC2553 standard functionitojun1-4/+1
for converting IPv[46] numeric notation to/from binary form. recent BIND includes those functions so fallback is not necessary on most of the platforms. sorry if it raises any portability problem on other platforms. remove partial inclusion of inet_ntop() in packet-ipv6.c. move ip6_to_str() to packet.c, it fits better there than packet-ipv6.c. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@829 f5534014-38df-0310-8fa8-9805f1628bb7
1999-09-10Give "globals.h" an RCS ID and copyright/GPL notice.guy1-1/+5
Move some defines that would be used even by a non-GTK+-based Ethereal from "gtk/main.h" to "globals.h". Remove the byte-order #defines from "packet.h", as they're now in "globals.h" (having been moved there from "gtk/main.h"). Fix up some files that use those #defines to include "globals.h". "resolv.c" doesn't use any GTK stuff, so it needn't include <gtk/gtk.h> nor "gtk/main.h" - it only did so to get the byte-order #defines for the benefit of "packet-ipv6.h", and "packet-ipv6.h" now includes them itself. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@649 f5534014-38df-0310-8fa8-9805f1628bb7
1999-07-23Got rid of ipv6 compiler warnings when compiling on RedHat 6.0.gram1-1/+17
Initialized AndXCommand to 0 in packet-smb.c just to get rid of compiler warning about 'possibly used uninitialized'. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@382 f5534014-38df-0310-8fa8-9805f1628bb7
1999-04-06Capturing packets from ethereal now saves the capture in an "anonymous" ↵gram1-0/+25
buffer. That is, it's a random name chosen by tempnam(), unknown to the user. If the user decides to save that trace, he then uses File | Save to save it to a file. File | Save As lets him make a copy of his named trace file as well. I also updated my e-mail address in the various credit locations. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@242 f5534014-38df-0310-8fa8-9805f1628bb7
1999-03-28Jun-ichiro's IPv6 patch is merged in with ethereal and now uses the newgram1-8/+478
proto*() functions. The configure script tries to use ipv6 name resolution if it knows the type of ipv6 stack the user has (this can be avoided with the --disable-ipv6 switch) Additionally, the configure script now deals with wiretap better. If the user doesn't want to compile wiretap, the wiretap is never visited. A few unnecessary #includes were removed from some wiretap files, and a CPP macro was moved from bpf.c to wtap.h. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@229 f5534014-38df-0310-8fa8-9805f1628bb7
1998-09-16Initial revisiongerald1-0/+8
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2 f5534014-38df-0310-8fa8-9805f1628bb7