aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-bootp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2006-02-16 11:43:38 +0000
committerGuy Harris <guy@alum.mit.edu>2006-02-16 11:43:38 +0000
commitb13f6dcbd34e11cb7dff5f03be9c2bdde200b22a (patch)
treec5f9bd1a6b9cfb26df3de77c2cb27d661c19e9ab /epan/dissectors/packet-bootp.c
parent1b096ab156506856495860ef6b356e6992a3ba8c (diff)
Use the new "proto_tree_add_*_format_value" routines.
svn path=/trunk/; revision=17316
Diffstat (limited to 'epan/dissectors/packet-bootp.c')
-rw-r--r--epan/dissectors/packet-bootp.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/epan/dissectors/packet-bootp.c b/epan/dissectors/packet-bootp.c
index e70e8bd8a9..36c1cd619a 100644
--- a/epan/dissectors/packet-bootp.c
+++ b/epan/dissectors/packet-bootp.c
@@ -2168,8 +2168,8 @@ dissect_packetcable_mta_cap(proto_tree *v_tree, tvbuff_t *tvb, int voff, int len
"Bogus length: %s", asc_val);
return;
} else {
- proto_tree_add_uint_format(v_tree, hf_bootp_pkt_mtacap_len, tvb, off, 2,
- tlv_len, "MTA DC Length: %d", tlv_len);
+ proto_tree_add_uint_format_value(v_tree, hf_bootp_pkt_mtacap_len, tvb, off, 2,
+ tlv_len, "%d", tlv_len);
off += 2;
while (off - voff < len) {
@@ -2361,8 +2361,8 @@ dissect_docsis_cm_cap(proto_tree *v_tree, tvbuff_t *tvb, int voff, int len)
"Bogus length: %s", asc_val);
return;
} else {
- proto_tree_add_uint_format(v_tree, hf_bootp_docsis_cmcap_len, tvb, off, 2,
- tlv_len, "CM DC Length: %d", tlv_len);
+ proto_tree_add_uint_format_value(v_tree, hf_bootp_docsis_cmcap_len, tvb, off, 2,
+ tlv_len, "%d", tlv_len);
off += 2;
while (off - voff < len) {
@@ -2926,11 +2926,11 @@ dissect_bootp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
proto_tree_add_uint(bp_tree, hf_bootp_type, tvb,
0, 1,
op);
- proto_tree_add_uint_format(bp_tree, hf_bootp_hw_type, tvb,
- 1, 1,
- htype,
- "Hardware type: %s",
- arphrdtype_to_str(htype,
+ proto_tree_add_uint_format_value(bp_tree, hf_bootp_hw_type, tvb,
+ 1, 1,
+ htype,
+ "%s",
+ arphrdtype_to_str(htype,
"Unknown (0x%02x)"));
proto_tree_add_uint(bp_tree, hf_bootp_hw_len, tvb,
2, 1, hlen);
@@ -2967,10 +2967,10 @@ dissect_bootp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
else
/* The chaddr element is 16 bytes in length,
although only the first hlen bytes are used */
- proto_tree_add_bytes_format(bp_tree, hf_bootp_hw_addr, tvb,
+ proto_tree_add_bytes_format_value(bp_tree, hf_bootp_hw_addr, tvb,
28, 16,
haddr,
- "Client hardware address: %s",
+ "%s",
arphrdaddr_to_str(haddr,
hlen,
htype));
@@ -3016,9 +3016,9 @@ dissect_bootp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
if (tvb_get_ntohl(tvb, voff) == 0x63825363) {
if (tree) {
ip_addr = tvb_get_ipv4(tvb, voff);
- proto_tree_add_ipv4_format(bp_tree, hf_bootp_cookie, tvb,
+ proto_tree_add_ipv4_format_value(bp_tree, hf_bootp_cookie, tvb,
voff, 4, ip_addr,
- "Magic cookie: (OK)");
+ "(OK)");
}
voff += 4;
}
@@ -3245,12 +3245,12 @@ proto_register_bootp(void)
"Name to register via DDNS", HFILL }},
{ &hf_bootp_pkt_mtacap_len,
- { "PacketCable MTA Device Capabilities Length", "bootp.vendor.pktc.mtacap_len",
+ { "MTA DC Length", "bootp.vendor.pktc.mtacap_len",
FT_UINT8, BASE_DEC, NULL, 0x0,
"PacketCable MTA Device Capabilities Length", HFILL }},
{ &hf_bootp_docsis_cmcap_len,
- { "DOCSIS CM Device Capabilities Length", "bootp.vendor.docsis.cmcap_len",
+ { "CM DC Length", "bootp.vendor.docsis.cmcap_len",
FT_UINT8, BASE_DEC, NULL, 0x0,
"DOCSIS Cable Modem Device Capabilities Length", HFILL }},