aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ieee80211-radiotap.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2019-04-03 14:32:30 -0700
committerAnders Broman <a.broman58@gmail.com>2019-04-04 04:03:38 +0000
commit8d3ac3af866ecc7b847dd5b621d828872fe9ba18 (patch)
tree3fa7aa1a57e1b828f636829f08d1adb9dfb5b395 /epan/dissectors/packet-ieee80211-radiotap.c
parentbdf26a35f696a1524364945a2c868e57c97d1729 (diff)
epan: Convert our PROTO_ITEM_ macros to inline functions.
Convert our various PROTO_ITEM_ macros to inline functions and document them. Change-Id: I070b15d4f70d2189217a177ee8ba2740be36327c Reviewed-on: https://code.wireshark.org/review/32706 Reviewed-by: Gerald Combs <gerald@wireshark.org> Petri-Dish: Gerald Combs <gerald@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-ieee80211-radiotap.c')
-rw-r--r--epan/dissectors/packet-ieee80211-radiotap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-ieee80211-radiotap.c b/epan/dissectors/packet-ieee80211-radiotap.c
index 229c99dbb8..4efcd77d60 100644
--- a/epan/dissectors/packet-ieee80211-radiotap.c
+++ b/epan/dissectors/packet-ieee80211-radiotap.c
@@ -2583,7 +2583,7 @@ dissect_radiotap(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* u
hf_radiotap_datarate,
tvb, offset, 3, rate,
"Data Rate: %.1f Mb/s", rate);
- PROTO_ITEM_SET_GENERATED(rate_ti);
+ proto_item_set_generated(rate_ti);
}
}
break;
@@ -2814,7 +2814,7 @@ dissect_radiotap(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* u
nsts = nss;
nsts_ti = proto_tree_add_uint(user_tree, hf_radiotap_vht_nsts[user],
tvb, offset + 4 + user, 1, nsts);
- PROTO_ITEM_SET_GENERATED(nsts_ti);
+ proto_item_set_generated(nsts_ti);
}
proto_tree_add_item(user_tree, hf_radiotap_vht_coding[user],
tvb, offset + 8, 1,ENC_LITTLE_ENDIAN);
@@ -2828,7 +2828,7 @@ dissect_radiotap(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* u
hf_radiotap_vht_datarate[user],
tvb, offset, 12, rate,
"Data Rate: %.1f Mb/s", rate);
- PROTO_ITEM_SET_GENERATED(rate_ti);
+ proto_item_set_generated(rate_ti);
if (ieee80211_vhtvalid[mcs].valid[bandwidth][nss-1] == FALSE)
expert_add_info(pinfo, rate_ti, &ei_radiotap_invalid_data_rate);
@@ -2927,7 +2927,7 @@ dissect_radiotap(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* u
hf_radiotap_fcs_bad,
tvb, hdr_fcs_offset,
4, TRUE);
- PROTO_ITEM_SET_HIDDEN(hidden_item);
+ proto_item_set_hidden(hidden_item);
}
} else {
proto_item_append_text(hdr_fcs_ti,