aboutsummaryrefslogtreecommitdiffstats
path: root/packet-atalk.c
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>1999-10-12 06:21:15 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>1999-10-12 06:21:15 +0000
commitbacb9d5bae5e1aa9d9144463cd24d8c5adb9398e (patch)
tree13a576cc1a346d2364a1b13bf493b2efc42a856f /packet-atalk.c
parent10c4bab8e129dc0012e8e341fb74fc725e66fee8 (diff)
downloadwireshark-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-atalk.c')
-rw-r--r--packet-atalk.c41
1 files changed, 30 insertions, 11 deletions
diff --git a/packet-atalk.c b/packet-atalk.c
index c8b83c8f72..28802df5bf 100644
--- a/packet-atalk.c
+++ b/packet-atalk.c
@@ -1,7 +1,7 @@
/* packet-ddp.c
* Routines for DDP packet disassembly.
*
- * $Id: packet-atalk.c,v 1.14 1999/10/07 17:11:11 deniel Exp $
+ * $Id: packet-atalk.c,v 1.15 1999/10/12 06:20:02 gram Exp $
*
* Simon Wilkinson <sxw@dcs.ed.ac.uk>
*
@@ -135,25 +135,44 @@ proto_register_atalk(void)
{
static hf_register_info hf[] = {
{ &hf_ddp_hopcount,
- { "Hop count", "ddp.hopcount", FT_UINT8, NULL }},
+ { "Hop count", "ddp.hopcount", FT_UINT8, BASE_DEC, NULL, 0x0,
+ "" }},
+
{ &hf_ddp_len,
- { "Datagram length", "ddp.len", FT_UINT16, NULL }},
+ { "Datagram length", "ddp.len", FT_UINT16, BASE_DEC, NULL, 0x0,
+ "" }},
+
{ &hf_ddp_checksum,
- { "Checksum", "ddp.checksum", FT_UINT16, NULL }},
+ { "Checksum", "ddp.checksum", FT_UINT16, BASE_DEC, NULL, 0x0,
+ "" }},
+
{ &hf_ddp_dst_net,
- { "Destination Net", "ddp.dst.net", FT_UINT16, NULL }},
+ { "Destination Net", "ddp.dst.net", FT_UINT16, BASE_DEC, NULL, 0x0,
+ "" }},
+
{ &hf_ddp_src_net,
- { "Source Net", "ddp.src.net", FT_UINT16, NULL }},
+ { "Source Net", "ddp.src.net", FT_UINT16, BASE_DEC, NULL, 0x0,
+ "" }},
+
{ &hf_ddp_dst_node,
- { "Destination Node", "ddp.dst.node", FT_UINT8, NULL }},
+ { "Destination Node", "ddp.dst.node", FT_UINT8, BASE_DEC, NULL, 0x0,
+ "" }},
+
{ &hf_ddp_src_node,
- { "Source Node", "ddp.src.node", FT_UINT8, NULL }},
+ { "Source Node", "ddp.src.node", FT_UINT8, BASE_DEC, NULL, 0x0,
+ "" }},
+
{ &hf_ddp_dst_socket,
- { "Destination Socket", "ddp.dst.socket", FT_UINT8, NULL }},
+ { "Destination Socket", "ddp.dst.socket", FT_UINT8, BASE_DEC, NULL, 0x0,
+ "" }},
+
{ &hf_ddp_src_socket,
- { "Source Socket", "ddp.src.socket", FT_UINT8, NULL }},
+ { "Source Socket", "ddp.src.socket", FT_UINT8, BASE_DEC, NULL, 0x0,
+ "" }},
+
{ &hf_ddp_type,
- { "Protocol type", "ddp.type", FT_UINT8, NULL }}
+ { "Protocol type", "ddp.type", FT_UINT8, BASE_DEC, NULL, 0x0,
+ "" }},
};
proto_ddp = proto_register_protocol("Datagram Delivery Protocol", "ddp");