aboutsummaryrefslogtreecommitdiffstats
path: root/packet-vtp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-05-14 07:19:49 +0000
committerGuy Harris <guy@alum.mit.edu>2000-05-14 07:19:49 +0000
commit3820e1fd77158ef1081b78bc9ff3ea6189d1926a (patch)
treebc73eec3c4d224e25cc9778c5d4d9d77b410ee99 /packet-vtp.c
parente9cc5fa70c5dc4271c9ab30791de808a6d963ca8 (diff)
The argument to a "proto_tree_add_item()" adding an FT_IPv4 item should
be the 32-bit IP address (in host byte order), not a pointer to the first octet of that IP address. svn path=/trunk/; revision=1957
Diffstat (limited to 'packet-vtp.c')
-rw-r--r--packet-vtp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/packet-vtp.c b/packet-vtp.c
index 9b7751a883..e093a0292b 100644
--- a/packet-vtp.c
+++ b/packet-vtp.c
@@ -1,7 +1,7 @@
/* packet-vtp.c
* Routines for the disassembly of Cisco's Virtual Trunking Protocol
*
- * $Id: packet-vtp.c,v 1.3 2000/05/11 08:15:55 gram Exp $
+ * $Id: packet-vtp.c,v 1.4 2000/05/14 07:19:49 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -99,6 +99,7 @@ dissect_vtp(const u_char *pd, int offset, frame_data *fd, proto_tree *tree)
guint8 code;
guint8 md_len;
int vlan_info_len;
+ guint32 upd_id;
if (check_col(fd, COL_PROTOCOL))
col_add_str(fd, COL_PROTOCOL, "VTP");
@@ -140,8 +141,9 @@ dissect_vtp(const u_char *pd, int offset, frame_data *fd, proto_tree *tree)
offset, 4, pntohl(&pd[offset]));
offset += 4;
+ memcpy(&upd_id, &pd[offset], sizeof upd_id);
proto_tree_add_item(vtp_tree, hf_vtp_upd_id, NullTVB,
- offset, 4, &pd[offset]);
+ offset, 4, upd_id);
offset += 4;
proto_tree_add_string_format(vtp_tree, hf_vtp_upd_ts, NullTVB,