summaryrefslogtreecommitdiff
path: root/doc/README.tvbuff
AgeCommit message (Collapse)AuthorFilesLines
2000-06-15Convert IPX-and-friend dissectors in packet-ipx.c to useGilbert Ramirez1-6/+10
tvbuffs. In doing so, I realied that my recommendation for using tvb_new_subset(pi.compat_top_tvb, -1, -1) was incorrect, because some dissectors (ethernet!) change pi.len and pi.cap_len. So, I have to take those two variables into account instead of using -1 and -1. So, I provide a macro called tvb_create_from_top(offset), where offset is the name of your offset variable. It is a wrapper around tvb_new_subset(). I converted the lines that followed my suggestion to use tvb_create_from_top(). In proto.c I added proto_tree_add_debug_text(proto_tree*, const char*, ...) It's much like proto_tree_add_text(), except that it takes no offset or length; it's soley for temporarily putting debug text into the proto_tree while debugging a dissector. In making sure that its use is temporary, the funciton also prints the debug string to stdout to remind the programmer that the debug code needs to be removed before shipping the code. svn path=/trunk/; revision=2068
2000-06-08Document how to create a tvbuff inside a dissector-table-called dissector,Gilbert Ramirez1-77/+113
using packet-cops.c as an example. svn path=/trunk/; revision=2046
2000-05-17Updates to doco.Gilbert Ramirez1-8/+56
svn path=/trunk/; revision=1971
2000-05-15Add very basic tvbuff documentation. I still need to explain TVBUFF_COMPOSITE's,Gilbert Ramirez1-0/+132
and explain how to use exceptions.h. svn path=/trunk/; revision=1963