aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-bootp.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2015-03-02 09:33:52 -0500
committerAnders Broman <a.broman58@gmail.com>2015-03-03 07:19:42 +0000
commit1a54112c1d437d48c7dee4d7d37aeeab0b3507d8 (patch)
treeb50d71d5baf56d51b956b9f11cfa63f7f1ad881e /epan/dissectors/packet-bootp.c
parent43fd878c4e4d726dd4604ade4c0548eed783c4f3 (diff)
Add tvb_get_ether_name
This is mostly to reduce tvb_get_ptr calls that were used to pass into get_ether_name. Some optimizations were made to packet-ieee80211.c in the process of conversion. Change-Id: I81d3c65d4c09a15237fc287c2e989eb6e6936b1f Reviewed-on: https://code.wireshark.org/review/7492 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-bootp.c')
-rw-r--r--epan/dissectors/packet-bootp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-bootp.c b/epan/dissectors/packet-bootp.c
index 0c1c255a70..ac58604446 100644
--- a/epan/dissectors/packet-bootp.c
+++ b/epan/dissectors/packet-bootp.c
@@ -5174,7 +5174,7 @@ dissect_bootp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
&& hlen == 6) {
col_add_fstr(pinfo->cinfo, COL_INFO, "Boot Request from %s (%s)",
tvb_arphrdaddr_to_str(tvb, 28, hlen, htype),
- get_ether_name(tvb_get_ptr(tvb, 28, hlen)));
+ tvb_get_ether_name(tvb, 28));
}
else {
col_add_fstr(pinfo->cinfo, COL_INFO, "Boot Request from %s",