diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-10-12 06:21:15 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-10-12 06:21:15 +0000 |
commit | bacb9d5bae5e1aa9d9144463cd24d8c5adb9398e (patch) | |
tree | 13a576cc1a346d2364a1b13bf493b2efc42a856f /packet-fddi.c | |
parent | 10c4bab8e129dc0012e8e341fb74fc725e66fee8 (diff) | |
download | wireshark-bacb9d5bae5e1aa9d9144463cd24d8c5adb9398e.tar.gz wireshark-bacb9d5bae5e1aa9d9144463cd24d8c5adb9398e.tar.bz2 wireshark-bacb9d5bae5e1aa9d9144463cd24d8c5adb9398e.zip |
New proto_tree header_field_info stuff. Header_field_infos now contain
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
Diffstat (limited to 'packet-fddi.c')
-rw-r--r-- | packet-fddi.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/packet-fddi.c b/packet-fddi.c index c14e2d6dde..5c9fb308e5 100644 --- a/packet-fddi.c +++ b/packet-fddi.c @@ -3,7 +3,7 @@ * * Laurent Deniel <deniel@worldnet.fr> * - * $Id: packet-fddi.c,v 1.21 1999/09/10 04:53:14 guy Exp $ + * $Id: packet-fddi.c,v 1.22 1999/10/12 06:20:05 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -348,13 +348,16 @@ proto_register_fddi(void) * NULL, just show the hex value, else show the string. */ { &hf_fddi_fc, - { "Frame Control", "fddi.fc", FT_UINT8, NULL }}, + { "Frame Control", "fddi.fc", FT_UINT8, BASE_HEX, NULL, 0x0, + "" }}, { &hf_fddi_dst, - { "Destination", "fddi.dst", FT_ETHER, NULL }}, + { "Destination", "fddi.dst", FT_ETHER, BASE_NONE, NULL, 0x0, + "Destination Hardware Address" }}, { &hf_fddi_src, - { "Source", "fddi.src", FT_ETHER, NULL }}, + { "Source", "fddi.src", FT_ETHER, BASE_NONE, NULL, 0x0, + "" }}, }; proto_fddi = proto_register_protocol ("Fiber Distributed Data Interface", "fddi" ); |