aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ppp.c
diff options
context:
space:
mode:
authorgram <gram@f5534014-38df-0310-8fa8-9805f1628bb7>1999-10-12 06:21:15 +0000
committergram <gram@f5534014-38df-0310-8fa8-9805f1628bb7>1999-10-12 06:21:15 +0000
commit64eb24f8447475802bbefa085ad07467bb570898 (patch)
tree13a576cc1a346d2364a1b13bf493b2efc42a856f /packet-ppp.c
parent895c3bcb3e3e2fff087233630eadccb1cb9a7c95 (diff)
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@815 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-ppp.c')
-rw-r--r--packet-ppp.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/packet-ppp.c b/packet-ppp.c
index 9a9056be69..c1bc51c305 100644
--- a/packet-ppp.c
+++ b/packet-ppp.c
@@ -1,7 +1,7 @@
/* packet-ppp.c
* Routines for ppp packet disassembly
*
- * $Id: packet-ppp.c,v 1.20 1999/09/11 22:40:30 gerald Exp $
+ * $Id: packet-ppp.c,v 1.21 1999/10/12 06:20:14 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -1151,13 +1151,16 @@ proto_register_mp(void)
{
static hf_register_info hf[] = {
{ &hf_mp_frag_first,
- { "First fragment", "mp.first", FT_BOOLEAN, NULL }},
+ { "First fragment", "mp.first", FT_BOOLEAN, BASE_NONE, NULL, 0x0,
+ "" }},
{ &hf_mp_frag_last,
- { "Last fragment", "mp.last", FT_BOOLEAN, NULL }},
+ { "Last fragment", "mp.last", FT_BOOLEAN, BASE_NONE, NULL, 0x0,
+ "" }},
{ &hf_mp_sequence_num,
- { "Sequence number", "mp.seq", FT_UINT32, NULL }}
+ { "Sequence number", "mp.seq", FT_UINT32, BASE_DEC, NULL, 0x0,
+ "" }}
};
proto_mp = proto_register_protocol("PPP Multilink Protocol", "mp");