aboutsummaryrefslogtreecommitdiffstats
path: root/ethertype.c
AgeCommit message (Collapse)AuthorFilesLines
2000-04-13Change the sub-dissector handoff registration routines so that thegram1-158/+0
sub-dissector table is not stored in the header_field_info struct, but in a separate namespace. Dissector tables are now registered by name and not by field ID. For example: udp_dissector_table = register_dissector_table("udp.port"); Because of this different namespace, dissector tables can have names that are not field names. This is useful for ethertype, since multiple fields are "ethertypes". packet-ethertype.c replaces ethertype.c (the name was changed so that it would be named in the same fashion as all the filenames passed to make-reg-dotc) Although it registers no protocol or field, it registers one dissector table: ethertype_dissector_table = register_dissector_table("ethertype"); All protocols that can be called because of an ethertype field now register that fact with dissector_add() calls. In this way, one dissector_table services all ethertype fields (hf_eth_type, hf_llc_type, hf_null_etype, hf_vlan_etype) Furthermore, the code allows for names of protocols to exist in the etype_vals, yet a dissector for that protocol doesn't exist. The name of the dissector is printed in COL_INFO. You're welcome, Richard. :-) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1848 f5534014-38df-0310-8fa8-9805f1628bb7
2000-03-09Support for MultiProtocol Label Switching (MPLS). The following supportashokn1-1/+7
is being added - MPLS Traffic Engineering extensions for RSVP - MPLS-encapsulated IP packets on Ethernet - OSPF Extensions for MPLS (including generic opaque LSA support for OSPF) THe following features will be committed at a later date (if I get around to writing them :-) - Label Distribution Protocol (LDP) - IS-IS Extensions for MPLS git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1707 f5534014-38df-0310-8fa8-9805f1628bb7
2000-02-15Create a header file for every packet-*.c file. Prune the packet.h file.gram1-1/+12
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
2000-01-23In "dissect_eth()", update "pi.len" and "pi.captured_len" regardless ofguy1-6/+6
whether we're building a protocol tree or not. Make "dissect_eth()" use "BYTES_ARE_IN_FRAME()" to see if we have a full Ethernet header - it can be called with a non-zero offset, if Ethernet frames are encapsulated inside other frames (e.g., ATM LANE). Make capture routines take an "offset" argument if the corresponding dissect routine takes one (for symmetry, and for Cisco ISL or any other protocol that encapsulates Ethernet or Token-Ring frames inside other frames). Pass the frame lengths to capture routines via the "pi" structure, rather than as an in-line argument, so that they can macros such as "BYTES_ARE_IN_FRAME()" the way the corresponding dissect routines do. Make capture routines update "pi.len" and "pi.captured_len" the same way the corresponding diseect routines do, if the capture routines then call other capture routines. Make "capture_vlan()" count as "other" frames that are too short, the way other capture routines do. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1525 f5534014-38df-0310-8fa8-9805f1628bb7
2000-01-22Fix files that had Gilbert's old e-mail address or that didn't have myguy1-2/+2
forwarding e-mail address. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1522 f5534014-38df-0310-8fa8-9805f1628bb7
2000-01-20Joerg Mayer's updates to the VINES dissector and to protocol layersguy1-1/+4
above VINES. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1514 f5534014-38df-0310-8fa8-9805f1628bb7
2000-01-130x2000, for CDP, doesn't appear to be an Ethernet type - it's notguy1-5/+1
registered as a type for CDP, and CDP packets appear to be LLC packets with an OUI of 00-00-0C, not the encapsulated Ethernet OUI of 00-00-00. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1465 f5534014-38df-0310-8fa8-9805f1628bb7
2000-01-13X.25-over-Ethernet, as I'm inferring it works (i.e., the payload of theguy1-1/+5
packet is just an X.25 packet). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1460 f5534014-38df-0310-8fa8-9805f1628bb7
1999-12-05vlan updates for etype<maxlen and capture countersnneul1-1/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1219 f5534014-38df-0310-8fa8-9805f1628bb7
1999-12-05As per Nathan Leulinger's suggestion, have a stub SNMP dissector ifguy1-3/+1
there are no SNMP libraries to use in a real dissector; this means that other dissectors don't have to care if there are SNMP libraries, they can just call "dissect_snmp()" - and this also simplifies "Makefile.am" and "configure.in" a bit, as they just treat "packet-snmp.c" and "packet-snmp.h" the same way they treat other dissector source files. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1214 f5534014-38df-0310-8fa8-9805f1628bb7
1999-11-30Add IPX to packet stats during capture.gram1-1/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1173 f5534014-38df-0310-8fa8-9805f1628bb7
1999-11-26Support for RFC 1089, SNMP over Ethernet. (I just had togram1-1/+6
add a call to dissect_snmp() for ethertype 0x814c). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1111 f5534014-38df-0310-8fa8-9805f1628bb7
1999-10-20Nathan Neulinger's 802.1q VLAN patch.guy1-1/+5
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@897 f5534014-38df-0310-8fa8-9805f1628bb7
1999-07-07Created a new protocol tree implementation and a new display filtergram1-19/+12
mechanism that is built into ethereal. Wiretap is now used to read all file formats. Libpcap is used only for capturing. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@342 f5534014-38df-0310-8fa8-9805f1628bb7
1999-06-22Added Aaron Hillegass' summary dialogue. We're ignoring the problem withgram1-1/+5
NetMon statistic packets for now. We might fix that problem with wiretap, either filtering out those packets, and/or providing the summary information through a new wiretap API. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@326 f5534014-38df-0310-8fa8-9805f1628bb7
1999-06-11Added PPPoE, PPTP, GRE, and ISAKMP dissectors.gram1-1/+9
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@303 f5534014-38df-0310-8fa8-9805f1628bb7
1999-03-23Removed all references to gtk objects from packet*.[ch] files. They nowgram1-8/+4
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). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@223 f5534014-38df-0310-8fa8-9805f1628bb7
1999-02-09When doing a capture, decode enough of the incoming packets to correctlyguy1-2/+16
update the packet counts and percentages in the dialog box popped up during a capture, even for non-Ethernet captures. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@184 f5534014-38df-0310-8fa8-9805f1628bb7
1998-12-19Added "Cisco Discovery Protocol" Hookshannes1-1/+10
Added Ethernet Loopback Protocol Type to ethertype.c git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@129 f5534014-38df-0310-8fa8-9805f1628bb7
1998-11-17* Added column formatting functionality.gerald1-2/+2
* Added check_col(), add_col_str() and add_col_fmt() to replace references to ft->win_info. * Added column prefs handling code. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@97 f5534014-38df-0310-8fa8-9805f1628bb7
1998-11-12A lengthy patch to add the wiretap library. Wiretap is not used by defaultgram1-3/+1
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@82 f5534014-38df-0310-8fa8-9805f1628bb7
1998-11-03 Add a routine to convert Ethernet packet types to strings.guy1-38/+23
Use that routine in "ethertype()". Have "dissect_arp()" handle hardware addresses that aren't 6-byte Ethernet addresses and protocol addresses that aren't 4-byte IPv4 addresses - currently, it just prints the first 16 hex digits, but it could be made to handle other types specially just as it handles 6-byte Ethernet and 4-byte IPv4 addresses. Have it decode a more complete set of hardware address types. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@78 f5534014-38df-0310-8fa8-9805f1628bb7
1998-10-16Get rid of unused "etype_str[]" array in "ethertype()".guy1-3/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@64 f5534014-38df-0310-8fa8-9805f1628bb7
1998-10-16* Copied in the correct GNU license (I'm such a goober)gerald1-3/+3
* Hacks to the filter interface (Gerald) * About box (Laurent) * AppleTalk support (Simon) * Mods to the match_strval routine (Gerald) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@61 f5534014-38df-0310-8fa8-9805f1628bb7
1998-10-10* OSPF alignment fixes (Gerald)gerald1-1/+5
* FDDI support (Laurent, Guy) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36 f5534014-38df-0310-8fa8-9805f1628bb7
1998-09-27Merged in a _huge_ patch from Guy Harris. It adds a time stap column,gerald1-5/+5
generalizes the column printing code, adds a "frame" tree item to the tree view, and fixes a bunch of miscellaneous coding bugs. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31 f5534014-38df-0310-8fa8-9805f1628bb7
1998-09-17* Added Don Lafontaine's support for Banyan Vines.gerald1-1/+8
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9 f5534014-38df-0310-8fa8-9805f1628bb7
1998-09-16Added ID tags to the beginning of each source file.gerald1-0/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7 f5534014-38df-0310-8fa8-9805f1628bb7
1998-09-16Initial revisiongerald1-0/+107
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2 f5534014-38df-0310-8fa8-9805f1628bb7