From b2a6dff815957a274aa6700f6cff93990694a91a Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Fri, 26 Jun 2015 13:12:18 -0700 Subject: Clean up switch statement whitespace. (Try to keep the same indentation style within a single switch statement, at least.) Change-Id: I5b349fd90881d1a1d2be377a291bfceda56476aa Reviewed-on: https://code.wireshark.org/review/9180 Reviewed-by: Guy Harris --- epan/dissectors/packet-ppi.c | 69 ++++++++++++++++++++++++-------------------- 1 file changed, 37 insertions(+), 32 deletions(-) diff --git a/epan/dissectors/packet-ppi.c b/epan/dissectors/packet-ppi.c index 11c1b4ff2b..0f6706df32 100644 --- a/epan/dissectors/packet-ppi.c +++ b/epan/dissectors/packet-ppi.c @@ -919,42 +919,43 @@ dissect_ppi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) tot_len -= data_len; switch (data_type) { - case PPI_80211_COMMON: - dissect_80211_common(tvb, pinfo, ppi_tree, offset, data_len, - &phdr); - break; - - case PPI_80211N_MAC: - dissect_80211n_mac(tvb, pinfo, ppi_tree, offset, data_len, - TRUE, &n_ext_flags, &du_id, &phdr); - is_ht = TRUE; - break; - - case PPI_80211N_MAC_PHY: - dissect_80211n_mac_phy(tvb, pinfo, ppi_tree, offset, - data_len, &n_ext_flags, &du_id, &phdr); - is_ht = TRUE; - break; - - case PPI_SPECTRUM_MAP: - ADD_BASIC_TAG(hf_spectrum_map); - break; - - case PPI_PROCESS_INFO: - ADD_BASIC_TAG(hf_process_info); - break; - - case PPI_CAPTURE_INFO: - ADD_BASIC_TAG(hf_capture_info); - break; - - case PPI_AGGREGATION_EXTENSION: - dissect_aggregation_extension(tvb, pinfo, ppi_tree, offset, data_len); - break; + + case PPI_80211_COMMON: + dissect_80211_common(tvb, pinfo, ppi_tree, offset, data_len, &phdr); + break; + + case PPI_80211N_MAC: + dissect_80211n_mac(tvb, pinfo, ppi_tree, offset, data_len, + TRUE, &n_ext_flags, &du_id, &phdr); + is_ht = TRUE; + break; + + case PPI_80211N_MAC_PHY: + dissect_80211n_mac_phy(tvb, pinfo, ppi_tree, offset, + data_len, &n_ext_flags, &du_id, &phdr); + is_ht = TRUE; + break; + + case PPI_SPECTRUM_MAP: + ADD_BASIC_TAG(hf_spectrum_map); + break; + + case PPI_PROCESS_INFO: + ADD_BASIC_TAG(hf_process_info); + break; + + case PPI_CAPTURE_INFO: + ADD_BASIC_TAG(hf_capture_info); + break; + + case PPI_AGGREGATION_EXTENSION: + dissect_aggregation_extension(tvb, pinfo, ppi_tree, offset, data_len); + break; case PPI_8023_EXTENSION: dissect_8023_extension(tvb, pinfo, ppi_tree, offset, data_len); break; + case PPI_GPS_INFO: if (ppi_gps_handle == NULL) { @@ -967,6 +968,7 @@ dissect_ppi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) call_dissector(ppi_gps_handle, next_tvb, pinfo, ppi_tree); } break; + case PPI_VECTOR_INFO: if (ppi_vector_handle == NULL) { @@ -979,6 +981,7 @@ dissect_ppi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) call_dissector(ppi_vector_handle, next_tvb, pinfo, ppi_tree); } break; + case PPI_SENSOR_INFO: if (ppi_sensor_handle == NULL) { @@ -991,6 +994,7 @@ dissect_ppi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) call_dissector(ppi_sensor_handle, next_tvb, pinfo, ppi_tree); } break; + case PPI_ANTENNA_INFO: if (ppi_antenna_handle == NULL) { @@ -1003,6 +1007,7 @@ dissect_ppi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) call_dissector(ppi_antenna_handle, next_tvb, pinfo, ppi_tree); } break; + case FNET_PRIVATE: if (ppi_fnet_handle == NULL) { -- cgit v1.2.3