New proto_tree header_field_info stuff. Header_field_infos now contain
authorgram <gram@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 12 Oct 1999 06:21:15 +0000 (06:21 +0000)
committergram <gram@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 12 Oct 1999 06:21:15 +0000 (06:21 +0000)
commit64eb24f8447475802bbefa085ad07467bb570898
tree13a576cc1a346d2364a1b13bf493b2efc42a856f
parent895c3bcb3e3e2fff087233630eadccb1cb9a7c95
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
39 files changed:
Makefile.am
dfilter-grammar.y
dfilter-scanner.l
doc/dfilter2pod.in
doc/proto_tree
packet-aarp.c
packet-arp.c
packet-ascend.c
packet-atalk.c
packet-bootp.c
packet-bpdu.c
packet-cdp.c
packet-eth.c
packet-fddi.c
packet-ftp.c
packet-giop.c
packet-icmpv6.c
packet-icp.c
packet-ip.c
packet-ipsec.c
packet-ipv6.c
packet-ipx.c
packet-lapb.c
packet-llc.c
packet-null.c
packet-osi.c
packet-ppp.c
packet-radius.c
packet-rsvp.c
packet-sna.c [new file with mode: 0644]
packet-tcp.c
packet-tr.c
packet-trmac.c
packet-udp.c
packet-x25.c
packet.c
packet.h
proto.c
proto.h