aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dhcp.c
diff options
context:
space:
mode:
authorMartin Mathieson <martin.r.mathieson@googlemail.com>2018-09-28 20:50:52 +0100
committerPeter Wu <peter@lekensteyn.nl>2018-09-29 10:31:07 +0000
commit47eb71d8761d84db588c441fdf7d82c56ac07105 (patch)
treed57f06a46b1778d1facd9b63110dea730f21ad14 /epan/dissectors/packet-dhcp.c
parent45be9668223f3b42b45a6e30d67cb2eee94d2c5b (diff)
DHCP: For IPv4 options, append address to option root
Change-Id: I739db9d841394582b3ff2f296050a9a1d350f9bc Reviewed-on: https://code.wireshark.org/review/29907 Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'epan/dissectors/packet-dhcp.c')
-rw-r--r--epan/dissectors/packet-dhcp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/epan/dissectors/packet-dhcp.c b/epan/dissectors/packet-dhcp.c
index 4685c659f3..882159a3d2 100644
--- a/epan/dissectors/packet-dhcp.c
+++ b/epan/dissectors/packet-dhcp.c
@@ -1664,6 +1664,9 @@ dhcp_handle_basic_types(packet_info *pinfo, proto_tree *tree, proto_item *item,
proto_tree_add_item(tree, *hf, tvb, offset, 4, ENC_BIG_ENDIAN);
else if (hf_default->ipv4 != NULL)
proto_tree_add_item(tree, *hf_default->ipv4, tvb, offset, 4, ENC_BIG_ENDIAN);
+
+ /* Show IP address in root of option */
+ proto_item_append_text(tree, " (%s)", tvb_ip_to_str(tvb, offset));
consumed = 4;
break;