diff options
author | Laurent Deniel <laurent.deniel@free.fr> | 1999-10-16 08:27:25 +0000 |
---|---|---|
committer | Laurent Deniel <laurent.deniel@free.fr> | 1999-10-16 08:27:25 +0000 |
commit | 969a2d2c74754c6a876d5e0ffdfbd0c0da30a263 (patch) | |
tree | 33f4348aa717ff5f290a55e49eb4825245fe2582 /packet-aarp.c | |
parent | e77e86c5430765517f4b398f9438546518f241a9 (diff) | |
download | wireshark-969a2d2c74754c6a876d5e0ffdfbd0c0da30a263.tar.gz wireshark-969a2d2c74754c6a876d5e0ffdfbd0c0da30a263.tar.bz2 wireshark-969a2d2c74754c6a876d5e0ffdfbd0c0da30a263.zip |
Replace proto_tree_add_item_format by proto_tree_add_item.
svn path=/trunk/; revision=850
Diffstat (limited to 'packet-aarp.c')
-rw-r--r-- | packet-aarp.c | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/packet-aarp.c b/packet-aarp.c index 5db0fa46cd..1c9db7e016 100644 --- a/packet-aarp.c +++ b/packet-aarp.c @@ -1,7 +1,7 @@ /* packet-aarp.c * Routines for Appletalk ARP packet disassembly * - * $Id: packet-aarp.c,v 1.11 1999/10/12 06:20:00 gram Exp $ + * $Id: packet-aarp.c,v 1.12 1999/10/16 08:27:25 deniel Exp $ * * Simon Wilkinson <sxw@dcs.ed.ac.uk> * @@ -119,22 +119,13 @@ dissect_aarp(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) { ti = proto_tree_add_item_format(tree, proto_aarp, offset, 28, NULL, "Unknown AARP (opcode 0x%04x)", ea.op); aarp_tree = proto_item_add_subtree(ti, ETT_AARP); - proto_tree_add_item_format(aarp_tree, hf_aarp_hard_type, offset, 2, - ea.htype, - "Hardware type: 0x%04x", - ea.htype); - proto_tree_add_item_format(aarp_tree, hf_aarp_proto_type, offset + 2, 2, - ea.ptype, - "Protocol type: 0x%04x", - ea.ptype); - proto_tree_add_item_format(aarp_tree, hf_aarp_hard_size, offset + 4, 1, - ea.halen, - "Hardware size: 0x%02x", - ea.halen); - proto_tree_add_item_format(aarp_tree, hf_aarp_proto_size, offset + 5, 1, - ea.palen, - "Protocol size: 0x%02x", - ea.palen); + proto_tree_add_item(aarp_tree, hf_aarp_hard_type, offset, 2, ea.htype); + proto_tree_add_item(aarp_tree, hf_aarp_proto_type, offset + 2, 2, + ea.ptype); + proto_tree_add_item(aarp_tree, hf_aarp_hard_size, offset + 4, 1, + ea.halen); + proto_tree_add_item(aarp_tree, hf_aarp_proto_size, offset + 5, 1, + ea.palen); proto_tree_add_item_format(aarp_tree, hf_aarp_opcode, offset + 6, 2, ea.op, "Opcode: 0x%04x (%s)", @@ -183,39 +174,48 @@ proto_register_aarp(void) { static hf_register_info hf[] = { { &hf_aarp_hard_type, - { "Hardware type", "aarp.hard.type", FT_UINT16, BASE_HEX, NULL, 0x0, + { "Hardware type", "aarp.hard.type", + FT_UINT16, BASE_HEX, NULL, 0x0, "" }}, { &hf_aarp_proto_type, - { "Protocol type", "aarp.proto.type", FT_UINT16, BASE_HEX, NULL, 0x0, + { "Protocol type", "aarp.proto.type", + FT_UINT16, BASE_HEX, NULL, 0x0, "" }}, { &hf_aarp_hard_size, - { "Hardware size", "aarp.hard.size", FT_UINT8, BASE_DEC, NULL, 0x0, + { "Hardware size", "aarp.hard.size", + FT_UINT8, BASE_DEC, NULL, 0x0, "" }}, { &hf_aarp_proto_size, - { "Protocol size", "aarp.proto.size", FT_UINT8, BASE_DEC, NULL, 0x0, + { "Protocol size", "aarp.proto.size", + FT_UINT8, BASE_DEC, NULL, 0x0, "" }}, { &hf_aarp_opcode, - { "Opcode", "aarp.opcode", FT_UINT16, BASE_DEC, NULL, 0x0, + { "Opcode", "aarp.opcode", + FT_UINT16, BASE_DEC, NULL, 0x0, "" }}, { &hf_aarp_src_ether, - { "Sender ether", "aarp.src.ether", FT_ETHER, BASE_NONE, NULL, 0x0, + { "Sender ether", "aarp.src.ether", + FT_ETHER, BASE_NONE, NULL, 0x0, "" }}, { &hf_aarp_src_id, - { "Sender ID", "aarp.src.id", FT_UINT32, BASE_HEX, NULL, 0x0, + { "Sender ID", "aarp.src.id", + FT_UINT32, BASE_HEX, NULL, 0x0, "" }}, { &hf_aarp_dst_ether, - { "Target ether", "aarp.dst.ether", FT_ETHER, BASE_NONE, NULL, 0x0, + { "Target ether", "aarp.dst.ether", + FT_ETHER, BASE_NONE, NULL, 0x0, "" }}, { &hf_aarp_dst_id, - { "Target ID", "aarp.dst.id", FT_UINT32, BASE_HEX, NULL, 0x0, + { "Target ID", "aarp.dst.id", + FT_UINT32, BASE_HEX, NULL, 0x0, "" }}, }; |