diff options
author | Guy Harris <guy@alum.mit.edu> | 1999-07-30 05:42:25 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 1999-07-30 05:42:25 +0000 |
commit | e75e9ea3b5bfdfc2438b937dfa6c21a750dbed20 (patch) | |
tree | db5875f7f22f0b4dd3703c23049305ba1c3c77f4 /packet-arp.c | |
parent | f5733e9aee3676d244ec3e8408016e6bcc327dd7 (diff) |
The protocol tree field created for a protocol itself is of type
FT_NONE, so the first argument in the variable-length portion of the
argument list to the "proto_tree_add_item()" or
"proto_tree_add_item_format()" call to add the top-level protocol tree
item for a protocol has to be a null pointer.
svn path=/trunk/; revision=405
Diffstat (limited to 'packet-arp.c')
-rw-r--r-- | packet-arp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packet-arp.c b/packet-arp.c index 4ae66b30ca..f510db9a8f 100644 --- a/packet-arp.c +++ b/packet-arp.c @@ -1,7 +1,7 @@ /* packet-arp.c * Routines for ARP packet disassembly * - * $Id: packet-arp.c,v 1.15 1999/07/29 05:46:52 gram Exp $ + * $Id: packet-arp.c,v 1.16 1999/07/30 05:42:25 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -218,11 +218,11 @@ dissect_arp(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) { if (tree) { if ((op_str = match_strval(ar_op, op_vals))) - ti = proto_tree_add_item_format(tree, proto_arp, offset, 8 + 2*ar_hln + 2*ar_pln, - op_str); + ti = proto_tree_add_item_format(tree, proto_arp, offset, + 8 + 2*ar_hln + 2*ar_pln, NULL, op_str); else - ti = proto_tree_add_item_format(tree, proto_arp, offset, 8 + 2*ar_hln + 2*ar_pln, - "Unknown ARP (opcode 0x%04x)", ar_op); + ti = proto_tree_add_item_format(tree, proto_arp, offset, + 8 + 2*ar_hln + 2*ar_pln, NULL, "Unknown ARP (opcode 0x%04x)", ar_op); arp_tree = proto_item_add_subtree(ti, ETT_ARP); proto_tree_add_text(arp_tree, offset + AR_HRD, 2, "Hardware type: %s", arphrdtype_to_str(ar_hrd, "Unknown (0x%04x)")); |