aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-bgp.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-10-21 12:04:16 -0700
committerMichael Mann <mmann78@netscape.net>2015-10-22 11:45:56 +0000
commit86fe2be4dc2f5f5ff09e0d6c00277d7a9bf09ffd (patch)
tree4aca52419f6ee7dc9a58ca8e4cd79fbeaa8d3387 /epan/dissectors/packet-bgp.c
parent9eda98dec91931588a003a6f707c4e2097369ba1 (diff)
Use address functions instead of ADDRESS macros in asn1 and epan
Replace CMP_ADDRESS, COPY_ADDRESS, et al with their lower-case equivalents in the asn1 and epan directories. Change-Id: I4043b0931d4353d60cffbd829e30269eb8d08cf4 Reviewed-on: https://code.wireshark.org/review/11200 Petri-Dish: Michal Labedzki <michal.labedzki@tieto.com> Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-bgp.c')
-rw-r--r--epan/dissectors/packet-bgp.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/epan/dissectors/packet-bgp.c b/epan/dissectors/packet-bgp.c
index 140496fff8..99a4e3c897 100644
--- a/epan/dissectors/packet-bgp.c
+++ b/epan/dissectors/packet-bgp.c
@@ -1779,7 +1779,7 @@ decode_path_prefix4(proto_tree *tree, packet_info *pinfo, int hf_path_id, int hf
return -1;
}
/* put prefix into protocol tree */
- SET_ADDRESS(&addr, AT_IPv4, 4, ip_addr.addr_bytes);
+ set_address(&addr, AT_IPv4, 4, ip_addr.addr_bytes);
prefix_tree = proto_tree_add_subtree_format(tree, tvb, offset, 4 + 1 + length,
ett_bgp_prefix, NULL, "%s/%u PathId %u ",
address_to_str(wmem_packet_scope(), &addr), plen, path_identifier);
@@ -1815,7 +1815,7 @@ decode_prefix4(proto_tree *tree, packet_info *pinfo, proto_item *parent_item, in
}
/* put prefix into protocol tree */
- SET_ADDRESS(&addr, AT_IPv4, 4, ip_addr.addr_bytes);
+ set_address(&addr, AT_IPv4, 4, ip_addr.addr_bytes);
prefix_tree = proto_tree_add_subtree_format(tree, tvb, offset,
tlen != 0 ? tlen : 1 + length, ett_bgp_prefix, NULL,
"%s/%u", address_to_str(wmem_packet_scope(), &addr), plen);
@@ -1853,7 +1853,7 @@ decode_prefix6(proto_tree *tree, packet_info *pinfo, int hf_addr, tvbuff_t *tvb,
}
/* put prefix into protocol tree */
- SET_ADDRESS(&addr_str, AT_IPv6, 16, addr.bytes);
+ set_address(&addr_str, AT_IPv6, 16, addr.bytes);
prefix_tree = proto_tree_add_subtree_format(tree, tvb, offset,
tlen != 0 ? tlen : 1 + length, ett_bgp_prefix, NULL, "%s/%u",
address_to_str(wmem_packet_scope(), &addr_str), plen);
@@ -1890,7 +1890,7 @@ decode_fspec_match_prefix6(proto_tree *tree, proto_item *parent_item, int hf_add
}
/* put prefix into protocol tree */
- SET_ADDRESS(&addr_str, AT_IPv6, 16, addr.bytes);
+ set_address(&addr_str, AT_IPv6, 16, addr.bytes);
prefix_tree = proto_tree_add_subtree_format(tree, tvb, offset,
tlen != 0 ? tlen : 1 + length, ett_bgp_prefix, NULL, "%s/%u",
address_to_str(wmem_packet_scope(), &addr_str), plen);
@@ -4041,7 +4041,7 @@ decode_prefix_MP(proto_tree *tree, int hf_addr4, int hf_addr6,
return -1;
}
- SET_ADDRESS(&addr, AT_IPv4, 4, ip4addr.addr_bytes);
+ set_address(&addr, AT_IPv4, 4, ip4addr.addr_bytes);
prefix_tree = proto_tree_add_subtree_format(tree, tvb, start_offset,
(offset + length) - start_offset,
ett_bgp_prefix, NULL,
@@ -4147,7 +4147,7 @@ decode_prefix_MP(proto_tree *tree, int hf_addr4, int hf_addr6,
tag, plen + 16);
return -1;
}
- SET_ADDRESS(&addr, AT_IPv4, 4, ip4addr.addr_bytes);
+ set_address(&addr, AT_IPv4, 4, ip4addr.addr_bytes);
prefix_tree = proto_tree_add_subtree_format(tree, tvb, start_offset,
(offset + length) - start_offset,
ett_bgp_prefix, NULL,
@@ -4194,7 +4194,7 @@ decode_prefix_MP(proto_tree *tree, int hf_addr4, int hf_addr6,
tag, plen + (labnum * 3*8) + 8*8);
return -1;
}
- SET_ADDRESS(&addr, AT_IPv4, 4, ip4addr.addr_bytes);
+ set_address(&addr, AT_IPv4, 4, ip4addr.addr_bytes);
prefix_tree = proto_tree_add_subtree_format(tree, tvb, start_offset,
(offset + 8 + length) - start_offset,
ett_bgp_prefix, NULL, "BGP Prefix");
@@ -4255,7 +4255,7 @@ decode_prefix_MP(proto_tree *tree, int hf_addr4, int hf_addr6,
}
/* XXX - break off IPv6 into its own field */
- SET_ADDRESS(&addr, AT_IPv6, 16, ip6addr.bytes);
+ set_address(&addr, AT_IPv6, 16, ip6addr.bytes);
proto_tree_add_string_format(tree, hf_bgp_label_stack, tvb, start_offset,
(offset + length) - start_offset,
wmem_strbuf_get_str(stack_strbuf), "Label Stack=%s, IPv6=%s/%u",
@@ -4295,7 +4295,7 @@ decode_prefix_MP(proto_tree *tree, int hf_addr4, int hf_addr6,
tag, plen + 16);
return -1;
}
- SET_ADDRESS(&addr, AT_IPv6, 16, ip6addr.bytes);
+ set_address(&addr, AT_IPv6, 16, ip6addr.bytes);
prefix_tree = proto_tree_add_subtree_format(tree, tvb, start_offset,
(offset + length) - start_offset,
ett_bgp_prefix, NULL,
@@ -4346,7 +4346,7 @@ decode_prefix_MP(proto_tree *tree, int hf_addr4, int hf_addr6,
}
/* XXX - break up into multiple fields */
- SET_ADDRESS(&addr, AT_IPv6, 16, ip6addr.bytes);
+ set_address(&addr, AT_IPv6, 16, ip6addr.bytes);
proto_tree_add_string_format(tree, hf_bgp_label_stack, tvb, start_offset,
(offset + 8 + length) - start_offset,
wmem_strbuf_get_str(stack_strbuf), "Label Stack=%s RD=%u:%u, IPv6=%s/%u",
@@ -4367,7 +4367,7 @@ decode_prefix_MP(proto_tree *tree, int hf_addr4, int hf_addr6,
}
/* XXX - break up into multiple fields */
- SET_ADDRESS(&addr, AT_IPv6, 16, &ip6addr);
+ set_address(&addr, AT_IPv6, 16, &ip6addr);
proto_tree_add_string_format(tree, hf_bgp_label_stack, tvb, start_offset,
(offset + 8 + length) - start_offset,
wmem_strbuf_get_str(stack_strbuf), "Label Stack=%s RD=%s:%u, IPv6=%s/%u",
@@ -4388,7 +4388,7 @@ decode_prefix_MP(proto_tree *tree, int hf_addr4, int hf_addr6,
}
/* XXX - break up into multiple fields */
- SET_ADDRESS(&addr, AT_IPv6, 16, ip6addr.bytes);
+ set_address(&addr, AT_IPv6, 16, ip6addr.bytes);
proto_tree_add_string_format(tree, hf_bgp_label_stack, tvb, start_offset,
(offset + 8 + length) - start_offset,
"Label Stack=%s RD=%u.%u:%u, IPv6=%s/%u",