Commit Graph

16 Commits

Author SHA1 Message Date
Guy Harris ab797734dd Get rid of the private "my_match_strval()" routine in many dissectors;
add a "match_strval_idx()" routine that does the same thing, and have
"match_strval()" call it.

Make those routines, and "val_to_str()", return a "const" pointer. 
Update dissectors as necessary to squelch compiler warnings produced by
that.

Use "val_to_str()" rather than using "match_strval()" and then, if the
result is null, substituting a specific string.  Clean up some other
"match_strval()"/"val_to_str()" usages.

Add a null pointer check in the NDPS dissector's "attribute_value()"
routine, as it's not clear that "global_attribute_name" won't be null at
that point.

Make some global variables in the AFS4INT dissector local.

Make some routines not used outside the module they're in static.

Make some tables "static const".

Clean up white space.

Fix Gerald's address in some files.

svn path=/trunk/; revision=14786
2005-06-26 19:56:52 +00:00
Anders Broman 88bdcd02c3 Add some ethertypes
svn path=/trunk/; revision=14581
2005-06-07 20:57:27 +00:00
Gerald Combs 861dc4e340 More bug fixes from Steve Grubb. See bug 217 for details.
svn path=/trunk/; revision=14496
2005-05-30 20:58:20 +00:00
Guy Harris 282080e26d Add support for what appears to be 3Com's scheme for encapsulating XNS
over Token Ring (and presumably other link layers using 802.2 LLC), and
for the XNS IDP and SPP protocols.

svn path=/trunk/; revision=13577
2005-03-03 08:34:48 +00:00
Ulf Lamping 76c32eb945 added IEEE 802.1 Link Layer Discovery Protocol (LLDP) to the ethertypes, but sorry, no dissector (yet?)
svn path=/trunk/; revision=13460
2005-02-21 20:19:15 +00:00
Ulf Lamping 1c9781b4ec throw the new FieldError exception, if a dissector tries to add a field with invalid parameters
add a message parameter to the show_exception function

svn path=/trunk/; revision=13074
2005-01-16 16:06:15 +00:00
Guy Harris 50708fac46 Add a dissector to handle IEEE 802a's OUI Extended Ethertype; dissectors
can register an OUI, and PIDs for that OUI, in the same fashion that
they can do so for SNAP (after which the 802a OUI Extended Ethertype is
clearly modeled).

svn path=/trunk/; revision=12967
2005-01-06 08:37:43 +00:00
Guy Harris a16a9d2096 Add Ethernet type for DEC Local Area Systems Transport.
svn path=/trunk/; revision=12850
2004-12-29 00:44:45 +00:00
Ronnie Sahlberg 2625d6d3e9 create a proper ETHERTYPE for ATAoverEthernet
svn path=/trunk/; revision=12674
2004-12-07 03:16:34 +00:00
Guy Harris d76db3fb6e Fix a typo.
svn path=/trunk/; revision=12644
2004-12-01 21:05:45 +00:00
Anders Broman 1f92ee7aea Add some ethertypes
svn path=/trunk/; revision=12643
2004-12-01 20:58:22 +00:00
Guy Harris eb0a24bbad Updates from Erwin Rol.
svn path=/trunk/; revision=12584
2004-11-24 02:36:14 +00:00
Guy Harris 7126c58e56 Add support for the Ethernet Configuration Testing Protocol.
svn path=/trunk/; revision=12074
2004-09-23 18:48:11 +00:00
Guy Harris de555a5b7c Add the Ethertype for MAC Control frames, as per Clause 31 and Annexes
31A and 31B in the 2000 and later 802.3 specs.  (Dissecting them is left
as an exercise for the student.)

Clean up whitespace a bit.

svn path=/trunk/; revision=11536
2004-07-27 06:05:20 +00:00
Guy Harris c1b410806e From metatech: at least on Windows XP, if a Centrino 802.11 interface is
in promiscuous mode, packets captured promiscuously show up as 802.11
packets encapsulated in Ethernet, with an Ethernet type of 0x2452.

svn path=/trunk/; revision=11451
2004-07-21 05:44:03 +00:00
Gilbert Ramirez 669db206cb Move dissectors to epan/dissectors directory.
Also move ncp222.py, x11-fields, process-x11-fields.pl,
make-reg-dotc, and make-reg-dotc.py.

Adjust #include lines in files that include packet-*.h
files.

svn path=/trunk/; revision=11410
2004-07-18 18:06:47 +00:00