summaryrefslogtreecommitdiff
path: root/packet-isis-hello.c
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>2000-05-11 08:18:09 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>2000-05-11 08:18:09 +0000
commit292e38e2c61edcd14bfa30ca3c72bacda1bcbe32 (patch)
treedb4edef02456a48d0f6d505166ac7d70f6c0f644 /packet-isis-hello.c
parent162800efb308901e0c302517be01226130e39b19 (diff)
downloadwireshark-292e38e2c61edcd14bfa30ca3c72bacda1bcbe32.tar.gz
Add tvbuff class.
Add exceptions routines. Convert proto_tree_add_*() routines to require tvbuff_t* argument. Convert all dissectors to pass NULL argument ("NullTVB" macro == NULL) as the tvbuff_t* argument to proto_tree_add_*() routines. dissect_packet() creates a tvbuff_t, wraps the next dissect call in a TRY block, will print "Short Frame" on the proto_tree if a BoundsError exception is caught. The FDDI dissector is converted to use tvbuff's. svn path=/trunk/; revision=1939
Diffstat (limited to 'packet-isis-hello.c')
-rw-r--r--packet-isis-hello.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/packet-isis-hello.c b/packet-isis-hello.c
index 3c53125469..519e0e48b3 100644
--- a/packet-isis-hello.c
+++ b/packet-isis-hello.c
@@ -1,7 +1,7 @@
/* packet-isis-hello.c
* Routines for decoding isis hello packets and their CLVs
*
- * $Id: packet-isis-hello.c,v 1.6 2000/04/15 22:11:09 guy Exp $
+ * $Id: packet-isis-hello.c,v 1.7 2000/05/11 08:15:16 gram Exp $
* Stuart Stanley <stuarts@mxmail.net>
*
* Ethereal - Network traffic analyzer
@@ -360,7 +360,7 @@ dissect_hello_is_neighbors_clv(const u_char *pd, int offset,
* format string.
*/
if ( tree ) {
- proto_tree_add_text ( tree, offset, 6,
+ proto_tree_add_text ( tree, NullTVB, offset, 6,
"IS Neighbor: %s", print_system_id( pd + offset, 6 ) );
}
offset += 6;
@@ -436,12 +436,12 @@ isis_dissect_isis_hello(int hello_type, int header_length,
ihp = (isis_hello_t *) &pd[offset];
if (tree) {
- ti = proto_tree_add_item(tree, proto_isis_hello,
+ ti = proto_tree_add_item(tree, proto_isis_hello, NullTVB,
offset, END_OF_FRAME, NULL);
hello_tree = proto_item_add_subtree(ti, ett_isis_hello);
proto_tree_add_uint_format(hello_tree,
hf_isis_hello_circuit_reserved,
- offset, 1, ihp->isis_hello_circuit_reserved,
+ NullTVB, offset, 1, ihp->isis_hello_circuit_reserved,
"Circuit type : %s, reserved(0x%02x == 0)",
val_to_str(ihp->isis_hello_circuit,
isis_hello_circuit_type_vals,
@@ -449,23 +449,23 @@ isis_dissect_isis_hello(int hello_type, int header_length,
ihp->isis_hello_creserved
);
- proto_tree_add_string_format(hello_tree, hf_isis_hello_lan_id,
+ proto_tree_add_string_format(hello_tree, hf_isis_hello_lan_id, NullTVB,
offset + 1, 6, ihp->isis_hello_source_id,
"SystemID{ Sender of PDU } : %s",
print_system_id( pd + offset + 1, 6 ) );
- proto_tree_add_item(hello_tree, hf_isis_hello_holding_timer,
+ proto_tree_add_item(hello_tree, hf_isis_hello_holding_timer, NullTVB,
offset + 7, 2,pntohs(&ihp->isis_hello_holding_timer[0]));
- proto_tree_add_item(hello_tree, hf_isis_hello_pdu_length,
+ proto_tree_add_item(hello_tree, hf_isis_hello_pdu_length, NullTVB,
offset + 9, 2,pntohs(&ihp->isis_hello_pdu_length[0]));
- proto_tree_add_uint_format(hello_tree, hf_isis_hello_priority_reserved,
+ proto_tree_add_uint_format(hello_tree, hf_isis_hello_priority_reserved, NullTVB,
offset + 11, 1, ihp->isis_hello_priority_reserved,
"Priority : %d, reserved(0x%02x == 0)",
ihp->isis_hello_priority, ihp->isis_hello_preserved );
if (hello_type == ISIS_TYPE_PTP_HELLO) {
- proto_tree_add_item(hello_tree, hf_isis_hello_local_circuit_id,
+ proto_tree_add_item(hello_tree, hf_isis_hello_local_circuit_id, NullTVB,
offset + 12, 1, ihp->isis_hello_lan_id[0] );
} else {
- proto_tree_add_string_format(hello_tree, hf_isis_hello_lan_id,
+ proto_tree_add_string_format(hello_tree, hf_isis_hello_lan_id, NullTVB,
offset + 12, 7, ihp->isis_hello_lan_id,
"SystemID{ Designated IS } : %s",
print_system_id( pd + offset + 12, 7 ) );