diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-07-09 00:47:57 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-07-09 00:47:57 +0000 |
commit | ae04f78f19777301733cf0420fc20368a9b7fe5c (patch) | |
tree | c8a5db5cc88a46d823322e2a83b4e83e397ea8b7 /epan/dissectors/packet-lwapp.c | |
parent | 7387fe6b603036ef5e12f55ff239f4c47afb8c15 (diff) |
MAC addresses are arrays of bytes, not strings; make the destination MAC
address an array of guint8 - that squelches some compiler warnings.
Use -1 rather than tvb_length(tvb) to make the item for LWAPP go to the
end of the tvbuff.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14883 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-lwapp.c')
-rw-r--r-- | epan/dissectors/packet-lwapp.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/epan/dissectors/packet-lwapp.c b/epan/dissectors/packet-lwapp.c index 5e7439facb..8d5e55ed40 100644 --- a/epan/dissectors/packet-lwapp.c +++ b/epan/dissectors/packet-lwapp.c @@ -375,7 +375,7 @@ static void dissect_lwapp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *lwapp_tree; proto_tree *flags_tree; tvbuff_t *next_client; - char dest_mac[6]; + guint8 dest_mac[6]; guint8 have_destmac=0; /* Set up structures needed to add the protocol subtree and manage it */ @@ -394,7 +394,7 @@ static void dissect_lwapp(tvbuff_t *tvb, packet_info *pinfo, /* First, set up our dest mac, if we're a control packet with a * dest of port 12223 */ if (pinfo->destport == 12223 ) { - tvb_memcpy(tvb, (guint8*)dest_mac, offset, 6); + tvb_memcpy(tvb, dest_mac, offset, 6); have_destmac = 1; /* Copy our header */ @@ -428,8 +428,7 @@ static void dissect_lwapp(tvbuff_t *tvb, packet_info *pinfo, if (tree) { /* create display subtree for the protocol */ - ti = proto_tree_add_item(tree, proto_lwapp, tvb, offset, - tvb_length(tvb), FALSE); + ti = proto_tree_add_item(tree, proto_lwapp, tvb, offset, -1, FALSE); lwapp_tree = proto_item_add_subtree(ti, ett_lwapp); if (have_destmac) { |