diff options
author | morriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-01-14 03:44:58 +0000 |
---|---|---|
committer | morriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-01-14 03:44:58 +0000 |
commit | 5fdb4a0aa7a4a0351d9c366a2c4a71d8f28861d5 (patch) | |
tree | 083d5704c0b3ba29be7a9fb4093e5116ca8f826c /epan/dissectors/packet-msdp.c | |
parent | 1578a8614f3fc91f4e3e7658f0dea098db780856 (diff) |
Replace ip_to_str((tvb_get_ptr(...)) with tvb_ip_to_str().
Replace ip6_to_str((tvb_get_ptr(...)) with tvb_ip6_to_str().
There's no need to pass the result of tvb_get_ptr() as the 'value' in
proto_tree_add_*(): just use proto_tree_add_item().
Replace some tvb_get_ptr()s with tvb_get_ephemeral_string()s.
Replace some memcpy()+tvb_get_ptr() with tvb_memcpy().
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35529 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-msdp.c')
-rw-r--r-- | epan/dissectors/packet-msdp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-msdp.c b/epan/dissectors/packet-msdp.c index c8cb57b87d..1a08423e4b 100644 --- a/epan/dissectors/packet-msdp.c +++ b/epan/dissectors/packet-msdp.c @@ -271,9 +271,9 @@ static void dissect_msdp_sa(tvbuff_t *tvb, packet_info *pinfo, return; } ei = proto_tree_add_text(tree, tvb, *offset, 12, "(S,G) block: %s/%u -> %s", - ip_to_str(tvb_get_ptr(tvb, *offset + 8, 4)), + tvb_ip_to_str(tvb, *offset + 8), tvb_get_guint8(tvb, *offset + 3), - ip_to_str(tvb_get_ptr(tvb, *offset + 4, 4))); + tvb_ip_to_str(tvb, *offset + 4)); entry_tree = proto_item_add_subtree(ei, ett_msdp_sa_entry); proto_tree_add_item(entry_tree, hf_msdp_sa_reserved, tvb, *offset, 3, FALSE); |