summaryrefslogtreecommitdiff
path: root/packet-mount.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-01-22 04:59:55 +0000
committerGuy Harris <guy@alum.mit.edu>2000-01-22 04:59:55 +0000
commit0b41709f86e069cb8b94a9fadec050eb6a0514dd (patch)
tree502a5ad1571c24b090b3258cdac69594997058f2 /packet-mount.c
parent5b5f2271cd73724314f49be784c4b56672722b43 (diff)
downloadwireshark-0b41709f86e069cb8b94a9fadec050eb6a0514dd.tar.gz
Add "proto_item_set_text()", which sets the "representation" field of an
existing protocol tree item. Add "proto_tree_add_notext()"; it's just like "proto_tree_add_text()", but without the text, and it sets the "representation" field to NULL; that field would be set later with "proto_item_set_text()". Those routines let you construct, for example, an interior node of the protocol tree whose text can't be determined until all the nodes under it have been dissected - it's similar to "proto_item_set_len()" in that fashion. Use that when dissecting address TLVs in the CDP dissector - create the item for an address in an "Addresses" TLV with no text, and then fill in the items under it one at a time; if we get cut off before we get to the actual address, set the text to "Truncated address", otherwise set it to a description of the address. Also, set the length of the item for the entire address TLV correctly. svn path=/trunk/; revision=1520
Diffstat (limited to 'packet-mount.c')
0 files changed, 0 insertions, 0 deletions