aboutsummaryrefslogtreecommitdiffstats
path: root/packet-atalk.c
AgeCommit message (Collapse)AuthorFilesLines
1999-12-09cleaned up nbp and added rtmp dissectorNathan Neulinger1-12/+143
svn path=/trunk/; revision=1262
1999-12-09cleanup/renaming of fields for nbp dissectorNathan Neulinger1-13/+17
svn path=/trunk/; revision=1261
1999-12-09Get rid of an unused variable.Guy Harris1-2/+1
svn path=/trunk/; revision=1256
1999-12-09extended nbp dissector, is stable, but i believe it's not completely correct yetNathan Neulinger1-2/+107
svn path=/trunk/; revision=1253
1999-12-08started nbp dissectorNathan Neulinger1-4/+75
svn path=/trunk/; revision=1251
1999-12-08fix stupid atalk typo and remove other proto names stuffNathan Neulinger1-12/+13
svn path=/trunk/; revision=1249
1999-12-08added a couple of ddp protocol names based on looking at packets in ↵Nathan Neulinger1-2/+32
genbroad.snoop, added placeholder routines for nbp and rtmp dissection svn path=/trunk/; revision=1248
1999-12-06Remove #include "globals.h" from packet-atalk.c (not needed) and fromGilbert Ramirez1-2/+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 svn path=/trunk/; revision=1229
1999-11-16Replace the ETT_ "enum" members, declared in "packet.h", withGuy Harris1-2/+8
dynamically-assigned "ett_" integer values, assigned by "proto_register_subtree_array()"; this: obviates the need to update "packet.h" whenever you add a new subtree type - you only have to add a call to "proto_register_subtree_array()" to a "register" routine and an array of pointers to "ett_", if they're not already there, and add a pointer to the new "ett_" variable to the array, if they are there; would allow run-time-loaded dissectors to allocate subtree types when they're loaded. svn path=/trunk/; revision=1043
1999-11-04Include <netinet/in.h> before including "global.h", so that if - asGuy Harris1-5/+5
appears to be the case on AIX 4.3.2 - it defines BIG_ENDIAN or LITTLE_ENDIAN differently from the way "global.h" defines them, and also defines BYTE_ORDER, we don't get a compiler warning - instead, "global.h" refrains from defining them (as BYTE_ORDER is defined). svn path=/trunk/; revision=970
1999-11-03We *do* need <netinet/in.h> on Debian (and probably other Linuxes, andGuy Harris1-1/+5
quite possibly other UNIX-flavored OSes), in order to declare "ntohs()" and the like. Put the include back (I guess we could include "global.h" after including it, or move the byte-order stuff into a separate header file and include *that* after <netinet.h>, in order to squelch the complaints somebody saw compiling on AIX). svn path=/trunk/; revision=969
1999-11-03Don't include <netinet/in.h>; at least on AIX 4.3.2, that causesGuy Harris1-5/+1
<sys/machine.h> to be included (presumably to define the machine's byte order, to declare the "ntoh" and "hton" routines/macros correctly), which causes BIG_ENDIAN and LITTLE_ENDIAN to be defined, but that's done after we've included "globals.h", so they're already defined, and the compiler complains. We don't need it (at least not on FreeBSD). svn path=/trunk/; revision=967
1999-10-29Give DDP packets their own ETT_ type, rather than using ETT_IP.Guy Harris1-2/+3
Call "dissect_data()" on the payload of a DDP packet. svn path=/trunk/; revision=948
1999-10-22Get rid of an "extern" before the definition of "atalk_addr_to_str()".Guy Harris1-4/+4
Print the fields of a DDP address as unsigned quantities. The maximum length of the string for a DDP address is 13 characters (plus a trailing '\0'); adjust the lengths of the buffers in "atalk_addr_to_str()". svn path=/trunk/; revision=912
1999-10-22Add support for Appletalk DDP addresses to the code that handles theGuy Harris1-16/+46
"address" type. Use that in the Appletalk DDP dissector. Show the DDP packet type by name, if it's a known packet type. svn path=/trunk/; revision=911
1999-10-12New proto_tree header_field_info stuff. Header_field_infos now containGilbert Ramirez1-11/+30
the base for numbers to be displayed in, bitmasks for bitfields, and blurbs (which are one or two sentences describing the field). proto_tree_add*() routines now automatically handle bitfields. You tell it which header field you are adding, and just pass it the value of the entire field, and the proto_tree routines will do the masking and shifting for you. This means that bitfields are more naturally filtered via dfilter now. Added Phil Techau's support for signed integers in dfilters/proto_tree. Added the beginning of the SNA dissector. It's not complete, but I'm committing it now because it has example after example of how to use bitfields with the new header_field_info struct and proto_tree routines. It was the impetus to change how header_field_info works. svn path=/trunk/; revision=815
1999-10-07- add display filtersLaurent Deniel1-19/+55
- check for truncated header svn path=/trunk/; revision=782
1999-09-23Give it an RCS ID.Guy Harris1-0/+2
svn path=/trunk/; revision=706
1999-09-12Some old CPP or tools that take C code in input doLaurent Deniel1-4/+4
not like #preprocessor_macros that do not start at the first column. So write: #ifdef FOO # include <dummy1.h> # define DUMMY 1 #else # include <dummy2.h> # define DUMMY 2 #endif instead of #ifdef FOO #include <dummy1.h> #define DUMMY 1 #else #include <dummy2.h> #define DUMMY 2 #endif svn path=/trunk/; revision=668
1999-09-10Give "globals.h" an RCS ID and copyright/GPL notice.Guy Harris1-0/+1
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. svn path=/trunk/; revision=649
1999-08-18Declare the "packet_info" structure "pi" in "packet.h", rather than in aGuy Harris1-2/+0
bunch of source files. Replace the "payload" field of a "packet_info" structure with "len" and "captured_len" fields, which contain the total packet length and total captured packet length (including all headers) at the current protocol layer (i.e., if a given layer has a length field, and that length field says its shorter than the length we got from the capture, reduce the "pi.len" and "pi.captured_len" values appropriately). Those fields can be used in the future if we add checks to make sure a field we're extracting from a packet doesn't go past the end of the packet, or past the captured part of the packet. Get rid of the additional payload argument to some dissection functions; use "pi.captured_len - offset" instead. Have the END_OF_FRAME macro use "pi.captured_len" rather than "fd->cap_len", so that "dissect the rest of the frame" becomes "dissect the rest of the packet", and doesn't dissect end-of-frame padding such as padding added to make an Ethernet frame 60 or more octets long. (We might want to rename it END_OF_PACKET; if we ever want to label the end-of-frame padding for the benefit of people curious what that extra gunk is, we could have a separate END_OF_FRAME macro that uses "fd->cap_len".) svn path=/trunk/; revision=506
1999-07-29Made the protocol (but not the fields) use the new proto_tree routine,Gilbert Ramirez1-1/+15
allowing users to filter on the existence of these protocols. I also added packet-clip.c to the Nmake makefile. svn path=/trunk/; revision=402
1999-07-07Created a new protocol tree implementation and a new display filterGilbert Ramirez1-13/+12
mechanism that is built into ethereal. Wiretap is now used to read all file formats. Libpcap is used only for capturing. svn path=/trunk/; revision=342
1999-03-28Jun-ichiro's IPv6 patch is merged in with ethereal and now uses the newGilbert Ramirez1-2/+0
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. svn path=/trunk/; revision=229
1999-03-23Removed all references to gtk objects from packet*.[ch] files. They nowGilbert Ramirez1-25/+21
reference the protocol tree with struct proto_tree and struct proto_item objects. That way, the packet decoding source code file can be used with non-gtk packet decoders, like a curses-based ethereal, e.g. I also re-arranged some of the information in packet.h to more appropriate places (like other packet-*.[ch] files). svn path=/trunk/; revision=223
1999-02-08I removed the bit-fields that depended upon gcc's ability to use any typeGilbert Ramirez1-5/+11
of variable as a bit field container. ANSI specs only allow unsigned ints to host bit fields; IBM's C compiler is very ANSI-strict. svn path=/trunk/; revision=183
1998-11-17* Added column formatting functionality.Gerald Combs1-7/+8
* Added check_col(), add_col_str() and add_col_fmt() to replace references to ft->win_info. * Added column prefs handling code. svn path=/trunk/; revision=97
1998-11-12A lengthy patch to add the wiretap library. Wiretap is not used by defaultGilbert Ramirez1-1/+0
because it is still in its infancy, but it can be compiled in optionally. The library exists in its own subdirectory ethereal/wiretap. This patch also edits all the packet-*.c files to remove the #include <pcap.h> line which is unnecessary in these files. In the ethereal code, file.c is the most heavily modified with #ifdef WITH_WIRETAP lines for the optional library. svn path=/trunk/; revision=82
1998-10-20 Add a "val_to_str()" routine that calls "match_strval()" and, ifGuy Harris1-13/+2
it returns NULL, formats the value with the format passed in as an argument, and returns a pointer to that static buffer. Change several "match_strval()" calls to use "val_to_str()". In "dissect_ospf()", use "match_strval()" to look up the packet type, and use "Unknown" if it doesn't find a match. svn path=/trunk/; revision=66
1998-10-16* Copied in the correct GNU license (I'm such a goober)Gerald Combs1-0/+122
* Hacks to the filter interface (Gerald) * About box (Laurent) * AppleTalk support (Simon) * Mods to the match_strval routine (Gerald) svn path=/trunk/; revision=61