aboutsummaryrefslogtreecommitdiffstats
path: root/packet-vtp.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2000-05-14 07:19:49 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2000-05-14 07:19:49 +0000
commit00bf91d4df848b2eaa43f90045d99bb082ec44af (patch)
treebc73eec3c4d224e25cc9778c5d4d9d77b410ee99 /packet-vtp.c
parent78d9ce0ac1426982b5cbbd50305ffa4471afb881 (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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1957 f5534014-38df-0310-8fa8-9805f1628bb7
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,