Fix the type of arrays of pointers to hf_ values for bitfield routines.

The static arrays are supposed to be arrays of const pointers to int,
not arrays of non-const pointers to const int.

Fixing that means some bugs (scribbling on what's *supposed* to be a
const array) will be caught (see packet-ieee80211-radiotap.c for
examples, the first of which inspired this change and the second of
which was discovered while testing compiles with this change), and
removes the need for some annoying casts.

Also make some of those arrays static while we're at it.

Update documentation and dissector-generator tools.

Change-Id: I789da5fc60aadc15797cefecfd9a9fbe9a130ccc
Reviewed-on: https://code.wireshark.org/review/37517
Petri-Dish: Guy Harris <gharris@sonic.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Guy Harris 2020-06-18 18:14:46 -07:00 committed by Anders Broman
parent 51bb2c4d7f
commit e1d9a226a2
467 changed files with 3784 additions and 3803 deletions

View File

@ -2194,7 +2194,7 @@ Example: (from the SCSI dissector)
...
static gint ett_scsi_inq_peripheral = -1;
...
static const int *peripheral_fields[] = {
static int * const peripheral_fields[] = {
&hf_scsi_inq_qualifier,
&hf_scsi_inq_devtype,
NULL

View File

@ -511,7 +511,7 @@ dissect_foo(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
{
...
...
static const int* bits[] = {
static int* const bits[] = {
&hf_foo_startflag,
&hf_foo_endflag,
&hf_foo_priorityflag,

View File

@ -83,7 +83,7 @@ static int hf_c1222_epsem_flags_ed_class = -1;
static int hf_c1222_epsem_flags_security_modes = -1;
static int hf_c1222_epsem_flags_response_control = -1;
/* and the structure of the flag components */
static const int *c1222_flags[] = {
static int * const c1222_flags[] = {
&hf_c1222_epsem_flags_reserved,
&hf_c1222_epsem_flags_recovery,
&hf_c1222_epsem_flags_proxy,

View File

@ -205,7 +205,7 @@ static int dissect_regextval_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *
static int dissect_denmssp_pdu(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data _U_)
{
static const int *denmssp_flags[] = {
static int * const denmssp_flags[] = {
&hf_denmssp_trafficCondition,
&hf_denmssp_accident,
&hf_denmssp_roadworks,
@ -244,7 +244,7 @@ static int dissect_denmssp_pdu(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree
static int dissect_camssp_pdu(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data _U_)
{
static const int *camssp_flags[] = {
static int * const camssp_flags[] = {
&hf_camssp_cenDsrcTollingZone,
&hf_camssp_publicTransport,
&hf_camssp_specialTransport,

View File

@ -3183,7 +3183,7 @@ dissect_krb5_decrypt_EncryptedChallenge(gboolean imp_tag _U_, tvbuff_t *tvb, int
}
#endif /* HAVE_KERBEROS */
static const int *hf_krb_pa_supported_enctypes_fields[] = {
static int * const hf_krb_pa_supported_enctypes_fields[] = {
&hf_krb_pa_supported_enctypes_des_cbc_crc,
&hf_krb_pa_supported_enctypes_des_cbc_md5,
&hf_krb_pa_supported_enctypes_rc4_hmac,
@ -3215,7 +3215,7 @@ dissect_kerberos_PA_SUPPORTED_ENCTYPES(gboolean implicit_tag _U_, tvbuff_t *tvb
return offset;
}
static const int *hf_krb_ad_ap_options_fields[] = {
static int * const hf_krb_ad_ap_options_fields[] = {
&hf_krb_ad_ap_options_cbt,
NULL,
};
@ -3899,7 +3899,7 @@ dissect_kerberos_KrbFastReq(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int of
return offset;
}
static const int * FastOptions_bits[] = {
static int * const FastOptions_bits[] = {
&hf_kerberos_FastOptions_reserved,
&hf_kerberos_FastOptions_hide_client_names,
&hf_kerberos_FastOptions_spare_bit2,

View File

@ -771,7 +771,7 @@ ldap_conv_info_t *ldap_info;
offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, -1, &val);
if (val >0) {
const int *flags[] = {
static int * const flags[] = {
&hf_ldap_object_security_flag,
&hf_ldap_ancestor_first_flag,
&hf_ldap_public_data_only_flag,

View File

@ -600,7 +600,7 @@ attribute_types_reset_cb(void)
/* MS-ADTS specification, section 6.3.1.1, NETLOGON_NT_VERSION Options Bits */
static int dissect_mscldap_ntver_flags(proto_tree *parent_tree, tvbuff_t *tvb, int offset)
{
static const int * flags[] = {
static int * const flags[] = {
&hf_mscldap_ntver_flags_v1,
&hf_mscldap_ntver_flags_v5,
&hf_mscldap_ntver_flags_v5ex,
@ -1373,7 +1373,7 @@ static const true_false_string tfs_ads_fnc = {
};
static int dissect_mscldap_netlogon_flags(proto_tree *parent_tree, tvbuff_t *tvb, int offset)
{
static const int * flags[] = {
static int * const flags[] = {
&hf_mscldap_netlogon_flags_fnc,
&hf_mscldap_netlogon_flags_dnc,
&hf_mscldap_netlogon_flags_dns,
@ -1683,7 +1683,7 @@ dissect_ldap_oid(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void*
static void
ldap_specific_rights(tvbuff_t *tvb, gint offset, proto_tree *tree, guint32 access)
{
static const int * access_flags[] = {
static int * const access_flags[] = {
&hf_ldap_AccessMask_ADS_CONTROL_ACCESS,
&hf_ldap_AccessMask_ADS_LIST_OBJECT,
&hf_ldap_AccessMask_ADS_DELETE_TREE,

View File

@ -2524,7 +2524,7 @@ WLAN-OffloadConfig-r12/thresholdWLAN-RSSI-r12/thresholdWLAN-RSSI-High-r12 DISPLA
#.FN_BODY MeasParameters-v1520/measGapPatterns-r15
if (meas_gap_pattern_tvb) {
static const int *lte_rrc_meas_gap_pattern_flags[] = {
static int * const lte_rrc_meas_gap_pattern_flags[] = {
&hf_lte_rrc_measGapPatterns_r15_bit1,
&hf_lte_rrc_measGapPatterns_r15_bit2,
&hf_lte_rrc_measGapPatterns_r15_bit3,

View File

@ -446,7 +446,7 @@ MaximumDataBurstVolume DISPLAY=BASE_DEC|BASE_UNIT_STRING STRINGS=&units_byte_byt
tvbuff_t *parameter_tvb = NULL;
%(DEFAULT_BODY)s
if (parameter_tvb) {
const gint *fields[] = {
static int * const fields[] = {
&hf_ngap_InterfacesToTrace_NG_C,
&hf_ngap_InterfacesToTrace_Xn_C,
&hf_ngap_InterfacesToTrace_Uu,
@ -580,7 +580,7 @@ RecommendedCellItem/timeStayedInCell DISPLAY=BASE_DEC|BASE_UNIT_STRING STRINGS=&
tvbuff_t *parameter_tvb = NULL;
%(DEFAULT_BODY)s
if (parameter_tvb) {
const gint *fields[] = {
static int * const fields[] = {
&hf_ngap_RATRestrictionInformation_e_UTRA,
&hf_ngap_RATRestrictionInformation_nR,
&hf_ngap_RATRestrictionInformation_reserved,
@ -594,7 +594,7 @@ RecommendedCellItem/timeStayedInCell DISPLAY=BASE_DEC|BASE_UNIT_STRING STRINGS=&
tvbuff_t *parameter_tvb = NULL;
%(DEFAULT_BODY)s
if (parameter_tvb) {
const gint *fields[] = {
static int * const fields[] = {
&hf_ngap_NrencyptionAlgorithms_nea1,
&hf_ngap_NrencyptionAlgorithms_nea2,
&hf_ngap_NrencyptionAlgorithms_nea3,
@ -609,7 +609,7 @@ RecommendedCellItem/timeStayedInCell DISPLAY=BASE_DEC|BASE_UNIT_STRING STRINGS=&
tvbuff_t *parameter_tvb = NULL;
%(DEFAULT_BODY)s
if (parameter_tvb) {
const gint *fields[] = {
static int * const fields[] = {
&hf_ngap_NrintegrityProtectionAlgorithms_nia1,
&hf_ngap_NrintegrityProtectionAlgorithms_nia2,
&hf_ngap_NrintegrityProtectionAlgorithms_nia3,
@ -624,7 +624,7 @@ RecommendedCellItem/timeStayedInCell DISPLAY=BASE_DEC|BASE_UNIT_STRING STRINGS=&
tvbuff_t *parameter_tvb = NULL;
%(DEFAULT_BODY)s
if (parameter_tvb) {
const gint *fields[] = {
static int * const fields[] = {
&hf_ngap_EUTRAencryptionAlgorithms_eea1,
&hf_ngap_EUTRAencryptionAlgorithms_eea2,
&hf_ngap_EUTRAencryptionAlgorithms_eea3,
@ -639,7 +639,7 @@ RecommendedCellItem/timeStayedInCell DISPLAY=BASE_DEC|BASE_UNIT_STRING STRINGS=&
tvbuff_t *parameter_tvb = NULL;
%(DEFAULT_BODY)s
if (parameter_tvb) {
const gint *fields[] = {
static int * const fields[] = {
&hf_ngap_EUTRAintegrityProtectionAlgorithms_eia1,
&hf_ngap_EUTRAintegrityProtectionAlgorithms_eia2,
&hf_ngap_EUTRAintegrityProtectionAlgorithms_eia3,

View File

@ -858,7 +858,7 @@ ProtocolExtensionID TYPE = FT_UINT8 DISPLAY = BASE_DEC|BASE_EXT_STRING STRINGS
tvbuff_t *parameter_tvb = NULL;
%(DEFAULT_BODY)s
if(parameter_tvb){
const gint *fields[] = {
static int * const fields[] = {
&hf_s1ap_interfacesToTrace_S1_MME,
&hf_s1ap_interfacesToTrace_X2,
&hf_s1ap_interfacesToTrace_Uu,
@ -896,7 +896,7 @@ MME-Group-ID TYPE = FT_UINT16 DISPLAY = BASE_DEC_HEX
tvbuff_t *parameter_tvb = NULL;
%(DEFAULT_BODY)s
if(parameter_tvb){
const gint *fields[] = {
static int * const fields[] = {
&hf_s1ap_encryptionAlgorithms_EEA1,
&hf_s1ap_encryptionAlgorithms_EEA2,
&hf_s1ap_encryptionAlgorithms_EEA3,
@ -911,7 +911,7 @@ MME-Group-ID TYPE = FT_UINT16 DISPLAY = BASE_DEC_HEX
tvbuff_t *parameter_tvb = NULL;
%(DEFAULT_BODY)s
if(parameter_tvb){
const gint *fields[] = {
static int * const fields[] = {
&hf_s1ap_integrityProtectionAlgorithms_EIA1,
&hf_s1ap_integrityProtectionAlgorithms_EIA2,
&hf_s1ap_integrityProtectionAlgorithms_EIA3,
@ -1054,7 +1054,7 @@ ExtendedRepetitionPeriod DISPLAY=BASE_DEC|BASE_UNIT_STRING STRINGS=&units_second
tvbuff_t *parameter_tvb = NULL;
%(DEFAULT_BODY)s
if(parameter_tvb){
const gint *fields[] = {
static int * const fields[] = {
&hf_s1ap_measurementsToActivate_M1,
&hf_s1ap_measurementsToActivate_M2,
&hf_s1ap_measurementsToActivate_M3,
@ -1073,7 +1073,7 @@ ExtendedRepetitionPeriod DISPLAY=BASE_DEC|BASE_UNIT_STRING STRINGS=&units_second
tvbuff_t *parameter_tvb = NULL;
%(DEFAULT_BODY)s
if(parameter_tvb){
const gint *fields[] = {
static int * const fields[] = {
&hf_s1ap_MDT_Location_Info_GNSS,
&hf_s1ap_MDT_Location_Info_E_CID,
&hf_s1ap_MDT_Location_Info_Reserved,
@ -1128,7 +1128,7 @@ ExtendedBitRate DISPLAY=BASE_DEC|BASE_UNIT_STRING STRINGS=&units_bit_sec
tvbuff_t *parameter_tvb = NULL;
%(DEFAULT_BODY)s
if (parameter_tvb) {
const gint *fields[] = {
static int * const fields[] = {
&hf_s1ap_NRencryptionAlgorithms_NEA1,
&hf_s1ap_NRencryptionAlgorithms_NEA2,
&hf_s1ap_NRencryptionAlgorithms_NEA3,
@ -1143,7 +1143,7 @@ ExtendedBitRate DISPLAY=BASE_DEC|BASE_UNIT_STRING STRINGS=&units_bit_sec
tvbuff_t *parameter_tvb = NULL;
%(DEFAULT_BODY)s
if (parameter_tvb) {
const gint *fields[] = {
static int * const fields[] = {
&hf_s1ap_NRintegrityProtectionAlgorithms_NIA1,
&hf_s1ap_NRintegrityProtectionAlgorithms_NIA2,
&hf_s1ap_NRintegrityProtectionAlgorithms_NIA3,
@ -1158,7 +1158,7 @@ ExtendedBitRate DISPLAY=BASE_DEC|BASE_UNIT_STRING STRINGS=&units_bit_sec
tvbuff_t *parameter_tvb = NULL;
%(DEFAULT_BODY)s
if(parameter_tvb){
const gint *fields[] = {
static int * const fields[] = {
&hf_s1ap_UE_Application_Layer_Measurement_Capability_QoE_Measurement_for_streaming_service,
&hf_s1ap_UE_Application_Layer_Measurement_Capability_QoE_Measurement_for_MTSI_service,
&hf_s1ap_UE_Application_Layer_Measurement_Capability_Reserved,

View File

@ -918,7 +918,7 @@ dissect_spnego_krb5_cfx_flags(tvbuff_t *tvb, int offset,
proto_tree *spnego_krb5_tree,
guint8 cfx_flags _U_)
{
static const int * flags[] = {
static int * const flags[] = {
&hf_spnego_krb5_cfx_flags_04,
&hf_spnego_krb5_cfx_flags_02,
&hf_spnego_krb5_cfx_flags_01,

View File

@ -123,7 +123,7 @@ dissect_PhsMeas1(gboolean implicit_tag, packet_info *pinfo, proto_tree *tree, tv
guint32 qual;
guint32 i;
static const int *q_flags[] = {
static int * const q_flags[] = {
&hf_sv_phsmeas_q_validity,
&hf_sv_phsmeas_q_overflow,
&hf_sv_phsmeas_q_outofrange,

View File

@ -169,7 +169,7 @@ Port-Number TYPE = FT_UINT16 DISPLAY = BASE_DEC
tvbuff_t *parameter_tvb = NULL;
%(DEFAULT_BODY)s
if(parameter_tvb){
const gint *fields[] = {
static int * const fields[] = {
&hf_x2ap_ReportCharacteristics_PRBPeriodic,
&hf_x2ap_ReportCharacteristics_TNLLoadIndPeriodic,
&hf_x2ap_ReportCharacteristics_HWLoadIndPeriodic,
@ -191,7 +191,7 @@ Port-Number TYPE = FT_UINT16 DISPLAY = BASE_DEC
32, 32, FALSE, NULL, 0, &parameter_tvb, NULL);
if(parameter_tvb){
const gint *fields[] = {
static int * const fields[] = {
&hf_x2ap_measurementFailedReportCharacteristics_PRBPeriodic,
&hf_x2ap_measurementFailedReportCharacteristics_TNLLoadIndPeriodic,
&hf_x2ap_measurementFailedReportCharacteristics_HWLoadIndPeriodic,
@ -305,7 +305,7 @@ Port-Number TYPE = FT_UINT16 DISPLAY = BASE_DEC
tvbuff_t *parameter_tvb = NULL;
%(DEFAULT_BODY)s
if(parameter_tvb){
const gint *fields[] = {
static int * const fields[] = {
&hf_x2ap_interfacesToTrace_S1_MME,
&hf_x2ap_interfacesToTrace_X2,
&hf_x2ap_interfacesToTrace_Uu,
@ -408,7 +408,7 @@ MME-Group-ID TYPE = FT_UINT16 DISPLAY = BASE_DEC_HEX
tvbuff_t *parameter_tvb = NULL;
%(DEFAULT_BODY)s
if(parameter_tvb){
const gint *fields[] = {
static int * const fields[] = {
&hf_x2ap_encryptionAlgorithms_EEA1,
&hf_x2ap_encryptionAlgorithms_EEA2,
&hf_x2ap_encryptionAlgorithms_EEA3,
@ -423,7 +423,7 @@ MME-Group-ID TYPE = FT_UINT16 DISPLAY = BASE_DEC_HEX
tvbuff_t *parameter_tvb = NULL;
%(DEFAULT_BODY)s
if(parameter_tvb){
const gint *fields[] = {
static int * const fields[] = {
&hf_x2ap_integrityProtectionAlgorithms_EIA1,
&hf_x2ap_integrityProtectionAlgorithms_EIA2,
&hf_x2ap_integrityProtectionAlgorithms_EIA3,
@ -453,7 +453,7 @@ MobilityParametersModificationRange/handoverTriggerChangeUpperLimit DISPLAY=BASE
tvbuff_t *parameter_tvb = NULL;
%(DEFAULT_BODY)s
if(parameter_tvb){
const gint *fields[] = {
static int * const fields[] = {
&hf_x2ap_measurementsToActivate_M1,
&hf_x2ap_measurementsToActivate_M2,
&hf_x2ap_measurementsToActivate_M3,
@ -478,7 +478,7 @@ Threshold-RSRQ DISPLAY=BASE_CUSTOM STRINGS=CF_FUNC(x2ap_Threshold_RSRQ_fmt)
tvbuff_t *parameter_tvb = NULL;
%(DEFAULT_BODY)s
if(parameter_tvb){
const gint *fields[] = {
static int * const fields[] = {
&hf_x2ap_MDT_Location_Info_GNSS,
&hf_x2ap_MDT_Location_Info_E_CID,
&hf_x2ap_MDT_Location_Info_Reserved,
@ -501,7 +501,7 @@ RSRPMeasurementResult/_item/rSRPMeasured DISPLAY=BASE_CUSTOM STRINGS=CF_FUNC(x2a
tvbuff_t *parameter_tvb = NULL;
%(DEFAULT_BODY)s
if(parameter_tvb){
const gint *fields[] = {
static int * const fields[] = {
&hf_x2ap_MDT_transmissionModes_tm1,
&hf_x2ap_MDT_transmissionModes_tm2,
&hf_x2ap_MDT_transmissionModes_tm3,
@ -538,7 +538,7 @@ ExtendedBitRate DISPLAY=BASE_DEC|BASE_UNIT_STRING STRINGS=&units_bit_sec
tvbuff_t *parameter_tvb = NULL;
%(DEFAULT_BODY)s
if (parameter_tvb) {
const gint *fields[] = {
static int * const fields[] = {
&hf_x2ap_NRencryptionAlgorithms_NEA1,
&hf_x2ap_NRencryptionAlgorithms_NEA2,
&hf_x2ap_NRencryptionAlgorithms_NEA3,
@ -553,7 +553,7 @@ ExtendedBitRate DISPLAY=BASE_DEC|BASE_UNIT_STRING STRINGS=&units_bit_sec
tvbuff_t *parameter_tvb = NULL;
%(DEFAULT_BODY)s
if (parameter_tvb) {
const gint *fields[] = {
static int * const fields[] = {
&hf_x2ap_NRintegrityProtectionAlgorithms_NIA1,
&hf_x2ap_NRintegrityProtectionAlgorithms_NIA2,
&hf_x2ap_NRintegrityProtectionAlgorithms_NIA3,

View File

@ -220,7 +220,7 @@ timescaled_val_to_str(guint64 val)
static gint
dissect_mp4_full_box(tvbuff_t *tvb, gint offset, proto_tree *tree,
const int **flags_fields, guint8 *version, guint32 *flags)
int * const *flags_fields, guint8 *version, guint32 *flags)
{
if (version) {
*version = tvb_get_guint8(tvb, offset);
@ -344,7 +344,7 @@ dissect_mp4_tkhd_body(tvbuff_t *tvb, gint offset, gint len _U_,
guint8 time_len;
double width, height;
guint16 fract_dec;
static const int* flags[] = {
static int * const flags[] = {
&hf_mp4_tkhd_flags_enabled,
&hf_mp4_tkhd_flags_in_movie,
&hf_mp4_tkhd_flags_in_preview,
@ -571,7 +571,7 @@ dissect_mp4_url_body(tvbuff_t *tvb, gint offset, gint len,
packet_info *pinfo _U_, guint depth _U_, proto_tree *tree)
{
guint32 flags;
static const int* flags_fields[] = {
static int * const flags_fields[] = {
&hf_mp4_url_flags_media_data_location,
NULL
};

View File

@ -151,13 +151,13 @@ static gint ett_pcapng_records = -1;
static gint ett_pcapng_record = -1;
static gint ett_pcapng_packet_data = -1;
static const int *hfx_pcapng_option_data_interface_timestamp_resolution[] = {
static int * const hfx_pcapng_option_data_interface_timestamp_resolution[] = {
&hf_pcapng_option_data_interface_timestamp_resolution_base,
&hf_pcapng_option_data_interface_timestamp_resolution_value,
NULL
};
static const int *hfx_pcapng_option_data_packet_flags_link_layer_errors[] = {
static int * const hfx_pcapng_option_data_packet_flags_link_layer_errors[] = {
&hf_pcapng_option_data_packet_flags_link_layer_errors_symbol,
&hf_pcapng_option_data_packet_flags_link_layer_errors_preamble,
&hf_pcapng_option_data_packet_flags_link_layer_errors_start_frame_delimiter,
@ -170,7 +170,7 @@ static const int *hfx_pcapng_option_data_packet_flags_link_layer_errors[] = {
NULL
};
static const int *hfx_pcapng_option_data_packet_flags[] = {
static int * const hfx_pcapng_option_data_packet_flags[] = {
&hf_pcapng_option_data_packet_flags_reserved,
&hf_pcapng_option_data_packet_flags_fcs_length,
&hf_pcapng_option_data_packet_flags_reception_type,
@ -178,7 +178,7 @@ static const int *hfx_pcapng_option_data_packet_flags[] = {
NULL
};
static const int *hfx_pcapng_block_type[] = {
static int * const hfx_pcapng_block_type[] = {
&hf_pcapng_block_type_vendor,
&hf_pcapng_block_type_value,
NULL

View File

@ -535,7 +535,7 @@ static const value_string a11_ses_msid_type_vals[] =
{ 0, NULL },
};
static const int * a11_flags[] = {
static int * const a11_flags[] = {
&hf_a11_s,
&hf_a11_b,
&hf_a11_d,

View File

@ -1311,7 +1311,7 @@ dissect_6lowpan_6loRH(tvbuff_t *tvb, guint offset, proto_tree *tree)
gint16 loRHE_unitnums;
struct ws_ip6_hdr ipv6;
const gint *bits_RHC[] = {
static int * const bits_RHC[] = {
&hf_6lowpan_5_bit_o,
&hf_6lowpan_5_bit_r,
&hf_6lowpan_5_bit_f,
@ -1552,7 +1552,7 @@ dissect_6lowpan_hc1(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint dg
guint32 ipv6_flow;
struct ws_ip6_hdr ipv6;
struct lowpan_nhdr *nhdr_list;
static const int * hc1_encodings[] = {
static int * const hc1_encodings[] = {
&hf_6lowpan_hc1_source_prefix,
&hf_6lowpan_hc1_source_ifc,
&hf_6lowpan_hc1_dest_prefix,
@ -1562,7 +1562,7 @@ dissect_6lowpan_hc1(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint dg
&hf_6lowpan_hc1_more,
NULL
};
static const int * hc2_encodings[] = {
static int * const hc2_encodings[] = {
&hf_6lowpan_hc2_udp_src,
&hf_6lowpan_hc2_udp_dst,
&hf_6lowpan_hc2_udp_len,

View File

@ -960,7 +960,7 @@ static void dissect_9P_lflags(tvbuff_t *tvb, proto_tree *tree, int offset);
static void dissect_9P_getattrflags(tvbuff_t *tvb, proto_tree *tree, int offset);
static void dissect_9P_setattrflags(tvbuff_t *tvb, proto_tree *tree, int offset);
static const int * _9P_modes[] = {
static int * const _9P_modes[] = {
&hf_9P_mode_c,
&hf_9P_mode_t,
&hf_9P_mode_rwx,

View File

@ -463,7 +463,7 @@ dissect_a21_mobile_subscription_information(tvbuff_t *tvb, packet_info *pinfo _U
proto_item* ti;
guint32 rec_len, sub_cls_len;
static const int* flags[] = {
static int * const flags[] = {
&hf_a21_sc7,
&hf_a21_sc6,
&hf_a21_sc5,

View File

@ -579,7 +579,7 @@ create_header_extension_subtree(proto_tree *tree, tvbuff_t *tvb, gint offset, gu
// Gen3 only: we should add one byte of C5 Control Flags
// C5 Control Flags
static const int *c5_cntrl_flags[] = {
static int * const c5_cntrl_flags[] = {
&hf_acdr_ext_c5_control_favorite,
NULL
};
@ -1055,7 +1055,7 @@ create_acdr_tree(proto_tree *tree, packet_info *pinfo, tvbuff_t *tvb)
((extra_data == 0xAA) && ((version & 0xF) <= 3))) {
proto_tree_add_item(acdr_tree, hf_acdr_data, tvb, offset, 1, ENC_BIG_ENDIAN);
} else {
static const int *extra_data_bits[] = {
static int * const extra_data_bits[] = {
&hf_acdr_data_li,
&hf_acdr_data_mtce,
&hf_acdr_data_encrypted,

View File

@ -224,7 +224,7 @@ dissect_acp133_Community(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offse
}
static const int * OnSupported_bits[] = {
static int * const OnSupported_bits[] = {
&hf_acp133_OnSupported_acp127_nn,
&hf_acp133_OnSupported_acp127_pn,
&hf_acp133_OnSupported_acp127_tn,

View File

@ -428,7 +428,7 @@ dissect_acse_EXTERNALt(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset
}
static const int * T_AARQ_protocol_version_bits[] = {
static int * const T_AARQ_protocol_version_bits[] = {
&hf_acse_T_AARQ_protocol_version_version1,
NULL
};
@ -614,7 +614,7 @@ dissect_acse_AE_invocation_identifier(gboolean implicit_tag _U_, tvbuff_t *tvb _
}
static const int * ACSE_requirements_bits[] = {
static int * const ACSE_requirements_bits[] = {
&hf_acse_ACSE_requirements_authentication,
&hf_acse_ACSE_requirements_aSO_context_negotiation,
&hf_acse_ACSE_requirements_higher_level_association,
@ -964,7 +964,7 @@ dissect_acse_AARQ_apdu(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset
}
static const int * T_AARE_protocol_version_bits[] = {
static int * const T_AARE_protocol_version_bits[] = {
&hf_acse_T_AARE_protocol_version_version1,
NULL
};

View File

@ -135,7 +135,7 @@ dissect_UDPStatus(tvbuff_t *tvb, proto_tree *adwin_tree)
proto_tree *debug_tree;
proto_item *dt;
static const int * status_flags[] = {
static int * const status_flags[] = {
&hf_adwin_config_status_bootloader,
&hf_adwin_config_status_reprogrammable,
&hf_adwin_config_status_configurable,

View File

@ -2344,7 +2344,7 @@ static int dissect_aeron_data(tvbuff_t * tvb, int offset, packet_info * pinfo, p
proto_item * channel_item;
proto_item * frame_length_item;
guint32 frame_length;
static const int * flags[] =
static int * const flags[] =
{
&hf_aeron_data_flags_b,
&hf_aeron_data_flags_e,
@ -2547,7 +2547,7 @@ static int dissect_aeron_sm(tvbuff_t * tvb, int offset, packet_info * pinfo, pro
proto_item * item;
proto_item * rcv_window_item;
guint32 frame_length;
static const int * flags[] =
static int * const flags[] =
{
&hf_aeron_sm_flags_s,
NULL
@ -2686,7 +2686,7 @@ static int dissect_aeron_heartbeat(tvbuff_t * tvb, int offset, packet_info * pin
proto_item * channel_item;
proto_item * frame_length_item;
guint32 frame_length;
static const int * flags[] =
static int * const flags[] =
{
&hf_aeron_heartbeat_flags_b,
&hf_aeron_heartbeat_flags_e,
@ -2755,7 +2755,7 @@ static int dissect_aeron_rtt(tvbuff_t * tvb, int offset, packet_info * pinfo, pr
proto_item * frame_length_item;
proto_item * item;
guint32 frame_length;
static const int * flags[] =
static int * const flags[] =
{
&hf_aeron_rtt_flags_r,
NULL

View File

@ -1192,7 +1192,7 @@ static guint16
decode_vol_bitmap (proto_tree *tree, tvbuff_t *tvb, gint offset)
{
guint16 bitmap;
static const int * bitmaps[] = {
static int * const bitmaps[] = {
&hf_afp_vol_bitmap_Attributes,
&hf_afp_vol_bitmap_Signature,
&hf_afp_vol_bitmap_CreateDate,
@ -1220,7 +1220,7 @@ static guint16
decode_vol_attribute (proto_tree *tree, tvbuff_t *tvb, gint offset)
{
guint16 bitmap;
static const int * bitmaps[] = {
static int * const bitmaps[] = {
&hf_afp_vol_attribute_ReadOnly,
&hf_afp_vol_attribute_HasVolumePassword,
&hf_afp_vol_attribute_SupportsFileIDs,
@ -1336,7 +1336,7 @@ static guint16
decode_file_bitmap (proto_tree *tree, tvbuff_t *tvb, gint offset)
{
guint16 bitmap;
static const int * bitmaps[] = {
static int * const bitmaps[] = {
&hf_afp_file_bitmap_Attributes,
&hf_afp_file_bitmap_ParentDirID,
&hf_afp_file_bitmap_CreateDate,
@ -1368,7 +1368,7 @@ static guint16
decode_file_attribute(proto_tree *tree, tvbuff_t *tvb, gint offset, int shared)
{
guint16 attribute;
static const int * not_shared_attr[] = {
static int * const not_shared_attr[] = {
&hf_afp_file_attribute_Invisible,
&hf_afp_file_attribute_MultiUser,
&hf_afp_file_attribute_System,
@ -1384,7 +1384,7 @@ decode_file_attribute(proto_tree *tree, tvbuff_t *tvb, gint offset, int shared)
NULL
};
static const int * shared_attr[] = {
static int * const shared_attr[] = {
&hf_afp_file_attribute_Invisible,
&hf_afp_file_attribute_System,
&hf_afp_file_attribute_WriteInhibit,
@ -1413,7 +1413,7 @@ decode_file_attribute(proto_tree *tree, tvbuff_t *tvb, gint offset, int shared)
static void
decode_access_rights (proto_tree *tree, tvbuff_t *tvb, int hf, gint offset)
{
static const int * rights[] = {
static int * const rights[] = {
&hf_afp_dir_ar_o_search,
&hf_afp_dir_ar_o_read,
&hf_afp_dir_ar_o_write,
@ -1615,7 +1615,7 @@ static guint16
decode_dir_bitmap (proto_tree *tree, tvbuff_t *tvb, gint offset)
{
guint16 bitmap;
static const int * bitmaps[] = {
static int * const bitmaps[] = {
&hf_afp_dir_bitmap_Attributes,
&hf_afp_dir_bitmap_ParentDirID,
&hf_afp_dir_bitmap_CreateDate,
@ -1646,7 +1646,7 @@ static guint16
decode_dir_attribute(proto_tree *tree, tvbuff_t *tvb, gint offset)
{
guint16 attribute;
static const int * attributes[] = {
static int * const attributes[] = {
&hf_afp_dir_attribute_Invisible,
&hf_afp_dir_attribute_IsExpFolder,
&hf_afp_dir_attribute_System,
@ -2062,7 +2062,7 @@ dissect_reply_afp_get_server_param(tvbuff_t *tvb, packet_info *pinfo _U_, proto_
proto_tree *sub_tree;
proto_item *item;
static const int * flags[] = {
static int * const flags[] = {
&hf_afp_vol_flag_passwd,
&hf_afp_vol_flag_has_config,
NULL
@ -2126,7 +2126,7 @@ dissect_query_afp_with_vol_id(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree
static gint
dissect_query_afp_open_fork(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset)
{
static const int * access[] = {
static int * const access[] = {
&hf_afp_access_read,
&hf_afp_access_write,
&hf_afp_access_deny_read,
@ -3660,7 +3660,7 @@ dissect_reply_afp_get_session_token(tvbuff_t *tvb, packet_info *pinfo _U_, proto
}
/* ************************** */
static const int * afp_message_bitmaps[] = {
static int * const afp_message_bitmaps[] = {
&hf_afp_message_bitmap_REQ,
&hf_afp_message_bitmap_UTF,
NULL
@ -3732,7 +3732,7 @@ dissect_reply_afp_get_server_message(tvbuff_t *tvb, packet_info *pinfo _U_, prot
}
/* ************************** */
static const int * afp_user_bitmaps[] = {
static int * const afp_user_bitmaps[] = {
&hf_afp_user_bitmap_UID,
&hf_afp_user_bitmap_GID,
&hf_afp_user_bitmap_UUID,
@ -3816,7 +3816,7 @@ decode_attr_name (proto_tree *tree, packet_info *pinfo _U_, tvbuff_t *tvb, gint
static gint
decode_attr_bitmap (proto_tree *tree, tvbuff_t *tvb, gint offset)
{
static const int * bitmaps[] = {
static int * const bitmaps[] = {
&hf_afp_extattr_bitmap_NoFollow,
&hf_afp_extattr_bitmap_Create,
&hf_afp_extattr_bitmap_Replace,
@ -3989,7 +3989,7 @@ static gint
decode_acl_access_bitmap(tvbuff_t *tvb, proto_tree *tree, gint offset)
{
guint32 bitmap;
static const int * bitmaps[] = {
static int * const bitmaps[] = {
&hf_afp_acl_access_bitmap_read_data,
&hf_afp_acl_access_bitmap_write_data,
&hf_afp_acl_access_bitmap_execute,
@ -4577,7 +4577,7 @@ static guint16
decode_acl_list_bitmap(tvbuff_t *tvb, proto_tree *tree, gint offset)
{
guint16 bitmap;
static const int * bitmaps[] = {
static int * const bitmaps[] = {
&hf_afp_acl_list_bitmap_UUID,
&hf_afp_acl_list_bitmap_GRPUUID,
&hf_afp_acl_list_bitmap_ACL,
@ -4599,7 +4599,7 @@ decode_ace_flags_bitmap(tvbuff_t *tvb, proto_tree *tree, gint offset)
{
guint32 bitmap;
static const int * bitmaps[] = {
static int * const bitmaps[] = {
&hf_afp_ace_flags_allow,
&hf_afp_ace_flags_deny,
&hf_afp_ace_flags_inherited,
@ -4826,7 +4826,7 @@ dissect_afp_server_status(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tre
guint len;
guint i;
static const int * flags[] = {
static int * const flags[] = {
&hf_afp_server_flag_copyfile,
&hf_afp_server_flag_passwd,
&hf_afp_server_flag_no_save_passwd,

View File

@ -654,7 +654,7 @@ static void OUT_CB_AFSFid(ptvcursor_t *cursor, const char* label)
/* Output a StoreStatus */
static void OUT_FS_AFSStoreStatus(ptvcursor_t *cursor, const char* label)
{
static const int * status_mask_flags[] = {
static int * const status_mask_flags[] = {
&hf_afs_fs_status_mask_setmodtime,
&hf_afs_fs_status_mask_setowner,
&hf_afs_fs_status_mask_setgroup,
@ -2361,7 +2361,7 @@ dissect_prot_request(ptvcursor_t *cursor, struct rxinfo *rxinfo _U_, int opcode)
static void
dissect_vldb_reply(ptvcursor_t *cursor, struct rxinfo *rxinfo, int opcode)
{
static const int * vldb_flags[] = {
static int * const vldb_flags[] = {
&hf_afs_vldb_flags_rwexists,
&hf_afs_vldb_flags_roexists,
&hf_afs_vldb_flags_bkexists,

View File

@ -785,7 +785,7 @@ dissect_agentx_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* da
guint32 trans_id;
guint32 packet_id;
guint32 payload_len;
static const int * pdu_flags[] = {
static int * const pdu_flags[] = {
&hf_flags_register,
&hf_flags_newindex,
&hf_flags_anyindex,

View File

@ -727,7 +727,7 @@ dissect_aim_snac(tvbuff_t *tvb, packet_info *pinfo, int offset,
if( aim_tree && subtype != NULL )
{
static const int * fnac_flags[] = {
static int * const fnac_flags[] = {
&hf_aim_fnac_flag_next_is_related,
&hf_aim_fnac_flag_contains_version,
NULL
@ -1111,7 +1111,7 @@ static int
dissect_aim_userclass(tvbuff_t *tvb, int offset, int len, proto_item *ti, guint32 value)
{
proto_tree *entry;
static const int * flags[] = {
static int * const flags[] = {
&hf_aim_userclass_unconfirmed,
&hf_aim_userclass_administrator,
&hf_aim_userclass_aol,
@ -2347,7 +2347,7 @@ static int dissect_aim_generic_migration_req(tvbuff_t *tvb, packet_info *pinfo,
static int dissect_aim_generic_setprivflags(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *gen_tree)
{
static const int * flags[] = {
static int * const flags[] = {
&hf_generic_allow_idle_see,
&hf_generic_allow_member_see,
NULL
@ -3164,7 +3164,7 @@ dissect_aim_rendezvous_extended_message(tvbuff_t *tvb, proto_tree *msg_tree)
{
int offset = 0;
guint32 text_length;
static const int * flags[] = {
static int * const flags[] = {
&hf_aim_rendezvous_extended_data_message_flags_normal,
&hf_aim_rendezvous_extended_data_message_flags_auto,
&hf_aim_rendezvous_extended_data_message_flags_multi,

View File

@ -3415,7 +3415,7 @@ dissect_ain_GenericDigitsList(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int
}
static const int * ApplyRestrictions_U_bits[] = {
static int * const ApplyRestrictions_U_bits[] = {
&hf_ain_ApplyRestrictions_U_code,
&hf_ain_ApplyRestrictions_U_toll,
NULL
@ -5621,7 +5621,7 @@ dissect_ain_DelayInterval(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offs
}
static const int * Empty_bits[] = {
static int * const Empty_bits[] = {
&hf_ain_Empty_entireList,
&hf_ain_Empty_outgoingmemorySlot,
&hf_ain_Empty_incomingmemorySlot,
@ -5709,7 +5709,7 @@ dissect_ain_Service1(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U
}
static const int * Request1_bits[] = {
static int * const Request1_bits[] = {
&hf_ain_Request1_activationStatus,
NULL
};
@ -5754,7 +5754,7 @@ dissect_ain_Service2(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U
}
static const int * Request2_bits[] = {
static int * const Request2_bits[] = {
&hf_ain_Request2_activationStatus,
&hf_ain_Request2_delayInterval,
NULL
@ -5801,7 +5801,7 @@ dissect_ain_Service3(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U
}
static const int * Request3_bits[] = {
static int * const Request3_bits[] = {
&hf_ain_Request3_activationStatus,
&hf_ain_Request3_entireList,
&hf_ain_Request3_listSize,
@ -5850,7 +5850,7 @@ dissect_ain_Service4(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U
}
static const int * Request4_bits[] = {
static int * const Request4_bits[] = {
&hf_ain_Request4_activationStatus,
&hf_ain_Request4_forwardingDn,
NULL
@ -5897,7 +5897,7 @@ dissect_ain_Service5(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U
}
static const int * Request5_bits[] = {
static int * const Request5_bits[] = {
&hf_ain_Request5_activationStatus,
&hf_ain_Request5_forwardingDn,
&hf_ain_Request5_entireList,
@ -5945,7 +5945,7 @@ dissect_ain_Service6(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U
}
static const int * Request6_bits[] = {
static int * const Request6_bits[] = {
&hf_ain_Request6_delayInterval,
NULL
};
@ -6005,7 +6005,7 @@ dissect_ain_RequestGroups(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offs
}
static const int * RequestMemorySlot_bits[] = {
static int * const RequestMemorySlot_bits[] = {
&hf_ain_RequestMemorySlot_incoming,
&hf_ain_RequestMemorySlot_outgoing,
NULL
@ -6065,7 +6065,7 @@ dissect_ain_QueryRequestArg(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int of
}
static const int * EDPRequest_U_bits[] = {
static int * const EDPRequest_U_bits[] = {
&hf_ain_EDPRequest_U_oCalledPartyBusy,
&hf_ain_EDPRequest_U_oNoAnswer,
&hf_ain_EDPRequest_U_oTermSeized,
@ -6110,7 +6110,7 @@ dissect_ain_EDPRequest(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset
}
static const int * EDPNotification_U_bits[] = {
static int * const EDPNotification_U_bits[] = {
&hf_ain_EDPNotification_U_oCalledPartyBusy,
&hf_ain_EDPNotification_U_oNoAnswer,
&hf_ain_EDPNotification_U_oTermSeized,

View File

@ -164,7 +164,7 @@ static const value_string amp_ari_struct_type[] = {
/* AMP Message Header */
static const int *amp_message_header[] = {
static int * const amp_message_header[] = {
&hf_amp_reserved,
&hf_amp_acl,
&hf_amp_nack,
@ -174,7 +174,7 @@ static const int *amp_message_header[] = {
};
/* TNVC Flags */
static const int *amp_tnvc_flags[] = {
static int * const amp_tnvc_flags[] = {
&hf_amp_tnvc_reserved,
&hf_amp_tnvc_mixed,
&hf_amp_tnvc_typed,
@ -184,7 +184,7 @@ static const int *amp_tnvc_flags[] = {
};
/* ARI Flags */
static const int *amp_ari_flags[] = {
static int * const amp_ari_flags[] = {
&hf_ari_nickname,
&hf_ari_parameters,
&hf_ari_issuer,

View File

@ -501,7 +501,7 @@ static void
for_pr_gps_almanac(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint len, guint32 offset)
{
guint32 saved_offset = offset;
const gint *fields[] = {
int * const fields[] = {
&hf_ansi_801_num_sv_p32,
&hf_ansi_801_week_num,
&hf_ansi_801_toa,
@ -522,7 +522,7 @@ static void
for_pr_gps_nav_msg_bits(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint len, guint32 offset)
{
guint32 saved_offset = offset;
const gint *fields[] = {
int * const fields[] = {
&hf_ansi_801_num_sv_p16,
&hf_ansi_801_part_num16,
&hf_ansi_801_total_parts16,

View File

@ -188,7 +188,7 @@ dissect_aodv_rreq(tvbuff_t *tvb, packet_info *pinfo, proto_tree *aodv_tree,
const gchar *orig_addr_v6;
guint32 orig_seqno;
int extlen;
static const int * aodv_flags[] = {
static int * const aodv_flags[] = {
&hf_aodv_flags_rreq_join,
&hf_aodv_flags_rreq_repair,
&hf_aodv_flags_rreq_gratuitous,
@ -286,7 +286,7 @@ dissect_aodv_rrep(tvbuff_t *tvb, packet_info *pinfo, proto_tree *aodv_tree,
const gchar *orig_addr_v6;
guint32 lifetime;
int extlen;
static const int * aodv_flags[] = {
static int * const aodv_flags[] = {
&hf_aodv_flags_rrep_repair,
&hf_aodv_flags_rrep_ack,
NULL
@ -382,7 +382,7 @@ dissect_aodv_rerr(tvbuff_t *tvb, packet_info *pinfo, proto_tree *aodv_tree,
proto_tree *aodv_unreach_dest_tree;
guint8 dest_count;
int i;
static const int * aodv_flags[] = {
static int * const aodv_flags[] = {
&hf_aodv_flags_rerr_nodelete,
NULL
};
@ -438,7 +438,7 @@ dissect_aodv_draft_01_v6_rreq(tvbuff_t *tvb, packet_info *pinfo,
const gchar *dest_addr_v6;
const gchar *orig_addr_v6;
int extlen;
static const int * aodv_flags[] = {
static int * const aodv_flags[] = {
&hf_aodv_flags_rreq_join,
&hf_aodv_flags_rreq_repair,
&hf_aodv_flags_rreq_gratuitous,
@ -515,7 +515,7 @@ dissect_aodv_draft_01_v6_rrep(tvbuff_t *tvb, packet_info *pinfo,
const gchar *orig_addr_v6;
guint32 lifetime;
int extlen;
static const int * aodv_flags[] = {
static int * const aodv_flags[] = {
&hf_aodv_flags_rrep_repair,
&hf_aodv_flags_rrep_ack,
NULL
@ -587,7 +587,7 @@ dissect_aodv_draft_01_v6_rerr(tvbuff_t *tvb, packet_info *pinfo,
proto_tree *aodv_unreach_dest_tree;
guint8 dest_count;
int i;
static const int * aodv_flags[] = {
static int * const aodv_flags[] = {
&hf_aodv_flags_rerr_nodelete,
NULL
};

View File

@ -2869,7 +2869,7 @@ static int hf_artnet_poll_target_port_bottom = -1;
static gint ett_artnet_poll_talktome = -1;
static const int *artnet_poll_talktome_fields[] = {
static int * const artnet_poll_talktome_fields[] = {
&hf_artnet_poll_talktome_reply_change,
&hf_artnet_poll_talktome_diag,
&hf_artnet_poll_talktome_diag_unicast,
@ -2988,7 +2988,7 @@ static int hf_artnet_poll_reply_good_input_dmx_sip = -1;
static int hf_artnet_poll_reply_good_input_dmx_test = -1;
static int hf_artnet_poll_reply_good_input_data = -1;
static const int *artnet_poll_reply_status_fields[] = {
static int * const artnet_poll_reply_status_fields[] = {
&hf_artnet_poll_reply_status_ubea_present,
&hf_artnet_poll_reply_status_rdm_supported,
&hf_artnet_poll_reply_status_rom_booted,
@ -2997,7 +2997,7 @@ static const int *artnet_poll_reply_status_fields[] = {
NULL
};
static const int *artnet_poll_reply_good_input_fields[] = {
static int * const artnet_poll_reply_good_input_fields[] = {
&hf_artnet_poll_reply_good_input_recv_error,
&hf_artnet_poll_reply_good_input_disabled,
&hf_artnet_poll_reply_good_input_dmx_text,
@ -3007,7 +3007,7 @@ static const int *artnet_poll_reply_good_input_fields[] = {
NULL
};
static const int *artnet_poll_reply_good_output_fields[] = {
static int * const artnet_poll_reply_good_output_fields[] = {
&hf_artnet_poll_reply_good_output_merge_ltp,
&hf_artnet_poll_reply_good_output_short,
&hf_artnet_poll_reply_good_output_merge_artnet,
@ -3018,7 +3018,7 @@ static const int *artnet_poll_reply_good_output_fields[] = {
NULL
};
static const int *artnet_poll_reply_status2_fields[] = {
static int * const artnet_poll_reply_status2_fields[] = {
&hf_artnet_poll_reply_status2_web_supported,
&hf_artnet_poll_reply_status2_dhcp_used,
&hf_artnet_poll_reply_status2_dhcp_supported,
@ -3059,13 +3059,13 @@ static int hf_artnet_address_command = -1;
static gint ett_artnet_address_netswitch = -1;
static gint ett_artnet_address_subswitch = -1;
static const int *artnet_address_netswitch_fields[] = {
static int * const artnet_address_netswitch_fields[] = {
&hf_artnet_address_netswitch_net,
&hf_artnet_address_netswitch_write,
NULL
};
static const int *artnet_address_subswitch_fields[] = {
static int * const artnet_address_subswitch_fields[] = {
&hf_artnet_address_subswitch_sub,
&hf_artnet_address_subswitch_write,
NULL
@ -3179,7 +3179,7 @@ static int hf_artnet_ip_prog_port = -1;
static gint ett_artnet_ip_prog_command = -1;
static const int *artnet_ip_prog_command_fields[] = {
static int * const artnet_ip_prog_command_fields[] = {
&hf_artnet_ip_prog_command_prog_port,
&hf_artnet_ip_prog_command_prog_sm,
&hf_artnet_ip_prog_command_prog_ip,
@ -3201,7 +3201,7 @@ static int hf_artnet_ip_prog_reply_status_dhcp_enable = -1;
static gint ett_artnet_ip_prog_reply_status = -1;
static const int *artnet_ip_prog_reply_status_fields[] = {
static int * const artnet_ip_prog_reply_status_fields[] = {
&hf_artnet_ip_prog_reply_status_unused,
&hf_artnet_ip_prog_reply_status_dhcp_enable,
NULL

View File

@ -3011,7 +3011,7 @@ static const string_string r3_snmortisenames [] =
{ NULL, NULL }
};
static const int * r3_timezonearray[] = {
static int * const r3_timezonearray[] = {
&hf_r3_timezonearray0,
&hf_r3_timezonearray1,
&hf_r3_timezonearray2,
@ -3047,7 +3047,7 @@ static const int * r3_timezonearray[] = {
NULL
};
static const int * r3_definetimezone_daymap[] = {
static int * const r3_definetimezone_daymap[] = {
&hf_r3_definetimezone_daymap0,
&hf_r3_definetimezone_daymap1,
&hf_r3_definetimezone_daymap2,
@ -3058,7 +3058,7 @@ static const int * r3_definetimezone_daymap[] = {
NULL
};
static const int * r3_nvramclearoptions[] = {
static int * const r3_nvramclearoptions[] = {
&hf_r3_nvramclearoptions0,
&hf_r3_nvramclearoptions1,
&hf_r3_nvramclearoptions2,
@ -4680,7 +4680,7 @@ dissect_r3_upstreammfgfield_peekpoke (tvbuff_t *tvb, guint32 start_offset, guint
static void
dissect_r3_upstreammfgfield_lockstate (tvbuff_t *tvb, guint32 start_offset, guint32 length _U_, packet_info *pinfo _U_, proto_tree *tree)
{
static const int * r3_lockstate_flags[] = {
static int * const r3_lockstate_flags[] = {
&hf_r3_lockstate_passage,
&hf_r3_lockstate_panic,
&hf_r3_lockstate_lockout,

View File

@ -1313,7 +1313,7 @@ dissect_ddp_zip(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data
guint i;
guint count;
static const int * zip_flags[] = {
static int * const zip_flags[] = {
&hf_zip_flags_zone_invalid,
&hf_zip_flags_use_broadcast,
&hf_zip_flags_only_one_zone,

View File

@ -709,7 +709,7 @@ dissect_atn_ulcs_EXTERNALt(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _
}
static const int * T_aarq_apdu_protocol_version_bits[] = {
static int * const T_aarq_apdu_protocol_version_bits[] = {
&hf_atn_ulcs_T_aarq_apdu_protocol_version_version1,
NULL
};
@ -935,7 +935,7 @@ dissect_atn_ulcs_AE_invocation_identifier(tvbuff_t *tvb _U_, int offset _U_, asn
}
static const int * ACSE_requirements_bits[] = {
static int * const ACSE_requirements_bits[] = {
&hf_atn_ulcs_ACSE_requirements_authentication,
&hf_atn_ulcs_ACSE_requirements_application_context_negotiation,
NULL
@ -1212,7 +1212,7 @@ dissect_atn_ulcs_AARQ_apdu(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _
}
static const int * T_aare_apdu_protocol_version_bits[] = {
static int * const T_aare_apdu_protocol_version_bits[] = {
&hf_atn_ulcs_T_aare_apdu_protocol_version_version1,
NULL
};

View File

@ -369,7 +369,7 @@ dissect_autosar_nm(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void
guint32 offset_ctrl_bit_vector = 1;
guint32 offset_src_node_id = 0;
static const int * control_bits_legacy[] = {
static int * const control_bits_legacy[] = {
&hf_autosar_nm_control_bit_vector_repeat_msg_req,
&hf_autosar_nm_control_bit_vector_nm_coord_id,
&hf_autosar_nm_control_bit_vector_nm_coord_sleep,
@ -380,7 +380,7 @@ dissect_autosar_nm(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void
NULL
};
static const int * control_bits[] = {
static int * const control_bits[] = {
&hf_autosar_nm_control_bit_vector_repeat_msg_req,
&hf_autosar_nm_control_bit_vector_reserved1,
&hf_autosar_nm_control_bit_vector_reserved2,

View File

@ -561,7 +561,7 @@ static proto_item *
add_awdl_version(tvbuff_t *tvb, int offset, proto_tree *tree) {
proto_item *version_item;
guint64 version;
static const int *fields[] = {
static int * const fields[] = {
&hf_awdl_version_major,
&hf_awdl_version_minor,
NULL
@ -609,7 +609,7 @@ awdl_tag_service_params(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree,
proto_tree *values_tree;
int offset = 0;
static const int *bitmask_fields[] = {
static int * const bitmask_fields[] = {
&hf_awdl_serviceparams_bitmask_0,
&hf_awdl_serviceparams_bitmask_1,
&hf_awdl_serviceparams_bitmask_2,
@ -645,7 +645,7 @@ awdl_tag_service_params(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree,
NULL
};
static const int *value_fields[] = {
static int * const value_fields[] = {
&hf_awdl_serviceparams_values_0,
&hf_awdl_serviceparams_values_1,
&hf_awdl_serviceparams_values_2,
@ -707,7 +707,7 @@ awdl_tag_channel_sequence(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tre
wmem_strbuf_t *strbuf;
int offset = 0;
static const int *flags_fields[] = {
static int * const flags_fields[] = {
&hf_awdl_channelseq_legacy_control_channel,
&hf_awdl_channelseq_legacy_bandwidth,
&hf_awdl_channelseq_legacy_band,
@ -924,7 +924,7 @@ awdl_tag_datapath_state(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree,
int offset = 0;
guint16 flags;
static const int *flags_fields[] = {
static int * const flags_fields[] = {
&hf_awdl_datastate_flags_0,
&hf_awdl_datastate_flags_1,
&hf_awdl_datastate_flags_2,
@ -944,7 +944,7 @@ awdl_tag_datapath_state(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree,
NULL
};
static const int *channel_map_fields[] = {
static int * const channel_map_fields[] = {
&hf_awdl_datastate_social_channel_map_6,
&hf_awdl_datastate_social_channel_map_44,
&hf_awdl_datastate_social_channel_map_149,
@ -952,7 +952,7 @@ awdl_tag_datapath_state(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree,
NULL
};
static const int *extflags_fields[] = {
static int * const extflags_fields[] = {
&hf_awdl_datastate_extflags_0,
&hf_awdl_datastate_extflags_1,
&hf_awdl_datastate_extflags_2,
@ -1057,7 +1057,7 @@ awdl_tag_ht_capabilities(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree
int offset = 0;
int tag_len = tvb_reported_length(tvb);
static const int *awdl_ht[] = {
static int * const awdl_ht[] = {
&hf_awdl_ht_ldpc_coding,
&hf_awdl_ht_chan_width,
&hf_awdl_ht_sm_pwsave,

View File

@ -305,7 +305,7 @@ static gint ett_bacnet_update_control = -1;
static dissector_handle_t bacnet_handle = NULL;
static const int * control_flags[] = {
static int * const control_flags[] = {
&hf_bacnet_control_net,
&hf_bacnet_control_res1,
&hf_bacnet_control_dest,
@ -317,7 +317,7 @@ static const int * control_flags[] = {
NULL
};
static const int * update_control_flags[] = {
static int * const update_control_flags[] = {
&hf_bacnet_update_control_remove,
&hf_bacnet_update_control_more_follows,
&hf_bacnet_update_control_clear_set2,
@ -329,7 +329,7 @@ static const int * update_control_flags[] = {
NULL
};
static const int * wrapper_control_flags[] = {
static int * const wrapper_control_flags[] = {
&hf_bacnet_wrapper_control_secured_by_router,
&hf_bacnet_wrapper_control_non_trusted_source,
&hf_bacnet_wrapper_control_do_not_decrypt,

View File

@ -213,7 +213,7 @@ static int dissect_bat_batman_v5(tvbuff_t *tvb, int offset, packet_info *pinfo,
struct batman_packet_v5 *batman_packeth;
guint32 old_orig, orig;
gint i;
static const int * batman_flags[] = {
static int * const batman_flags[] = {
&hf_bat_batman_flags_unidirectional,
&hf_bat_batman_flags_directlink,
NULL

View File

@ -757,20 +757,20 @@ static const value_string tvlv_tt_typenames[] = {
{0, NULL}
};
static const int * batman_v5_flags[] = {
static int * const batman_v5_flags[] = {
&hf_batadv_batman_flags_directlink,
&hf_batadv_batman_flags_vis_server,
NULL
};
static const int * batman_v9_flags[] = {
static int * const batman_v9_flags[] = {
&hf_batadv_batman_flags_directlink,
&hf_batadv_batman_flags_vis_server,
&hf_batadv_batman_flags_primaries_first_hop,
NULL
};
static const int * batman_v14_flags[] = {
static int * const batman_v14_flags[] = {
&hf_batadv_batman_flags_directlink,
&hf_batadv_batman_flags_vis_server,
&hf_batadv_batman_flags_primaries_first_hop,
@ -778,19 +778,19 @@ static const int * batman_v14_flags[] = {
NULL
};
static const int * unicast_frag_flags[] = {
static int * const unicast_frag_flags[] = {
&hf_batadv_unicast_frag_flags_head,
&hf_batadv_unicast_frag_flags_largetail,
NULL
};
static const int * tt_query_flags[] = {
static int * const tt_query_flags[] = {
&hf_batadv_tt_query_flags_type,
&hf_batadv_tt_query_flags_full_table,
NULL
};
static const int * tt_entry_flags[] = {
static int * const tt_entry_flags[] = {
&hf_batadv_tt_entry_flags_change_del,
&hf_batadv_tt_entry_flags_client_roam,
NULL
@ -1698,7 +1698,7 @@ static int dissect_batadv_iv_ogm_v15(tvbuff_t *tvb, int offset,
guint8 type, version;
struct iv_ogm_packet_v15 *iv_ogm_packeth;
tvbuff_t *next_tvb;
static const int * flags[] = {
static int * const flags[] = {
&hf_batadv_iv_ogm_flags_directlink,
&hf_batadv_iv_ogm_flags_primaries_first_hop,
&hf_batadv_iv_ogm_flags_not_best_next_hop,
@ -3998,7 +3998,7 @@ static int dissect_batadv_ogm2_v15(tvbuff_t *tvb, int offset,
guint8 type, version;
struct ogm2_packet_v15 *ogm2_packeth;
tvbuff_t *next_tvb;
static const int * flags[] = {
static int * const flags[] = {
NULL
};
@ -4318,7 +4318,7 @@ static void dissect_batadv_tvlv_v15_mcast(tvbuff_t *tvb, packet_info *pinfo,
proto_tree *tree, int offset,
guint8 version)
{
static const int * flags[] = {
static int * const flags[] = {
&hf_batadv_tvlv_mcast_flags_unsnoopables,
&hf_batadv_tvlv_mcast_flags_ipv4,
&hf_batadv_tvlv_mcast_flags_ipv6,
@ -4369,7 +4369,7 @@ static void dissect_batadv_tvlv_v15_roam(tvbuff_t *tvb, packet_info *pinfo,
proto_tree *tree, int offset,
guint8 version)
{
static const int * flags[] = {
static int * const flags[] = {
&hf_batadv_tvlv_vid_vlan,
&hf_batadv_tvlv_vid_tagged,
NULL
@ -4397,7 +4397,7 @@ static void dissect_batadv_tvlv_v15_tt(tvbuff_t *tvb, packet_info *pinfo,
guint16 num_vlan;
int i;
gint length_remaining;
static const int * flags[] = {
static int * const flags[] = {
&hf_batadv_tvlv_tt_flags_type,
&hf_batadv_tvlv_tt_flags_full_table,
NULL
@ -4510,7 +4510,7 @@ static int dissect_batadv_tvlv_v15_tt_vlan(tvbuff_t *tvb,
proto_tree *vlan_tree = NULL;
guint16 vid;
proto_item *ti = NULL;
static const int * flags[] = {
static int * const flags[] = {
&hf_batadv_tvlv_vid_vlan,
&hf_batadv_tvlv_vid_tagged,
NULL
@ -4546,14 +4546,14 @@ static int dissect_batadv_tvlv_v15_tt_change(tvbuff_t *tvb,
{
proto_tree *change_tree;
proto_item *ti;
static const int * flags[] = {
static int * const flags[] = {
&hf_batadv_tvlv_tt_change_flags_del,
&hf_batadv_tvlv_tt_change_flags_roam,
&hf_batadv_tvlv_tt_change_flags_wifi,
&hf_batadv_tvlv_tt_change_flags_isolate,
NULL
};
static const int * flags_vlan[] = {
static int * const flags_vlan[] = {
&hf_batadv_tvlv_vid_vlan,
&hf_batadv_tvlv_vid_tagged,
NULL

View File

@ -3953,7 +3953,7 @@ malformed:
/* 8.6 Encoding of a bitstring value */
int
dissect_ber_constrained_bitstring(gboolean implicit_tag, asn1_ctx_t *actx, proto_tree *parent_tree, tvbuff_t *tvb, int offset, gint32 min_len, gint32 max_len, const int **named_bits, int num_named_bits, gint hf_id, gint ett_id, tvbuff_t **out_tvb)
dissect_ber_constrained_bitstring(gboolean implicit_tag, asn1_ctx_t *actx, proto_tree *parent_tree, tvbuff_t *tvb, int offset, gint32 min_len, gint32 max_len, int * const *named_bits, int num_named_bits, gint hf_id, gint ett_id, tvbuff_t **out_tvb)
{
gint8 ber_class;
gboolean pc, ind;
@ -4070,12 +4070,12 @@ dissect_ber_constrained_bitstring(gboolean implicit_tag, asn1_ctx_t *actx, proto
// Process 8 bits at a time instead of 64, each field masks a
// single byte.
const int bit_offset = 8 * i;
const int** section_named_bits = named_bits + bit_offset;
int* const* section_named_bits = named_bits + bit_offset;
int* flags[9];
if (num_named_bits - bit_offset > 8) {
memcpy(&flags[0], named_bits + bit_offset, 8 * sizeof(int*));
flags[8] = NULL;
section_named_bits = (const int** )flags;
section_named_bits = (int* const*)flags;
}
// If less data is available than the number of named bits, then
@ -4128,7 +4128,7 @@ dissect_ber_constrained_bitstring(gboolean implicit_tag, asn1_ctx_t *actx, proto
int
dissect_ber_bitstring(gboolean implicit_tag, asn1_ctx_t *actx, proto_tree *parent_tree, tvbuff_t *tvb, int offset, const int **named_bits, gint num_named_bits, gint hf_id, gint ett_id, tvbuff_t **out_tvb)
dissect_ber_bitstring(gboolean implicit_tag, asn1_ctx_t *actx, proto_tree *parent_tree, tvbuff_t *tvb, int offset, int * const *named_bits, gint num_named_bits, gint hf_id, gint ett_id, tvbuff_t **out_tvb)
{
return dissect_ber_constrained_bitstring(implicit_tag, actx, parent_tree, tvb, offset, -1, -1, named_bits, num_named_bits, hf_id, ett_id, out_tvb);
}

View File

@ -169,8 +169,8 @@ WS_DLL_PUBLIC int dissect_ber_GeneralizedTime(gboolean implicit_tag, asn1_ctx_t
WS_DLL_PUBLIC int dissect_ber_UTCTime(gboolean implicit_tag, asn1_ctx_t *actx, proto_tree *tree, tvbuff_t *tvb, int offset, gint hf_id, char **datestrptr, guint32 *tvblen);
extern int dissect_ber_constrained_bitstring(gboolean implicit_tag, asn1_ctx_t *actx, proto_tree *parent_tree, tvbuff_t *tvb, int offset, gint32 min_len, gint32 max_len, const int **named_bits, int num_named_bits, gint hf_id, gint ett_id, tvbuff_t **out_tvb);
WS_DLL_PUBLIC int dissect_ber_bitstring(gboolean implicit_tag, asn1_ctx_t *actx, proto_tree *parent_tree, tvbuff_t *tvb, int offset, const int **named_bits, gint num_named_bits, gint hf_id, gint ett_id, tvbuff_t **out_tvb);
extern int dissect_ber_constrained_bitstring(gboolean implicit_tag, asn1_ctx_t *actx, proto_tree *parent_tree, tvbuff_t *tvb, int offset, gint32 min_len, gint32 max_len, int * const *named_bits, int num_named_bits, gint hf_id, gint ett_id, tvbuff_t **out_tvb);
WS_DLL_PUBLIC int dissect_ber_bitstring(gboolean implicit_tag, asn1_ctx_t *actx, proto_tree *parent_tree, tvbuff_t *tvb, int offset, int * const *named_bits, gint num_named_bits, gint hf_id, gint ett_id, tvbuff_t **out_tvb);
WS_DLL_PUBLIC
int call_ber_oid_callback(const char *oid, tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, void* data);

View File

@ -469,7 +469,7 @@ dissect_bfd_control(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* d
switch (bfd_version) {
case 0:
{
static const int * bfd_message_flags[] = {
static int * const bfd_message_flags[] = {
&hf_bfd_flags_h,
&hf_bfd_flags_d_v0,
&hf_bfd_flags_p_v0,
@ -482,7 +482,7 @@ dissect_bfd_control(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* d
case 1:
default:
{
static const int * bfd_message_flags[] = {
static int * const bfd_message_flags[] = {
&hf_bfd_flags_p,
&hf_bfd_flags_f,
&hf_bfd_flags_c,

View File

@ -1861,7 +1861,7 @@ static int hf_bgp_evpn_nlri_igmp_mc_flags_v3 = -1;
static int hf_bgp_evpn_nlri_igmp_mc_flags_ie = -1;
static int hf_bgp_evpn_nlri_igmp_mc_flags_reserved = -1;
static const int *evpn_nlri_igmp_mc_flags[] = {
static int * const evpn_nlri_igmp_mc_flags[] = {
&hf_bgp_evpn_nlri_igmp_mc_flags_v1,
&hf_bgp_evpn_nlri_igmp_mc_flags_v2,
&hf_bgp_evpn_nlri_igmp_mc_flags_v3,
@ -2421,7 +2421,7 @@ static int hf_bgp_ls_igp_te_metric_bandwidth_utilized = -1;
static int hf_bgp_ls_igp_te_metric_bandwidth_utilized_value = -1;
static int hf_bgp_ls_igp_te_metric_reserved = -1;
static const int *ls_igp_te_metric_flags[] = {
static int * const ls_igp_te_metric_flags[] = {
&hf_bgp_ls_igp_te_metric_flags_a,
&hf_bgp_ls_igp_te_metric_flags_reserved,
NULL
@ -2931,7 +2931,7 @@ decode_mcast_vpn_nlri_addresses(proto_tree *tree, tvbuff_t *tvb,
static void
decode_bgp_flow_spec_dec_operator(proto_tree *tree, tvbuff_t *tvb, gint offset)
{
static const int * flags[] = {
static int * const flags[] = {
&hf_bgp_flowspec_nlri_op_eol,
&hf_bgp_flowspec_nlri_op_and,
&hf_bgp_flowspec_nlri_op_val_len,
@ -3021,7 +3021,7 @@ decode_bgp_nlri_op_dec_value(proto_tree *parent_tree, proto_item *parent_item, t
static void
decode_bgp_flow_spec_bitmask_operator(proto_tree *tree, tvbuff_t *tvb, gint offset)
{
static const int * flags[] = {
static int * const flags[] = {
&hf_bgp_flowspec_nlri_op_eol,
&hf_bgp_flowspec_nlri_op_and,
&hf_bgp_flowspec_nlri_op_val_len,
@ -3048,7 +3048,7 @@ decode_bgp_nlri_op_tcpf_value(proto_tree *parent_tree, proto_item *parent_item,
guint8 shift_amount=0;
guint first_loop=0;
static const int * nlri_tcp_flags[] = {
static int * const nlri_tcp_flags[] = {
&hf_bgp_flowspec_nlri_tcp_flags_cwr,
&hf_bgp_flowspec_nlri_tcp_flags_ecn,
&hf_bgp_flowspec_nlri_tcp_flags_urg,
@ -3121,7 +3121,7 @@ decode_bgp_nlri_op_fflag_value(proto_tree *parent_tree, proto_item *parent_item,
guint8 shift_amount=0;
guint first_loop=0;
static const int * nlri_flags[] = {
static int * const nlri_flags[] = {
&hf_bgp_flowspec_nlri_fflag_lf,
&hf_bgp_flowspec_nlri_fflag_ff,
&hf_bgp_flowspec_nlri_fflag_isf,
@ -4308,7 +4308,7 @@ decode_link_state_attribute_tlv(proto_tree *tree, tvbuff_t *tvb, gint offset, pa
case BGP_NLRI_TLV_NODE_FLAG_BITS:
{
static const int * flags[] = {
static int * const flags[] = {
&hf_bgp_ls_node_flag_bits_overload,
&hf_bgp_ls_node_flag_bits_attached,
&hf_bgp_ls_node_flag_bits_external,
@ -4365,7 +4365,7 @@ decode_link_state_attribute_tlv(proto_tree *tree, tvbuff_t *tvb, gint offset, pa
|I |V |H | | | | | |
+--+--+--+--+--+--+--+--+
*/
static const int *sr_capabilities_flags[] = {
static int * const sr_capabilities_flags[] = {
&hf_bgp_ls_sr_tlv_capabilities_flags_i,
&hf_bgp_ls_sr_tlv_capabilities_flags_v,
&hf_bgp_ls_sr_tlv_capabilities_flags_h,
@ -4587,7 +4587,7 @@ decode_link_state_attribute_tlv(proto_tree *tree, tvbuff_t *tvb, gint offset, pa
break;
}
else {
static const int * nlri_flags[] = {
static int * const nlri_flags[] = {
&hf_bgp_ls_link_protection_type_extra_traffic,
&hf_bgp_ls_link_protection_type_unprotected,
&hf_bgp_ls_link_protection_type_shared,
@ -4614,7 +4614,7 @@ decode_link_state_attribute_tlv(proto_tree *tree, tvbuff_t *tvb, gint offset, pa
break;
case BGP_NLRI_TLV_MPLS_PROTOCOL_MASK:
{
static const int * flags[] = {
static int * const flags[] = {
&hf_bgp_ls_mpls_protocol_mask_flag_l,
&hf_bgp_ls_mpls_protocol_mask_flag_r,
NULL
@ -4703,7 +4703,7 @@ decode_link_state_attribute_tlv(proto_tree *tree, tvbuff_t *tvb, gint offset, pa
|F |B |V |L |S | | | |
+--+--+--+--+--+--+--+--+
*/
static const int *adj_sid_isis_flags[] = {
static int * const adj_sid_isis_flags[] = {
&hf_bgp_ls_sr_tlv_adjacency_sid_flags_fi,
&hf_bgp_ls_sr_tlv_adjacency_sid_flags_bi,
&hf_bgp_ls_sr_tlv_adjacency_sid_flags_vi,
@ -4717,7 +4717,7 @@ decode_link_state_attribute_tlv(proto_tree *tree, tvbuff_t *tvb, gint offset, pa
|B |V |L |S | | | | |
+--+--+--+--+--+--+--+--+
*/
static const int *adj_sid_ospf_flags[] = {
static int * const adj_sid_ospf_flags[] = {
&hf_bgp_ls_sr_tlv_adjacency_sid_flags_bo,
&hf_bgp_ls_sr_tlv_adjacency_sid_flags_vo,
&hf_bgp_ls_sr_tlv_adjacency_sid_flags_lo,
@ -4859,7 +4859,7 @@ decode_link_state_attribute_tlv(proto_tree *tree, tvbuff_t *tvb, gint offset, pa
|R |N |P |E |V |L | | |
+--+--+--+--+--+--+--+--+
*/
static const int *prefix_sid_isis_flags[] = {
static int * const prefix_sid_isis_flags[] = {
&hf_bgp_ls_sr_tlv_prefix_sid_flags_r,
&hf_bgp_ls_sr_tlv_prefix_sid_flags_n,
&hf_bgp_ls_sr_tlv_prefix_sid_flags_p,
@ -4874,7 +4874,7 @@ decode_link_state_attribute_tlv(proto_tree *tree, tvbuff_t *tvb, gint offset, pa
| |NP|M |E |V |L | | |
+--+--+--+--+--+--+--+--+
*/
static const int *prefix_sid_ospf_flags[] = {
static int * const prefix_sid_ospf_flags[] = {
&hf_bgp_ls_sr_tlv_prefix_sid_flags_np,
&hf_bgp_ls_sr_tlv_prefix_sid_flags_m,
&hf_bgp_ls_sr_tlv_prefix_sid_flags_e,
@ -6360,7 +6360,7 @@ dissect_bgp_capability_item(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo,
else {
int eclen = offset + clen;
static const int * timer_flags[] = {
static int * const timer_flags[] = {
&hf_bgp_cap_gr_timers_restart_flag,
&hf_bgp_cap_gr_timers_notification_flag,
&hf_bgp_cap_gr_timers_restart_time,
@ -6380,7 +6380,7 @@ dissect_bgp_capability_item(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo,
* read it until the TLV ends
*/
while (offset < eclen) {
static const int * flags[] = {
static int * const flags[] = {
&hf_bgp_cap_gr_flag_pfs,
NULL
};
@ -6532,7 +6532,7 @@ dissect_bgp_capability_item(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo,
offset += clen;
}
else {
static const int * bgpsec_flags[] = {
static int * const bgpsec_flags[] = {
&hf_bgp_cap_bgpsec_version,
&hf_bgp_cap_bgpsec_sendreceive,
&hf_bgp_cap_bgpsec_reserved,
@ -7050,7 +7050,7 @@ dissect_bgp_update_ext_com(proto_tree *parent_tree, tvbuff_t *tvb, guint16 tlen,
case BGP_EXT_COM_TYPE_HIGH_TR_QOS: /* QoS Marking [Thomas_Martin_Knoll] */
case BGP_EXT_COM_TYPE_HIGH_NTR_QOS: /* QoS Marking [Thomas_Martin_Knoll] */
{
static const int * qos_flags[] = {
static int * const qos_flags[] = {
&hf_bgp_ext_com_qos_flags_remarking,
&hf_bgp_ext_com_qos_flags_ignore_remarking,
&hf_bgp_ext_com_qos_flags_agg_marking,
@ -7077,7 +7077,7 @@ dissect_bgp_update_ext_com(proto_tree *parent_tree, tvbuff_t *tvb, guint16 tlen,
proto_item_set_text(community_item, "CoS Capability");
for (i=1; i < 8; i++) {
static const int * cos_flags[] = {
static int * const cos_flags[] = {
&hf_bgp_ext_com_cos_flags_be,
&hf_bgp_ext_com_cos_flags_ef,
&hf_bgp_ext_com_cos_flags_af,
@ -7148,7 +7148,7 @@ dissect_bgp_update_ext_com(proto_tree *parent_tree, tvbuff_t *tvb, guint16 tlen,
case BGP_EXT_COM_STYPE_EVPN_L2ATTR:
{
static const int *l2attr_flags[] = {
static int * const l2attr_flags[] = {
&hf_bgp_ext_com_evpn_l2attr_flag_reserved,
&hf_bgp_ext_com_evpn_l2attr_flag_ci,
&hf_bgp_ext_com_evpn_l2attr_flag_f,
@ -7169,7 +7169,7 @@ dissect_bgp_update_ext_com(proto_tree *parent_tree, tvbuff_t *tvb, guint16 tlen,
case BGP_EXT_COM_STYPE_EVPN_ETREE:
{
static const int *etree_flags[] = {
static int * const etree_flags[] = {
&hf_bgp_ext_com_evpn_etree_flag_reserved,
&hf_bgp_ext_com_evpn_etree_flag_l,
NULL
@ -7284,7 +7284,7 @@ dissect_bgp_update_ext_com(proto_tree *parent_tree, tvbuff_t *tvb, guint16 tlen,
case BGP_EXT_COM_STYPE_EXP_L2:
{
static const int * com_l2_flags[] = {
static int * const com_l2_flags[] = {
&hf_bgp_ext_com_l2_flag_d,
&hf_bgp_ext_com_l2_flag_z1,
&hf_bgp_ext_com_l2_flag_f,
@ -7303,7 +7303,7 @@ dissect_bgp_update_ext_com(proto_tree *parent_tree, tvbuff_t *tvb, guint16 tlen,
case BGP_EXT_COM_STYPE_EXP_ETREE:
{
static const int * com_etree_flags[] = {
static int * const com_etree_flags[] = {
&hf_bgp_ext_com_etree_flag_reserved,
&hf_bgp_ext_com_etree_flag_p,
&hf_bgp_ext_com_etree_flag_v,
@ -7696,7 +7696,7 @@ dissect_bgp_path_attr(proto_tree *subtree, tvbuff_t *tvb, guint16 path_attr_len,
guint8 asn_len = 0;
guint32 as_num;
static const int * path_flags[] = {
static int * const path_flags[] = {
&hf_bgp_update_path_attribute_flags_optional,
&hf_bgp_update_path_attribute_flags_transitive,
&hf_bgp_update_path_attribute_flags_partial,
@ -8299,19 +8299,19 @@ dissect_bgp_path_attr(proto_tree *subtree, tvbuff_t *tvb, guint16 path_attr_len,
switch (encaps_tunnel_subtype) {
case TUNNEL_SUBTLV_ENCAPSULATION:
{
static const int * vxlan_flags[] = {
static int * const vxlan_flags[] = {
&hf_bgp_update_encaps_tunnel_subtlv_vxlan_flags_valid_vnid,
&hf_bgp_update_encaps_tunnel_subtlv_vxlan_flags_valid_mac,
&hf_bgp_update_encaps_tunnel_subtlv_vxlan_flags_reserved,
NULL
};
static const int * vxlan_gpe_flags[] = {
static int * const vxlan_gpe_flags[] = {
&hf_bgp_update_encaps_tunnel_subtlv_vxlan_gpe_flags_version,
&hf_bgp_update_encaps_tunnel_subtlv_vxlan_gpe_flags_valid_vnid,
&hf_bgp_update_encaps_tunnel_subtlv_vxlan_gpe_flags_reserved,
NULL
};
static const int * nvgre_flags[] = {
static int * const nvgre_flags[] = {
&hf_bgp_update_encaps_tunnel_subtlv_nvgre_flags_valid_vnid,
&hf_bgp_update_encaps_tunnel_subtlv_nvgre_flags_valid_mac,
&hf_bgp_update_encaps_tunnel_subtlv_nvgre_flags_reserved,
@ -8382,7 +8382,7 @@ dissect_bgp_path_attr(proto_tree *subtree, tvbuff_t *tvb, guint16 path_attr_len,
break;
case TUNNEL_SUBTLV_BINDING_SID:
{
static const int * flags[] = {
static int * const flags[] = {
&hf_bgp_update_encaps_tunnel_subtlv_binding_sid_flags_specified,
&hf_bgp_update_encaps_tunnel_subtlv_binding_sid_flags_invalid,
&hf_bgp_update_encaps_tunnel_subtlv_binding_sid_flags_reserved,
@ -8418,7 +8418,7 @@ dissect_bgp_path_attr(proto_tree *subtree, tvbuff_t *tvb, guint16 path_attr_len,
break;
case TUNNEL_SUBTLV_SEGMENT_LIST:
{
static const int * flags[] = {
static int * const flags[] = {
&hf_bgp_update_encaps_tunnel_subtlv_segment_list_subtlv_flags_verification,
&hf_bgp_update_encaps_tunnel_subtlv_segment_list_subtlv_flags_algorithm,
&hf_bgp_update_encaps_tunnel_subtlv_segment_list_subtlv_flags_reserved,

View File

@ -569,7 +569,7 @@ dissect_bmp_peer_header(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, int
proto_item *ti;
proto_item *subtree;
static const int * peer_flags[] = {
static int * const peer_flags[] = {
&hf_peer_flags_ipv6,
&hf_peer_flags_post_policy,
&hf_peer_flags_as_path,
@ -577,7 +577,7 @@ dissect_bmp_peer_header(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, int
&hf_peer_flags_res,
NULL
};
static const int * peer_flags_loc_rib[] = {
static int * const peer_flags_loc_rib[] = {
&hf_peer_flags_loc_rib,
&hf_peer_flags_loc_rib_res,
NULL

View File

@ -341,13 +341,13 @@ dissect_bpdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboolean is_bp
proto_tree *cist_bridge_id_tree;
const char *sep;
static const int * bpdu_flags[] = {
static int * const bpdu_flags[] = {
&hf_bpdu_flags_tcack,
&hf_bpdu_flags_tc,
NULL
};
static const int * rst_flags[] = {
static int * const rst_flags[] = {
&hf_bpdu_flags_tcack,
&hf_bpdu_flags_agreement,
&hf_bpdu_flags_forwarding,
@ -924,7 +924,7 @@ dissect_bpdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboolean is_bp
/* version 4 length is 55 or more.
*/
if (version_4_length >= 53) {
static const int * agreements[] = {
static int * const agreements[] = {
&hf_bpdu_flags_agree_num,
&hf_bpdu_flags_dagree_num,
&hf_bpdu_flags_agree_valid,

View File

@ -129,7 +129,7 @@ static const true_false_string tfs_error_ctrl = {
static void
dissect_brdwlk_err(proto_tree *parent_tree, tvbuff_t *tvb, int offset)
{
static const int * flags[] = {
static int * const flags[] = {
&hf_brdwlk_error_plp,
&hf_brdwlk_error_ef,
&hf_brdwlk_error_nd,

View File

@ -2677,7 +2677,7 @@ de_bssgp_list_of_setup_pfcs(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo,
/*
* 11.3.84 Extended Feature Bitmap
*/
static const int *bssgp_ext_feature_bitmap_fields[] = {
static int * const bssgp_ext_feature_bitmap_fields[] = {
&hf_bssgp_eDRX,
&hf_bssgp_dcn,
&hf_bssgp_ec_gsm_iot,
@ -3436,7 +3436,7 @@ static guint16
de_bssgp_pri_class_ind(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo _U_, guint32 offset, guint len _U_, gchar *add_string _U_, int string_len _U_)
{
guint32 curr_offset;
const int* bssgp_prio_class_flags[] = {
static int* const bssgp_prio_class_flags[] = {
&hf_bssgp_prio_class_flag_b0,
NULL
};

View File

@ -1186,14 +1186,14 @@ static int hf_response_in_frame = -1;
static int btatt_tap_handles = -1;
static const int *hfx_btatt_opcode[] = {
static int * const hfx_btatt_opcode[] = {
&hf_btatt_opcode_authentication_signature,
&hf_btatt_opcode_command,
&hf_btatt_opcode_method,
NULL
};
static const int *hfx_btatt_characteristic_properties[] = {
static int * const hfx_btatt_characteristic_properties[] = {
&hf_btatt_characteristic_properties_extended_properties,
&hf_btatt_characteristic_properties_authenticated_signed_writes,
&hf_btatt_characteristic_properties_indicate,
@ -1205,106 +1205,106 @@ static const int *hfx_btatt_characteristic_properties[] = {
NULL
};
static const int *hfx_btatt_characteristic_configuration_client[] = {
static int * const hfx_btatt_characteristic_configuration_client[] = {
&hf_btatt_characteristic_configuration_client_reserved,
&hf_btatt_characteristic_configuration_client_indication,
&hf_btatt_characteristic_configuration_client_notification,
NULL
};
static const int *hfx_btatt_characteristic_configuration_server[] = {
static int * const hfx_btatt_characteristic_configuration_server[] = {
&hf_btatt_characteristic_configuration_server_reserved,
&hf_btatt_characteristic_configuration_server_broadcast,
NULL
};
static const int *hfx_btatt_hogp_flags[] = {
static int * const hfx_btatt_hogp_flags[] = {
&hf_btatt_hogp_flags_reserved,
&hf_btatt_hogp_flags_normally_connectable,
&hf_btatt_hogp_flags_remote_wake,
NULL
};
static const int *hfx_btatt_characteristic_extended_properties[] = {
static int * const hfx_btatt_characteristic_extended_properties[] = {
&hf_btatt_characteristic_extended_properties_reserved,
&hf_btatt_characteristic_extended_properties_writable_auxiliaries,
&hf_btatt_characteristic_extended_properties_reliable_write,
NULL
};
static const int *hfx_btatt_appearance[] = {
static int * const hfx_btatt_appearance[] = {
&hf_btatt_appearance_category,
&hf_btatt_appearance_subcategory,
NULL
};
static const int *hfx_btatt_appearance_watch[] = {
static int * const hfx_btatt_appearance_watch[] = {
&hf_btatt_appearance_category,
&hf_btatt_appearance_subcategory_watch,
NULL
};
static const int *hfx_btatt_appearance_thermometer[] = {
static int * const hfx_btatt_appearance_thermometer[] = {
&hf_btatt_appearance_category,
&hf_btatt_appearance_subcategory_thermometer,
NULL
};
static const int *hfx_btatt_appearance_heart_rate[] = {
static int * const hfx_btatt_appearance_heart_rate[] = {
&hf_btatt_appearance_category,
&hf_btatt_appearance_subcategory_heart_rate,
NULL
};
static const int *hfx_btatt_appearance_blood_pressure[] = {
static int * const hfx_btatt_appearance_blood_pressure[] = {
&hf_btatt_appearance_category,
&hf_btatt_appearance_subcategory_blood_pressure,
NULL
};
static const int *hfx_btatt_appearance_hid[] = {
static int * const hfx_btatt_appearance_hid[] = {
&hf_btatt_appearance_category,
&hf_btatt_appearance_subcategory_hid,
NULL
};
static const int *hfx_btatt_appearance_running_walking_sensor[] = {
static int * const hfx_btatt_appearance_running_walking_sensor[] = {
&hf_btatt_appearance_category,
&hf_btatt_appearance_subcategory_running_walking_sensor,
NULL
};
static const int *hfx_btatt_appearance_cycling[] = {
static int * const hfx_btatt_appearance_cycling[] = {
&hf_btatt_appearance_category,
&hf_btatt_appearance_subcategory_cycling,
NULL
};
static const int *hfx_btatt_appearance_pulse_oximeter[] = {
static int * const hfx_btatt_appearance_pulse_oximeter[] = {
&hf_btatt_appearance_category,
&hf_btatt_appearance_subcategory_pulse_oximeter,
NULL
};
static const int *hfx_btatt_appearance_personal_mobility_device[] = {
static int * const hfx_btatt_appearance_personal_mobility_device[] = {
&hf_btatt_appearance_category,
&hf_btatt_appearance_subcategory_personal_mobility_device,
NULL
};
static const int *hfx_btatt_appearance_insulin_pump[] = {
static int * const hfx_btatt_appearance_insulin_pump[] = {
&hf_btatt_appearance_category,
&hf_btatt_appearance_subcategory_insulin_pump,
NULL
};
static const int *hfx_btatt_appearance_outdoor_sports_activity[] = {
static int * const hfx_btatt_appearance_outdoor_sports_activity[] = {
&hf_btatt_appearance_category,
&hf_btatt_appearance_subcategory_outdoor_sports_activity,
NULL
};
static const int *hfx_btatt_time_adjust_reason[] = {
static int * const hfx_btatt_time_adjust_reason[] = {
&hf_btatt_time_adjust_reason_reserved,
&hf_btatt_time_adjust_reason_change_of_dst,
&hf_btatt_time_adjust_reason_change_of_timezone,
@ -1313,7 +1313,7 @@ static const int *hfx_btatt_time_adjust_reason[] = {
NULL
};
static const int *hfx_btatt_alert_status[] = {
static int * const hfx_btatt_alert_status[] = {
&hf_btatt_alert_status_reserved,
&hf_btatt_alert_status_display_alert_status,
&hf_btatt_alert_status_vibrate_state,
@ -1321,7 +1321,7 @@ static const int *hfx_btatt_alert_status[] = {
NULL
};
static const int *hfx_btatt_alert_category_id_bitmask_1[] = {
static int * const hfx_btatt_alert_category_id_bitmask_1[] = {
&hf_btatt_alert_category_id_bitmask_1_schedule,
&hf_btatt_alert_category_id_bitmask_1_voice_mail,
&hf_btatt_alert_category_id_bitmask_1_sms_mms,
@ -1333,14 +1333,14 @@ static const int *hfx_btatt_alert_category_id_bitmask_1[] = {
NULL
};
static const int *hfx_btatt_alert_category_id_bitmask_2[] = {
static int * const hfx_btatt_alert_category_id_bitmask_2[] = {
&hf_btatt_alert_category_id_bitmask_2_reserved,
&hf_btatt_alert_category_id_bitmask_2_instant_message,
&hf_btatt_alert_category_id_bitmask_2_high_prioritized_alert,
NULL
};
static const int *hfx_btatt_blood_pressure_feature[] = {
static int * const hfx_btatt_blood_pressure_feature[] = {
&hf_btatt_blood_pressure_feature_reserved,
&hf_btatt_blood_pressure_feature_multiple_bond,
&hf_btatt_blood_pressure_feature_measurement_position_detection,
@ -1351,7 +1351,7 @@ static const int *hfx_btatt_blood_pressure_feature[] = {
NULL
};
static const int *hfx_btatt_glucose_feature[] = {
static int * const hfx_btatt_glucose_feature[] = {
&hf_btatt_glucose_feature_reserved,
&hf_btatt_glucose_feature_multiple_bond,
&hf_btatt_glucose_feature_time_fault,
@ -1367,7 +1367,7 @@ static const int *hfx_btatt_glucose_feature[] = {
NULL
};
static const int *hfx_btatt_rsc_feature[] = {
static int * const hfx_btatt_rsc_feature[] = {
&hf_btatt_rsc_feature_reserved,
&hf_btatt_rsc_feature_multiple_sensor_locations,
&hf_btatt_rsc_feature_calibration_procedure,
@ -1377,7 +1377,7 @@ static const int *hfx_btatt_rsc_feature[] = {
NULL
};
static const int *hfx_btatt_csc_feature[] = {
static int * const hfx_btatt_csc_feature[] = {
&hf_btatt_csc_feature_reserved,
&hf_btatt_csc_feature_multiple_sensor_locations,
&hf_btatt_csc_feature_crank_revolution_data,
@ -1385,7 +1385,7 @@ static const int *hfx_btatt_csc_feature[] = {
NULL
};
static const int *hfx_btatt_descriptor_value_changed_flags[] = {
static int * const hfx_btatt_descriptor_value_changed_flags[] = {
&hf_btatt_descriptor_value_changed_flags_reserved,
&hf_btatt_descriptor_value_changed_flags_change_to_characteristic_user_description_descriptor,
&hf_btatt_descriptor_value_changed_flags_change_to_es_measurement_descriptor,
@ -1395,7 +1395,7 @@ static const int *hfx_btatt_descriptor_value_changed_flags[] = {
NULL
};
static const int *hfx_btatt_cycling_power_feature[] = {
static int * const hfx_btatt_cycling_power_feature[] = {
&hf_btatt_cycling_power_feature_reserved,
&hf_btatt_cycling_power_feature_factory_calibration_date,
&hf_btatt_cycling_power_feature_instantaneous_measurement_direction,
@ -1419,7 +1419,7 @@ static const int *hfx_btatt_cycling_power_feature[] = {
NULL
};
static const int *hfx_btatt_ln_feature[] = {
static int * const hfx_btatt_ln_feature[] = {
&hf_btatt_ln_feature_reserved,
&hf_btatt_ln_feature_position_status,
&hf_btatt_ln_feature_elevation_setting,
@ -1445,7 +1445,7 @@ static const int *hfx_btatt_ln_feature[] = {
NULL
};
static const int *hfx_btatt_body_composition_feature[] = {
static int * const hfx_btatt_body_composition_feature[] = {
&hf_btatt_body_composition_feature_reserved,
&hf_btatt_body_composition_feature_height_measurement_resolution,
&hf_btatt_body_composition_feature_mass_measurement_resolution,
@ -1463,7 +1463,7 @@ static const int *hfx_btatt_body_composition_feature[] = {
NULL
};
static const int *hfx_btatt_weight_scale_feature[] = {
static int * const hfx_btatt_weight_scale_feature[] = {
&hf_btatt_weight_scale_feature_reserved,
&hf_btatt_weight_scale_feature_height_measurement_resolution,
&hf_btatt_weight_scale_feature_weight_measurement_resolution,
@ -1473,7 +1473,7 @@ static const int *hfx_btatt_weight_scale_feature[] = {
NULL
};
static const int *hfx_btatt_glucose_measurement_flags[] = {
static int * const hfx_btatt_glucose_measurement_flags[] = {
&hf_btatt_glucose_measurement_flags_reserved,
&hf_btatt_glucose_measurement_flags_context_information_follows,
&hf_btatt_glucose_measurement_flags_sensor_status_annunciation_present,
@ -1483,13 +1483,13 @@ static const int *hfx_btatt_glucose_measurement_flags[] = {
NULL
};
static const int *hfx_btatt_glucose_measurement_type_and_sample_location[] = {
static int * const hfx_btatt_glucose_measurement_type_and_sample_location[] = {
&hf_btatt_glucose_measurement_type_and_sample_location_type,
&hf_btatt_glucose_measurement_type_and_sample_location_sample_location,
NULL
};
static const int *hfx_btatt_glucose_measurement_sensor_status_annunciation[] = {
static int * const hfx_btatt_glucose_measurement_sensor_status_annunciation[] = {
&hf_btatt_glucose_measurement_sensor_status_annunciation_reserved,
&hf_btatt_glucose_measurement_sensor_status_annunciation_time_fault,
&hf_btatt_glucose_measurement_sensor_status_annunciation_general_fault,
@ -1506,7 +1506,7 @@ static const int *hfx_btatt_glucose_measurement_sensor_status_annunciation[] = {
NULL
};
static const int *hfx_btatt_bond_management_feature[] = {
static int * const hfx_btatt_bond_management_feature[] = {
&hf_btatt_bond_management_feature_feature_extension,
&hf_btatt_bond_management_feature_reserved,
&hf_btatt_bond_management_feature_identify_yourself,
@ -1531,13 +1531,13 @@ static const int *hfx_btatt_bond_management_feature[] = {
NULL
};
static const int *hfx_btatt_bond_management_feature_nth[] = {
static int * const hfx_btatt_bond_management_feature_nth[] = {
&hf_btatt_bond_management_feature_nth_feature_extension,
&hf_btatt_bond_management_feature_nth_reserved,
NULL
};
static const int *hfx_btatt_temperature_measurement_flags[] = {
static int * const hfx_btatt_temperature_measurement_flags[] = {
&hf_btatt_temperature_measurement_flags_reserved,
&hf_btatt_temperature_measurement_flags_temperature_type,
&hf_btatt_temperature_measurement_flags_timestamp,
@ -1545,7 +1545,7 @@ static const int *hfx_btatt_temperature_measurement_flags[] = {
NULL
};
static const int *hfx_btatt_glucose_measurement_context_flags[] = {
static int * const hfx_btatt_glucose_measurement_context_flags[] = {
&hf_btatt_glucose_measurement_context_flags_extended_flags,
&hf_btatt_glucose_measurement_context_flags_hba1c,
&hf_btatt_glucose_measurement_context_flags_medication_value_units,
@ -1557,18 +1557,18 @@ static const int *hfx_btatt_glucose_measurement_context_flags[] = {
NULL
};
static const int *hfx_btatt_glucose_measurement_context_extended_flags[] = {
static int * const hfx_btatt_glucose_measurement_context_extended_flags[] = {
&hf_btatt_glucose_measurement_context_extended_flags_reserved,
NULL
};
static const int *hfx_btatt_glucose_measurement_context_tester_health[] = {
static int * const hfx_btatt_glucose_measurement_context_tester_health[] = {
&hf_btatt_glucose_measurement_context_tester,
&hf_btatt_glucose_measurement_context_health,
NULL
};
static const int *hfx_btatt_blood_pressure_measurement_flags[] = {
static int * const hfx_btatt_blood_pressure_measurement_flags[] = {
&hf_btatt_blood_pressure_measurement_flags_reserved,
&hf_btatt_blood_pressure_measurement_flags_measurement_status,
&hf_btatt_blood_pressure_measurement_flags_user_id,
@ -1578,7 +1578,7 @@ static const int *hfx_btatt_blood_pressure_measurement_flags[] = {
NULL
};
static const int *hfx_btatt_blood_pressure_measurement_status[] = {
static int * const hfx_btatt_blood_pressure_measurement_status[] = {
&hf_btatt_blood_pressure_measurement_status_reserved,
&hf_btatt_blood_pressure_measurement_status_improper_measurement_position,
&hf_btatt_blood_pressure_measurement_status_pulse_rate_range_detection,
@ -1588,7 +1588,7 @@ static const int *hfx_btatt_blood_pressure_measurement_status[] = {
NULL
};
static const int *hfx_btatt_heart_rate_measurement_flags[] = {
static int * const hfx_btatt_heart_rate_measurement_flags[] = {
&hf_btatt_heart_rate_measurement_flags_reserved,
&hf_btatt_heart_rate_measurement_flags_rr_interval,
&hf_btatt_heart_rate_measurement_flags_energy_expended,
@ -1598,7 +1598,7 @@ static const int *hfx_btatt_heart_rate_measurement_flags[] = {
NULL
};
static const int *hfx_btatt_uncertainty[] = {
static int * const hfx_btatt_uncertainty[] = {
&hf_btatt_uncertainty_reserved,
&hf_btatt_uncertainty_precision,
&hf_btatt_uncertainty_update_time,
@ -1606,7 +1606,7 @@ static const int *hfx_btatt_uncertainty[] = {
NULL
};
static const int *hfx_btatt_indoor_positioning_configuration[] = {
static int * const hfx_btatt_indoor_positioning_configuration[] = {
&hf_btatt_indoor_positioning_configuration_reserved,
&hf_btatt_indoor_positioning_configuration_location_name,
&hf_btatt_indoor_positioning_configuration_uncertainty,
@ -1618,7 +1618,7 @@ static const int *hfx_btatt_indoor_positioning_configuration[] = {
NULL
};
static const int *hfx_btatt_rsc_measurement_flags[] = {
static int * const hfx_btatt_rsc_measurement_flags[] = {
&hf_btatt_rsc_measurement_flags_reserved,
&hf_btatt_rsc_measurement_flags_type_of_movement,
&hf_btatt_rsc_measurement_flags_total_distance_present,
@ -1626,7 +1626,7 @@ static const int *hfx_btatt_rsc_measurement_flags[] = {
NULL
};
static const int *hfx_btatt_cycling_power_measurement_flags[] = {
static int * const hfx_btatt_cycling_power_measurement_flags[] = {
&hf_btatt_cycling_power_measurement_flags_reserved,
&hf_btatt_cycling_power_measurement_flags_offset_compensation_indicator,
&hf_btatt_cycling_power_measurement_flags_accumulated_energy,
@ -1644,20 +1644,20 @@ static const int *hfx_btatt_cycling_power_measurement_flags[] = {
NULL
};
static const int *hfx_btatt_cycling_power_measurement_extreme_angles[] = {
static int * const hfx_btatt_cycling_power_measurement_extreme_angles[] = {
&hf_btatt_cycling_power_measurement_extreme_angles_maximum,
&hf_btatt_cycling_power_measurement_extreme_angles_minimum,
NULL
};
static const int *hfx_btatt_csc_measurement_flags[] = {
static int * const hfx_btatt_csc_measurement_flags[] = {
&hf_btatt_csc_measurement_flags_reserved,
&hf_btatt_csc_measurement_flags_crank_revolution_data,
&hf_btatt_csc_measurement_flags_wheel_revolution_data,
NULL
};
static const int *hfx_btatt_cycling_power_vector_flags[] = {
static int * const hfx_btatt_cycling_power_vector_flags[] = {
&hf_btatt_cycling_power_vector_flags_reserved,
&hf_btatt_cycling_power_vector_flags_instantaneous_measurement_direction,
&hf_btatt_cycling_power_vector_flags_instantaneous_torque_magnitude_array,
@ -1667,7 +1667,7 @@ static const int *hfx_btatt_cycling_power_vector_flags[] = {
NULL
};
static const int *hfx_btatt_cycling_power_control_point_content_mask[] = {
static int * const hfx_btatt_cycling_power_control_point_content_mask[] = {
&hf_btatt_cycling_power_control_point_content_mask_reserved,
&hf_btatt_cycling_power_control_point_content_mask_accumulated_energy,
&hf_btatt_cycling_power_control_point_content_mask_bottom_dead_spot_angle,
@ -1681,7 +1681,7 @@ static const int *hfx_btatt_cycling_power_control_point_content_mask[] = {
NULL
};
static const int *hfx_btatt_location_and_speed_flags[] = {
static int * const hfx_btatt_location_and_speed_flags[] = {
&hf_btatt_location_and_speed_flags_reserved,
&hf_btatt_location_and_speed_flags_heading_source,
&hf_btatt_location_and_speed_flags_elevation_source,
@ -1697,7 +1697,7 @@ static const int *hfx_btatt_location_and_speed_flags[] = {
NULL
};
static const int *hfx_btatt_navigation_flags[] = {
static int * const hfx_btatt_navigation_flags[] = {
&hf_btatt_navigation_flags_reserved,
&hf_btatt_navigation_flags_destination_reached,
&hf_btatt_navigation_flags_waypoint_reached,
@ -1710,7 +1710,7 @@ static const int *hfx_btatt_navigation_flags[] = {
NULL
};
static const int *hfx_btatt_position_quality_flags[] = {
static int * const hfx_btatt_position_quality_flags[] = {
&hf_btatt_position_quality_flags_reserved,
&hf_btatt_position_quality_flags_position_status,
&hf_btatt_position_quality_flags_vdop,
@ -1723,7 +1723,7 @@ static const int *hfx_btatt_position_quality_flags[] = {
NULL
};
static const int *hfx_btatt_ln_control_point_content_mask[] = {
static int * const hfx_btatt_ln_control_point_content_mask[] = {
&hf_btatt_ln_control_point_content_mask_reserved,
&hf_btatt_ln_control_point_content_mask_utc_time,
&hf_btatt_ln_control_point_content_mask_rolling_time,
@ -1735,7 +1735,7 @@ static const int *hfx_btatt_ln_control_point_content_mask[] = {
NULL
};
static const int *hfx_btatt_body_composition_measurement_flags[] = {
static int * const hfx_btatt_body_composition_measurement_flags[] = {
&hf_btatt_body_composition_measurement_flags_reserved,
&hf_btatt_body_composition_measurement_flags_multiple_packet_measurement,
&hf_btatt_body_composition_measurement_flags_height,
@ -1753,7 +1753,7 @@ static const int *hfx_btatt_body_composition_measurement_flags[] = {
NULL
};
static const int *hfx_btatt_weight_measurement_flags[] = {
static int * const hfx_btatt_weight_measurement_flags[] = {
&hf_btatt_weight_measurement_flags_reserved,
&hf_btatt_weight_measurement_flags_bmi_and_height,
&hf_btatt_weight_measurement_flags_user_id,
@ -1762,7 +1762,7 @@ static const int *hfx_btatt_weight_measurement_flags[] = {
NULL
};
static const int *hfx_btatt_cgm_measurement_flags[] = {
static int * const hfx_btatt_cgm_measurement_flags[] = {
&hf_btatt_cgm_measurement_flags_cgm_trend_information,
&hf_btatt_cgm_measurement_flags_cgm_quality,
&hf_btatt_cgm_measurement_flags_reserved,
@ -1772,7 +1772,7 @@ static const int *hfx_btatt_cgm_measurement_flags[] = {
NULL
};
static const int *hfx_btatt_cgm_sensor_status_annunciation_status[] = {
static int * const hfx_btatt_cgm_sensor_status_annunciation_status[] = {
&hf_btatt_cgm_sensor_status_annunciation_status_reserved,
&hf_btatt_cgm_sensor_status_annunciation_status_general_device_fault_has_occurred_in_the_sensor,
&hf_btatt_cgm_sensor_status_annunciation_status_device_specific_alert,
@ -1783,7 +1783,7 @@ static const int *hfx_btatt_cgm_sensor_status_annunciation_status[] = {
NULL
};
static const int *hfx_btatt_cgm_sensor_status_annunciation_cal_temp[] = {
static int * const hfx_btatt_cgm_sensor_status_annunciation_cal_temp[] = {
&hf_btatt_cgm_sensor_status_annunciation_cal_temp_reserved,
&hf_btatt_cgm_sensor_status_annunciation_cal_temp_sensor_temperature_too_low_for_valid_test_result_at_time_of_measurement,
&hf_btatt_cgm_sensor_status_annunciation_cal_temp_sensor_temperature_too_high_for_valid_test_result_at_time_of_measurement,
@ -1794,7 +1794,7 @@ static const int *hfx_btatt_cgm_sensor_status_annunciation_cal_temp[] = {
NULL
};
static const int *hfx_btatt_cgm_sensor_status_annunciation_warning[] = {
static int * const hfx_btatt_cgm_sensor_status_annunciation_warning[] = {
&hf_btatt_cgm_sensor_status_annunciation_warning_sensor_result_higher_than_the_device_can_process,
&hf_btatt_cgm_sensor_status_annunciation_warning_sensor_result_lower_than_the_device_can_process,
&hf_btatt_cgm_sensor_status_annunciation_warning_sensor_rate_of_increase_exceeded,
@ -1806,7 +1806,7 @@ static const int *hfx_btatt_cgm_sensor_status_annunciation_warning[] = {
NULL
};
static const int *hfx_btatt_cgm_feature_feature[] = {
static int * const hfx_btatt_cgm_feature_feature[] = {
&hf_btatt_cgm_feature_feature_reserved,
&hf_btatt_cgm_feature_feature_quality,
&hf_btatt_cgm_feature_feature_trend_information,
@ -1828,13 +1828,13 @@ static const int *hfx_btatt_cgm_feature_feature[] = {
NULL
};
static const int *hfx_btatt_cgm_type_and_sample_location[] = {
static int * const hfx_btatt_cgm_type_and_sample_location[] = {
&hf_btatt_cgm_type,
&hf_btatt_cgm_sample_location,
NULL
};
static const int *hfx_btatt_cgm_specific_ops_control_point_calibration_status[] = {
static int * const hfx_btatt_cgm_specific_ops_control_point_calibration_status[] = {
&hf_btatt_cgm_specific_ops_control_point_calibration_status_reserved,
&hf_btatt_cgm_specific_ops_control_point_calibration_status_pending,
&hf_btatt_cgm_specific_ops_control_point_calibration_status_out_of_range,
@ -1842,7 +1842,7 @@ static const int *hfx_btatt_cgm_specific_ops_control_point_calibration_status[]
NULL
};
static const int *hfx_btatt_http_data_status[] = {
static int * const hfx_btatt_http_data_status[] = {
&hf_btatt_http_data_status_reserved,
&hf_btatt_http_data_status_body_truncated,
&hf_btatt_http_data_status_body_received,
@ -1851,7 +1851,7 @@ static const int *hfx_btatt_http_data_status[] = {
NULL
};
static const int *hfx_btatt_ots_feature_oacp[] = {
static int * const hfx_btatt_ots_feature_oacp[] = {
&hf_btatt_ots_feature_oacp_reserved,
&hf_btatt_ots_feature_oacp_abort,
&hf_btatt_ots_feature_oacp_patching_of_object,
@ -1866,7 +1866,7 @@ static const int *hfx_btatt_ots_feature_oacp[] = {
NULL
};
static const int *hfx_btatt_ots_feature_olcp[] = {
static int * const hfx_btatt_ots_feature_olcp[] = {
&hf_btatt_ots_feature_olcp_reserved,
&hf_btatt_ots_feature_olcp_clear_marking,
&hf_btatt_ots_feature_olcp_request_number_of_objects,
@ -1875,7 +1875,7 @@ static const int *hfx_btatt_ots_feature_olcp[] = {
NULL
};
static const int *hfx_btatt_ots_properties[] = {
static int * const hfx_btatt_ots_properties[] = {
&hf_btatt_ots_properties_reserved,
&hf_btatt_ots_properties_mark,
&hf_btatt_ots_properties_patch,
@ -1889,7 +1889,7 @@ static const int *hfx_btatt_ots_properties[] = {
};
static const int *hfx_btatt_ots_flags[] = {
static int * const hfx_btatt_ots_flags[] = {
&hf_btatt_ots_flags_reserved,
&hf_btatt_ots_flags_object_deletion,
&hf_btatt_ots_flags_object_creation,
@ -1899,7 +1899,7 @@ static const int *hfx_btatt_ots_flags[] = {
NULL
};
static const int *hfx_btatt_plx_spot_check_measurement_flags[] = {
static int * const hfx_btatt_plx_spot_check_measurement_flags[] = {
&hf_btatt_plx_spot_check_measurement_flags_reserved,
&hf_btatt_plx_spot_check_measurement_flags_device_clock_is_not_set,
&hf_btatt_plx_spot_check_measurement_flags_pulse_amplitude_index,
@ -1909,7 +1909,7 @@ static const int *hfx_btatt_plx_spot_check_measurement_flags[] = {
NULL
};
static const int *hfx_btatt_plx_measurement_status[] = {
static int * const hfx_btatt_plx_measurement_status[] = {
&hf_btatt_plx_measurement_status_invalid_measurement_detected,
&hf_btatt_plx_measurement_status_questionable_measurement_detected,
&hf_btatt_plx_measurement_status_measurement_unavailable,
@ -1925,7 +1925,7 @@ static const int *hfx_btatt_plx_measurement_status[] = {
NULL
};
static const int *hfx_btatt_plx_device_and_sensor_status[] = {
static int * const hfx_btatt_plx_device_and_sensor_status[] = {
&hf_btatt_plx_device_and_sensor_status_reserved,
&hf_btatt_plx_device_and_sensor_status_sensor_disconnected,
&hf_btatt_plx_device_and_sensor_status_sensor_malfunctioning,
@ -1946,7 +1946,7 @@ static const int *hfx_btatt_plx_device_and_sensor_status[] = {
NULL
};
static const int *hfx_btatt_plx_continuous_measurement_flags[] = {
static int * const hfx_btatt_plx_continuous_measurement_flags[] = {
&hf_btatt_plx_continuous_measurement_flags_reserved,
&hf_btatt_plx_continuous_measurement_flags_pulse_amplitude_index,
&hf_btatt_plx_continuous_measurement_flags_device_and_sensor_status,
@ -1956,7 +1956,7 @@ static const int *hfx_btatt_plx_continuous_measurement_flags[] = {
NULL
};
static const int *hfx_btatt_plx_features_supported_features[] = {
static int * const hfx_btatt_plx_features_supported_features[] = {
&hf_btatt_plx_features_supported_features_reserved,
&hf_btatt_plx_features_supported_features_multiple_bonds,
&hf_btatt_plx_features_supported_features_pulse_amplitude_index,
@ -1969,7 +1969,7 @@ static const int *hfx_btatt_plx_features_supported_features[] = {
NULL
};
static const int *hfx_btgatt_microbit_ad_pins[] = {
static int * const hfx_btgatt_microbit_ad_pins[] = {
&hf_gatt_microbit_ad_pin0,
&hf_gatt_microbit_ad_pin1,
&hf_gatt_microbit_ad_pin2,
@ -1993,7 +1993,7 @@ static const int *hfx_btgatt_microbit_ad_pins[] = {
NULL
};
static const int *hfx_btgatt_microbit_io_pins[] = {
static int * const hfx_btgatt_microbit_io_pins[] = {
&hf_gatt_microbit_io_pin0,
&hf_gatt_microbit_io_pin1,
&hf_gatt_microbit_io_pin2,
@ -2017,13 +2017,13 @@ static const int *hfx_btgatt_microbit_io_pins[] = {
NULL
};
static const int *hfx_btatt_timezone_information[] = {
static int * const hfx_btatt_timezone_information[] = {
&hf_btatt_timezone_information_information,
&hf_btatt_timezone_information_information_type,
NULL
};
static const int *hfx_btatt_battery_power_state[] = {
static int * const hfx_btatt_battery_power_state[] = {
&hf_btatt_battery_power_state_present,
&hf_btatt_battery_power_state_discharging,
&hf_btatt_battery_power_state_charging,
@ -2031,19 +2031,19 @@ static const int *hfx_btatt_battery_power_state[] = {
NULL
};
static const int *hfx_btatt_removable[] = {
static int * const hfx_btatt_removable[] = {
&hf_btatt_removable_reserved,
&hf_btatt_removable_removable,
NULL
};
static const int *hfx_btatt_service_required[] = {
static int * const hfx_btatt_service_required[] = {
&hf_btatt_service_required_reserved,
&hf_btatt_service_required_service_required,
NULL
};
static const int *hfx_btatt_fitness_machine_features[] = {
static int * const hfx_btatt_fitness_machine_features[] = {
&hf_btatt_fitness_machine_features_reserved,
&hf_btatt_fitness_machine_features_user_data_retention,
&hf_btatt_fitness_machine_features_force_on_belt_and_power_output,
@ -2065,7 +2065,7 @@ static const int *hfx_btatt_fitness_machine_features[] = {
NULL
};
static const int *hfx_btatt_target_setting_features[] = {
static int * const hfx_btatt_target_setting_features[] = {
&hf_btatt_target_setting_features_reserved,
&hf_btatt_target_setting_features_targeted_cadence_configuration,
&hf_btatt_target_setting_features_spin_down_control,
@ -2087,7 +2087,7 @@ static const int *hfx_btatt_target_setting_features[] = {
NULL
};
static const int *hfx_btatt_training_status_flags[] = {
static int * const hfx_btatt_training_status_flags[] = {
&hf_btatt_training_status_flags_reserved,
&hf_btatt_training_status_flags_extended_string,
&hf_btatt_training_status_flags_training_status_string,
@ -4630,7 +4630,7 @@ dissect_attribute_value(proto_tree *tree, proto_item *patron_item, packet_info *
guint32 operand_offset;
guint32 interface_id;
guint32 adapter_id;
const gint **hfs;
int * const *hfs;
bluetooth_data_t *bluetooth_data = NULL;
tvb = tvb_new_subset_length_caplen(old_tvb, old_offset, length, length);

View File

@ -92,7 +92,7 @@ static int hf_data = -1;
#define FLAGS_SIGNAL_POWER_VALID 0x0002
#define FLAGS_PACKET_HEADER_AND_BR_EDR_PAYLOAD_DEWHITENED 0x0001
static const int *hfx_payload_transport_rate[] = {
static int * const hfx_payload_transport_rate[] = {
&hf_payload_transport_rate_payload,
&hf_payload_transport_rate_transport,
NULL

View File

@ -612,7 +612,7 @@ static int hf_bthci_cmd_authenticated_payload_timeout = -1;
static int hf_bthci_cmd_extended_inquiry_length = -1;
static const int *hfx_bthci_cmd_le_event_mask[] = {
static int * const hfx_bthci_cmd_le_event_mask[] = {
&hf_bthci_cmd_le_event_mask_le_reserved,
&hf_bthci_cmd_le_event_mask_le_biginfo_advertising_report,
&hf_bthci_cmd_le_event_mask_le_transmit_power_reporting,
@ -651,7 +651,7 @@ static const int *hfx_bthci_cmd_le_event_mask[] = {
NULL
};
static const int *hfx_bthci_cmd_adv_properties[] = {
static int * const hfx_bthci_cmd_adv_properties[] = {
&hf_bthci_cmd_advertising_properties_reserved,
&hf_bthci_cmd_advertising_properties_incl_txpower,
&hf_bthci_cmd_advertising_properties_anonymous_adv,
@ -663,20 +663,20 @@ static const int *hfx_bthci_cmd_adv_properties[] = {
NULL
};
static const int *hfx_bthci_cmd_periodic_adv_properties[] = {
static int * const hfx_bthci_cmd_periodic_adv_properties[] = {
&hf_bthci_cmd_periodic_advertising_properties_reserved,
&hf_bthci_cmd_advertising_properties_incl_txpower,
NULL
};
static const int *hfx_btcmd_all_phys[] = {
static int * const hfx_btcmd_all_phys[] = {
&hf_bthci_cmd_all_phys_reserved,
&hf_bthci_cmd_all_phys_rx_pref,
&hf_bthci_cmd_all_phys_tx_pref,
NULL
};
static const int *hfx_btcmd_phys_pref[] = {
static int * const hfx_btcmd_phys_pref[] = {
&hf_bthci_cmd_phys_pref_reserved,
&hf_bthci_cmd_phys_pref_le_coded,
&hf_bthci_cmd_phys_pref_le_2m,
@ -684,20 +684,20 @@ static const int *hfx_btcmd_phys_pref[] = {
NULL
};
static const int *hfx_btcmd_phy_options[] = {
static int * const hfx_btcmd_phy_options[] = {
&hf_bthci_cmd_phy_options_reserved,
&hf_bthci_cmd_phy_options_coding,
NULL
};
static const int *hfx_btcmd_le_scan_phys[] = {
static int * const hfx_btcmd_le_scan_phys[] = {
&hf_bthci_cmd_le_scan_phys_reserved,
&hf_bthci_cmd_le_scan_phys_le_coded,
&hf_bthci_cmd_le_scan_phys_le_1m,
NULL
};
static const int *hfx_btcmd_le_phys[] = {
static int * const hfx_btcmd_le_phys[] = {
&hf_bthci_cmd_le_phys_reserved,
&hf_bthci_cmd_le_phys_le_coded,
&hf_bthci_cmd_le_phys_le_2m,
@ -705,7 +705,7 @@ static const int *hfx_btcmd_le_phys[] = {
NULL
};
static const int *hfx_btcmd_sync_cte_type[] = {
static int * const hfx_btcmd_sync_cte_type[] = {
&hf_bthci_cmd_sync_cte_type_reserved,
&hf_bthci_cmd_sync_cte_type_sync_only_with_cte,
&hf_bthci_cmd_sync_cte_type_no_sync_aod_2us,
@ -714,7 +714,7 @@ static const int *hfx_btcmd_sync_cte_type[] = {
NULL
};
static const int *hfx_btcmd_cte_types[] = {
static int * const hfx_btcmd_cte_types[] = {
&hf_bthci_cmd_cte_types_reserved,
&hf_bthci_cmd_cte_types_aod_2us,
&hf_bthci_cmd_cte_types_aod_1us,
@ -722,7 +722,7 @@ static const int *hfx_btcmd_cte_types[] = {
NULL
};
static const int *hfx_bthci_cmd_sco_packet_type[] = {
static int * const hfx_bthci_cmd_sco_packet_type[] = {
&hf_bthci_cmd_sco_packet_type_reserved,
&hf_bthci_cmd_sco_packet_type_3ev5,
&hf_bthci_cmd_sco_packet_type_2ev5,
@ -737,7 +737,7 @@ static const int *hfx_bthci_cmd_sco_packet_type[] = {
NULL
};
static const int *hfx_bthci_cmd_packet_type[] = {
static int * const hfx_bthci_cmd_packet_type[] = {
&hf_bthci_cmd_packet_type_dh5,
&hf_bthci_cmd_packet_type_dm5,
&hf_bthci_cmd_packet_type_3dh5,
@ -971,7 +971,7 @@ static gint hf_btcommon_eir_ad_mesh_msg = -1;
static gint hf_btcommon_eir_ad_mesh_pbadv = -1;
static gint hf_btcommon_eir_ad_mesh_beacon = -1;
static const int *hfx_btcommon_eir_ad_ips_flags[] = {
static int * const hfx_btcommon_eir_ad_ips_flags[] = {
&hf_btcommon_eir_ad_ips_flags_reserved,
&hf_btcommon_eir_ad_ips_flags_location_name,
&hf_btcommon_eir_ad_ips_flags_uncertainty,
@ -983,7 +983,7 @@ static const int *hfx_btcommon_eir_ad_ips_flags[] = {
NULL
};
static const int *hfx_btcommon_eir_ad_ips_uncertainty[] = {
static int * const hfx_btcommon_eir_ad_ips_uncertainty[] = {
&hf_btcommon_eir_ad_ips_uncertainty_reserved,
&hf_btcommon_eir_ad_ips_uncertainty_precision,
&hf_btcommon_eir_ad_ips_uncertainty_update_time,
@ -991,7 +991,7 @@ static const int *hfx_btcommon_eir_ad_ips_uncertainty[] = {
NULL
};
static const int *hfx_btcommon_eir_ad_tds_flags[] = {
static int * const hfx_btcommon_eir_ad_tds_flags[] = {
&hf_btcommon_eir_ad_tds_flags_reserved,
&hf_btcommon_eir_ad_tds_flags_transport_state,
&hf_btcommon_eir_ad_tds_flags_transport_data_incomplete,
@ -999,7 +999,7 @@ static const int *hfx_btcommon_eir_ad_tds_flags[] = {
NULL
};
static const int *hfx_btcommon_eir_ad_le_features_0[] = {
static int * const hfx_btcommon_eir_ad_le_features_0[] = {
&hf_btcommon_eir_ad_le_features_encryption,
&hf_btcommon_eir_ad_le_features_connection_parameters_request_procedure,
&hf_btcommon_eir_ad_le_features_extended_reject_indication,
@ -1011,7 +1011,7 @@ static const int *hfx_btcommon_eir_ad_le_features_0[] = {
NULL
};
static const int *hfx_btcommon_eir_ad_le_features_1[] = {
static int * const hfx_btcommon_eir_ad_le_features_1[] = {
&hf_btcommon_eir_ad_le_features_2m_phy,
&hf_btcommon_eir_ad_le_features_stable_modulation_index_tx,
&hf_btcommon_eir_ad_le_features_stable_modulation_index_rx,
@ -1023,18 +1023,18 @@ static const int *hfx_btcommon_eir_ad_le_features_1[] = {
NULL
};
static const int *hfx_btcommon_eir_ad_le_features_2[] = {
static int * const hfx_btcommon_eir_ad_le_features_2[] = {
&hf_btcommon_eir_ad_le_features_minimum_number_of_used_channels_procedure,
&hf_btcommon_eir_ad_le_features_reserved_1_7,
NULL
};
static const int *hfx_btcommon_eir_ad_le_features_reserved[] = {
static int * const hfx_btcommon_eir_ad_le_features_reserved[] = {
&hf_btcommon_eir_ad_le_features_reserved,
NULL
};
static const int **hfx_btcommon_eir_ad_le_features[] = {
static int * const *hfx_btcommon_eir_ad_le_features[] = {
hfx_btcommon_eir_ad_le_features_0,
hfx_btcommon_eir_ad_le_features_1,
hfx_btcommon_eir_ad_le_features_2,

View File

@ -575,7 +575,7 @@ static int hf_packet_type_sco_hv2 = -1;
static int hf_packet_type_sco_hv1 = -1;
static int hf_packet_type_sco_reserved_4_0 = -1;
static const int *hfx_bthci_evt_le_features[] = {
static int * const hfx_bthci_evt_le_features[] = {
&hf_bthci_evt_le_features_encryption,
&hf_bthci_evt_le_features_connection_parameters_request_procedure,
&hf_bthci_evt_le_features_extended_reject_indication,
@ -616,7 +616,7 @@ static const int *hfx_bthci_evt_le_features[] = {
NULL
};
static const int *hfx_packet_type_acl[] = {
static int * const hfx_packet_type_acl[] = {
&hf_packet_type_acl_dh5,
&hf_packet_type_acl_dm5,
&hf_packet_type_acl_3dh5,
@ -634,7 +634,7 @@ static const int *hfx_packet_type_acl[] = {
NULL
};
static const int *hfx_packet_type_sco[] = {
static int * const hfx_packet_type_sco[] = {
&hf_packet_type_sco_reserved_15_8,
&hf_packet_type_sco_hv3,
&hf_packet_type_sco_hv2,
@ -666,7 +666,7 @@ static int hf_bthci_evt_ext_advts_event_type_legacy = -1;
static int hf_bthci_evt_ext_advts_event_type_data_status = -1;
static int hf_bthci_evt_ext_advts_event_type_reserved = -1;
static const int *hfx_bthci_evt_le_ext_advts_evt_type[] = {
static int * const hfx_bthci_evt_le_ext_advts_evt_type[] = {
&hf_bthci_evt_ext_advts_event_type_connectable,
&hf_bthci_evt_ext_advts_event_type_scannable,
&hf_bthci_evt_ext_advts_event_type_directed,
@ -683,7 +683,7 @@ static int hf_bthci_evt_supported_switching_sample_rates_1us_sampling_aod_rx = -
static int hf_bthci_evt_supported_switching_sample_rates_1us_switching_and_sampling_aoa_rx = -1;
static int hf_bthci_evt_supported_switching_sample_rates_reserved = -1;
static const int *hfx_bthci_evt_supported_switching_sample_rates[] = {
static int * const hfx_bthci_evt_supported_switching_sample_rates[] = {
&hf_bthci_evt_supported_switching_sample_rates_1us_switching_aod_tx,
&hf_bthci_evt_supported_switching_sample_rates_1us_sampling_aod_rx,
&hf_bthci_evt_supported_switching_sample_rates_1us_switching_and_sampling_aoa_rx,
@ -695,7 +695,7 @@ static int hf_bthci_evt_simple_pairing_options = -1;
static int hf_bthci_evt_simple_pairing_options_remote_public_key_validation = -1;
static int hf_bthci_evt_simple_pairing_options_reserved = -1;
static const int *hfx_bthci_evt_simple_pairing_options[] = {
static int * const hfx_bthci_evt_simple_pairing_options[] = {
&hf_bthci_evt_simple_pairing_options_remote_public_key_validation,
&hf_bthci_evt_simple_pairing_options_reserved,
NULL
@ -706,7 +706,7 @@ static int hf_bthci_evt_transmit_power_level_flags_minimum_power = -1;
static int hf_bthci_evt_transmit_power_level_flags_maximum_power = -1;
static int hf_bthci_evt_transmit_power_level_flags_reserved = -1;
static const int *hfx_bthci_evt_transmit_power_level_flags[] = {
static int * const hfx_bthci_evt_transmit_power_level_flags[] = {
&hf_bthci_evt_transmit_power_level_flags_minimum_power,
&hf_bthci_evt_transmit_power_level_flags_maximum_power,
&hf_bthci_evt_transmit_power_level_flags_reserved,

View File

@ -114,7 +114,7 @@ static int hf_broadcom_build_base = -1;
static int hf_broadcom_build_number = -1;
static int hf_broadcom_data = -1;
static const int *hfx_le_multi_advertising_channel_map[] = {
static int * const hfx_le_multi_advertising_channel_map[] = {
&hf_broadcom_le_multi_advertising_channel_map_reserved,
&hf_broadcom_le_multi_advertising_channel_map_39,
&hf_broadcom_le_multi_advertising_channel_map_38,
@ -1608,14 +1608,14 @@ static int hf_intel_set_event_mask_sco_rejected_via_lmp = -1;
static int hf_intel_set_event_mask_bootup = -1;
static int hf_intel_data = -1;
static const int *hfx_intel_scan_status[] = {
static int * const hfx_intel_scan_status[] = {
&hf_intel_scan_status_reserved,
&hf_intel_scan_status_page_scan,
&hf_intel_scan_status_inquiry_scan,
NULL
};
static const int *hfx_intel_set_event_mask[] = {
static int * const hfx_intel_set_event_mask[] = {
&hf_intel_set_event_mask_reserved_15_63,
&hf_intel_set_event_mask_firmware_trace_string,
&hf_intel_set_event_mask_le_link_established,

View File

@ -780,7 +780,7 @@ dissect_brsf_parameter(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
value = get_uint_parameter(parameter_stream, parameter_length);
if (role == ROLE_HS) {
static const int * hs[] = {
static int * const hs[] = {
&hf_brsf_hs_ec_nr_function,
&hf_brsf_hs_call_waiting_or_tree_way,
&hf_brsf_hs_cli_presentation,
@ -800,7 +800,7 @@ dissect_brsf_parameter(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
expert_add_info(pinfo, pitem, &ei_brfs_hs_reserved_bits);
}
} else {
static const int * ag[] = {
static int * const ag[] = {
&hf_brsf_ag_three_way_calling,
&hf_brsf_ag_ec_nr_function,
&hf_brsf_ag_voice_recognition_function,
@ -1111,7 +1111,7 @@ dissect_xapl_parameter(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
proto_tree_add_item(tree, hf_xapl_host_info, tvb, offset, parameter_length, ENC_NA | ENC_ASCII);
}
} else if (parameter_number == 1) {
static const int * hfx[] = {
static int * const hfx[] = {
&hf_xapl_features_reserved_x,
&hf_xapl_features_noise_reduction_status_reporting,
&hf_xapl_features_siri_status_reporting,

View File

@ -215,7 +215,7 @@ static gint ett_extended_advertising_aux_pointer = -1;
static gint ett_extended_advertising_sync_info = -1;
static gint ett_extended_advertising_acad = -1;
static const int *hfx_extended_advertising_flags[] = {
static int * const hfx_extended_advertising_flags[] = {
&hf_extended_advertising_flags_adva,
&hf_extended_advertising_flags_targeta,
&hf_extended_advertising_flags_cteinfo,
@ -227,7 +227,7 @@ static const int *hfx_extended_advertising_flags[] = {
NULL
};
static const int *hfx_control_feature_set_1[] = {
static int * const hfx_control_feature_set_1[] = {
&hf_control_feature_set_le_encryption,
&hf_control_feature_set_connection_parameters_request_procedure,
&hf_control_feature_set_extended_reject_indication,
@ -239,7 +239,7 @@ static const int *hfx_control_feature_set_1[] = {
NULL
};
static const int *hfx_control_feature_set_2[] = {
static int * const hfx_control_feature_set_2[] = {
&hf_control_feature_set_le_2m_phy,
&hf_control_feature_set_stable_modulation_index_transmitter,
&hf_control_feature_set_stable_modulation_index_receiver,
@ -251,13 +251,13 @@ static const int *hfx_control_feature_set_2[] = {
NULL
};
static const int *hfx_control_feature_set_3[] = {
static int * const hfx_control_feature_set_3[] = {
&hf_control_feature_set_minimum_number_of_used_channels_procedure,
&hf_control_feature_set_reserved_bits,
NULL
};
static const int *hfx_control_phys_sender[] = {
static int * const hfx_control_phys_sender[] = {
&hf_control_phys_sender_le_1m_phy,
&hf_control_phys_sender_le_2m_phy,
&hf_control_phys_sender_le_coded_phy,
@ -265,7 +265,7 @@ static const int *hfx_control_phys_sender[] = {
NULL
};
static const int *hfx_control_phys_update[] = {
static int * const hfx_control_phys_update[] = {
&hf_control_phys_update_le_1m_phy,
&hf_control_phys_update_le_2m_phy,
&hf_control_phys_update_le_coded_phy,
@ -273,7 +273,7 @@ static const int *hfx_control_phys_update[] = {
NULL
};
static const int *hfx_control_phys[] = {
static int * const hfx_control_phys[] = {
&hf_control_phys_le_1m_phy,
&hf_control_phys_le_2m_phy,
&hf_control_phys_le_coded_phy,

View File

@ -56,7 +56,7 @@ static int hf_btle_rf_mic_checked_flag = -1;
static int hf_btle_rf_mic_valid_flag = -1;
static int hf_btle_rf_flags_rfu_2 = -1;
static const int *hfs_btle_rf_flags[] = {
static int * const hfs_btle_rf_flags[] = {
&hf_btle_rf_dewhitened_flag,
&hf_btle_rf_sigpower_valid_flag,
&hf_btle_rf_noisepower_valid_flag,

View File

@ -1095,7 +1095,7 @@ static const value_string btmesh_fault_array_vals[] = {
#if GCRYPT_VERSION_NUMBER >= 0x010600 /* 1.6.0 */
static const int *config_composition_data_status_features_headers[] = {
static int * const config_composition_data_status_features_headers[] = {
&hf_btmesh_config_composition_data_status_features_relay,
&hf_btmesh_config_composition_data_status_features_proxy,
&hf_btmesh_config_composition_data_status_features_friend,
@ -1104,7 +1104,7 @@ static const int *config_composition_data_status_features_headers[] = {
NULL
};
static const int *config_heartbeat_publication_set_features_headers[] = {
static int * const config_heartbeat_publication_set_features_headers[] = {
&hf_btmesh_config_heartbeat_publication_set_features_relay,
&hf_btmesh_config_heartbeat_publication_set_features_proxy,
&hf_btmesh_config_heartbeat_publication_set_features_friend,
@ -1113,7 +1113,7 @@ static const int *config_heartbeat_publication_set_features_headers[] = {
NULL
};
static const int *config_heartbeat_publication_status_features_headers[] = {
static int * const config_heartbeat_publication_status_features_headers[] = {
&hf_btmesh_config_heartbeat_publication_status_features_relay,
&hf_btmesh_config_heartbeat_publication_status_features_proxy,
&hf_btmesh_config_heartbeat_publication_status_features_friend,

View File

@ -438,7 +438,7 @@ static gint ett_btsdp_supported_features_mdep_role = -1;
static gint ett_btsdp_supported_features_mdep_description = -1;
static gint ett_btsdp_protocol = -1;
static const int *hfx_ctn_supported_features[] = {
static int * const hfx_ctn_supported_features[] = {
&hf_ctn_supported_features_reserved,
&hf_ctn_supported_features_forward,
&hf_ctn_supported_features_delete,
@ -450,7 +450,7 @@ static const int *hfx_ctn_supported_features[] = {
NULL
};
static const int *hfx_mps_mpsd_scenarios[] = {
static int * const hfx_mps_mpsd_scenarios[] = {
&hf_mps_mpsd_scenarios_reserved,
&hf_mps_mpsd_scenarios_37,
&hf_mps_mpsd_scenarios_36,
@ -493,7 +493,7 @@ static const int *hfx_mps_mpsd_scenarios[] = {
NULL
};
static const int *hfx_mps_mpmd_scenarios[] = {
static int * const hfx_mps_mpmd_scenarios[] = {
&hf_mps_mpmd_scenarios_reserved,
&hf_mps_mpmd_scenarios_18,
&hf_mps_mpmd_scenarios_17,
@ -517,7 +517,7 @@ static const int *hfx_mps_mpmd_scenarios[] = {
NULL
};
static const int *hfx_mps_supported_profile_and_protocol_dependency[] = {
static int * const hfx_mps_supported_profile_and_protocol_dependency[] = {
&hf_mps_supported_profile_and_protocol_dependency_reserved,
&hf_mps_supported_profile_and_protocol_dependency_dis_connection_order_behaviour,
&hf_mps_supported_profile_and_protocol_dependency_gavdp_requirements,
@ -525,7 +525,7 @@ static const int *hfx_mps_supported_profile_and_protocol_dependency[] = {
NULL
};
static const int *hfx_map_supported_features[] = {
static int * const hfx_map_supported_features[] = {
&hf_map_supported_features_reserved,
&hf_map_supported_features_extended_event_report_1_1,
&hf_map_supported_features_instance_information_feature,
@ -537,7 +537,7 @@ static const int *hfx_map_supported_features[] = {
NULL
};
static const int *hfx_pbap_pse_supported_repositories[] = {
static int * const hfx_pbap_pse_supported_repositories[] = {
&hf_pbap_pse_supported_repositories_reserved,
&hf_pbap_pse_supported_repositories_favourites,
&hf_pbap_pse_supported_repositories_speed_dial,
@ -546,7 +546,7 @@ static const int *hfx_pbap_pse_supported_repositories[] = {
NULL
};
static const int *hfx_pbap_pse_supported_features[] = {
static int * const hfx_pbap_pse_supported_features[] = {
&hf_pbap_pse_supported_features_reserved,
&hf_pbap_pse_supported_features_default_contact_image_format,
&hf_pbap_pse_supported_features_contact_referencing,

View File

@ -54,7 +54,7 @@ static int hf_btsmp_public_key_y = -1;
static int hf_btsmp_dhkey_check = -1;
static int hf_btsmp_notification_type = -1;
static const int *hfx_btsmp_key_distribution[] = {
static int * const hfx_btsmp_key_distribution[] = {
&hf_btsmp_key_dist_reserved,
&hf_btsmp_key_dist_linkkey,
&hf_btsmp_key_dist_sign,
@ -63,7 +63,7 @@ static const int *hfx_btsmp_key_distribution[] = {
NULL
};
static const int *hfx_btsmp_authreq[] = {
static int * const hfx_btsmp_authreq[] = {
&hf_btsmp_reserved_flag,
&hf_btsmp_keypress_flag,
&hf_btsmp_secure_connection_flag,

View File

@ -121,7 +121,7 @@ static int hf_c1222_epsem_flags_ed_class = -1;
static int hf_c1222_epsem_flags_security_modes = -1;
static int hf_c1222_epsem_flags_response_control = -1;
/* and the structure of the flag components */
static const int *c1222_flags[] = {
static int * const c1222_flags[] = {
&hf_c1222_epsem_flags_reserved,
&hf_c1222_epsem_flags_recovery,
&hf_c1222_epsem_flags_proxy,

View File

@ -107,7 +107,7 @@ static int hf_canopen_time_stamp_days = -1;
/* Download segment request (ccs=0) decode mask */
static const int *sdo_cmd_fields_ccs0[] = {
static int * const sdo_cmd_fields_ccs0[] = {
&hf_canopen_sdo_cmd_ccs,
&hf_canopen_sdo_cmd_toggle,
&hf_canopen_sdo_cmd_updown_n,
@ -115,7 +115,7 @@ static const int *sdo_cmd_fields_ccs0[] = {
NULL
};
/* Initiate download request (ccs=1) decode mask */
static const int *sdo_cmd_fields_ccs1[] = {
static int * const sdo_cmd_fields_ccs1[] = {
&hf_canopen_sdo_cmd_ccs,
&hf_canopen_sdo_cmd_init_n,
&hf_canopen_sdo_cmd_init_e,
@ -123,37 +123,37 @@ static const int *sdo_cmd_fields_ccs1[] = {
NULL
};
/* Initiate upload request (ccs=2) decode mask */
static const int *sdo_cmd_fields_ccs2[] = {
static int * const sdo_cmd_fields_ccs2[] = {
&hf_canopen_sdo_cmd_ccs,
NULL
};
/* Download segment request (ccs=3) decode mask */
static const int *sdo_cmd_fields_ccs3[] = {
static int * const sdo_cmd_fields_ccs3[] = {
&hf_canopen_sdo_cmd_ccs,
&hf_canopen_sdo_cmd_toggle,
NULL
};
/* */
static const int *sdo_cmd_fields_ccs4[] = {
static int * const sdo_cmd_fields_ccs4[] = {
&hf_canopen_sdo_cmd_ccs,
NULL
};
/* Block upload (ccs=5,cs=0) decode mask */
static const int *sdo_cmd_fields_ccs5_subcommand0[] = {
static int * const sdo_cmd_fields_ccs5_subcommand0[] = {
&hf_canopen_sdo_cmd_ccs,
&hf_canopen_sdo_cmd_block_crc_support,
&hf_canopen_sdo_cmd_ccs5_subcommand,
NULL
};
/* Block upload (ccs=5,cs=1,2,3) decode mask */
static const int *sdo_cmd_fields_ccs5_subcommand1[] = {
static int * const sdo_cmd_fields_ccs5_subcommand1[] = {
&hf_canopen_sdo_cmd_ccs,
&hf_canopen_sdo_cmd_ccs5_subcommand,
NULL
};
/* Block download (ccs=6,cs=0) decode mask */
static const int *sdo_cmd_fields_ccs6_subcommand0[] = {
static int * const sdo_cmd_fields_ccs6_subcommand0[] = {
&hf_canopen_sdo_cmd_ccs,
&hf_canopen_sdo_cmd_block_crc_support,
&hf_canopen_sdo_cmd_block_s,
@ -161,14 +161,14 @@ static const int *sdo_cmd_fields_ccs6_subcommand0[] = {
NULL
};
/* Block download (ccs=6,cs=1) decode mask */
static const int *sdo_cmd_fields_ccs6_subcommand1[] = {
static int * const sdo_cmd_fields_ccs6_subcommand1[] = {
&hf_canopen_sdo_cmd_ccs,
&hf_canopen_sdo_cmd_block_n,
&hf_canopen_sdo_cmd_ccs6_subcommand,
NULL
};
static const int **_sdo_cmd_fields_ccs[] = {
static int * const *_sdo_cmd_fields_ccs[] = {
sdo_cmd_fields_ccs0,
sdo_cmd_fields_ccs1,
sdo_cmd_fields_ccs2,
@ -176,20 +176,20 @@ static const int **_sdo_cmd_fields_ccs[] = {
sdo_cmd_fields_ccs4,
};
static const int **_sdo_cmd_fields_ccs5[] = {
static int * const *_sdo_cmd_fields_ccs5[] = {
sdo_cmd_fields_ccs5_subcommand0,
sdo_cmd_fields_ccs5_subcommand1,
sdo_cmd_fields_ccs5_subcommand1,
sdo_cmd_fields_ccs5_subcommand1
};
static const int **_sdo_cmd_fields_ccs6[] = {
static int * const *_sdo_cmd_fields_ccs6[] = {
sdo_cmd_fields_ccs6_subcommand0,
sdo_cmd_fields_ccs6_subcommand1
};
/* Emergency error register decode mask */
static const int *em_err_reg_fields[] = {
static int * const em_err_reg_fields[] = {
&hf_canopen_em_err_reg_ge,
&hf_canopen_em_err_reg_cu,
&hf_canopen_em_err_reg_vo,
@ -202,7 +202,7 @@ static const int *em_err_reg_fields[] = {
};
/* (scs=0) decode mask */
static const int *sdo_cmd_fields_scs0[] = {
static int * const sdo_cmd_fields_scs0[] = {
&hf_canopen_sdo_cmd_scs,
&hf_canopen_sdo_cmd_toggle,
&hf_canopen_sdo_cmd_updown_n,
@ -210,13 +210,13 @@ static const int *sdo_cmd_fields_scs0[] = {
NULL
};
/* (scs=1) decode mask */
static const int *sdo_cmd_fields_scs1[] = {
static int * const sdo_cmd_fields_scs1[] = {
&hf_canopen_sdo_cmd_scs,
&hf_canopen_sdo_cmd_toggle,
NULL
};
/* (scs=2) decode mask */
static const int *sdo_cmd_fields_scs2[] = {
static int * const sdo_cmd_fields_scs2[] = {
&hf_canopen_sdo_cmd_scs,
&hf_canopen_sdo_cmd_init_n,
&hf_canopen_sdo_cmd_init_e,
@ -224,31 +224,31 @@ static const int *sdo_cmd_fields_scs2[] = {
NULL
};
/* (scs=3) decode mask */
static const int *sdo_cmd_fields_scs3[] = {
static int * const sdo_cmd_fields_scs3[] = {
&hf_canopen_sdo_cmd_scs,
NULL
};
/* (scs=4) decode mask */
static const int *sdo_cmd_fields_scs4[] = {
static int * const sdo_cmd_fields_scs4[] = {
&hf_canopen_sdo_cmd_scs,
NULL
};
/* (scs=5,ss=0) decode mask */
static const int *sdo_cmd_fields_scs5_subcommand0[] = {
static int * const sdo_cmd_fields_scs5_subcommand0[] = {
&hf_canopen_sdo_cmd_scs,
&hf_canopen_sdo_cmd_block_crc_support,
&hf_canopen_sdo_cmd_scs5_subcommand,
NULL
};
/* (scs=5,ss=1,2) decode mask */
static const int *sdo_cmd_fields_scs5_subcommand1[] = {
static int * const sdo_cmd_fields_scs5_subcommand1[] = {
&hf_canopen_sdo_cmd_scs,
&hf_canopen_sdo_cmd_scs5_subcommand,
NULL
};
/* (scs=6,ss=0) decode mask */
static const int *sdo_cmd_fields_scs6_subcommand0[] = {
static int * const sdo_cmd_fields_scs6_subcommand0[] = {
&hf_canopen_sdo_cmd_scs,
&hf_canopen_sdo_cmd_block_crc_support,
&hf_canopen_sdo_cmd_block_s,
@ -256,7 +256,7 @@ static const int *sdo_cmd_fields_scs6_subcommand0[] = {
NULL
};
/* (scs=6,ss=1) decode mask */
static const int *sdo_cmd_fields_scs6_subcommand1[] = {
static int * const sdo_cmd_fields_scs6_subcommand1[] = {
&hf_canopen_sdo_cmd_scs,
&hf_canopen_sdo_cmd_block_n,
&hf_canopen_sdo_cmd_scs6_subcommand,
@ -264,7 +264,7 @@ static const int *sdo_cmd_fields_scs6_subcommand1[] = {
};
static const int **_sdo_cmd_fields_scs[] = {
static int * const *_sdo_cmd_fields_scs[] = {
sdo_cmd_fields_scs0,
sdo_cmd_fields_scs1,
sdo_cmd_fields_scs2,
@ -272,13 +272,13 @@ static const int **_sdo_cmd_fields_scs[] = {
sdo_cmd_fields_scs4
};
static const int **_sdo_cmd_fields_scs5[] = {
static int * const *_sdo_cmd_fields_scs5[] = {
sdo_cmd_fields_scs5_subcommand0,
sdo_cmd_fields_scs5_subcommand1,
sdo_cmd_fields_scs5_subcommand1,
};
static const int **_sdo_cmd_fields_scs6[] = {
static int * const *_sdo_cmd_fields_scs6[] = {
sdo_cmd_fields_scs6_subcommand0,
sdo_cmd_fields_scs6_subcommand1
};
@ -781,7 +781,7 @@ canopen_detect_msg_type(guint function_code, guint node_id)
}
static inline const int **
static inline int * const *
sdo_cmd_fields_scs(guint cs, guint subcommand)
{
if (cs < array_length(_sdo_cmd_fields_scs))
@ -793,7 +793,7 @@ sdo_cmd_fields_scs(guint cs, guint subcommand)
return NULL;
}
static inline const int **
static inline int * const *
sdo_cmd_fields_ccs(guint cs, guint subcommand)
{
if (cs < array_length(_sdo_cmd_fields_ccs))
@ -815,7 +815,7 @@ dissect_sdo(tvbuff_t *tvb, packet_info *pinfo, proto_tree *canopen_type_tree, gu
guint8 sdo_mux = 0, sdo_pst = 0;
/*sdo values used to choose dissector*/
guint8 sdo_cs = 0, sdo_subcommand = 0;
const gint **sdo_cmd_fields;
int * const *sdo_cmd_fields;
/* get SDO command specifier */
sdo_cs = tvb_get_bits8(tvb, 0, 3);

View File

@ -598,7 +598,7 @@ static expert_field ei_capwap_fortinet_mac_len = EI_INIT;
static expert_field ei_capwap_message_element_fortinet_type = EI_INIT;
static expert_field ei_capwap_message_element_cisco_type = EI_INIT;
static const int *ieee80211_ofdm_control_band_support_flags[] = {
static int * const ieee80211_ofdm_control_band_support_flags[] = {
&hf_capwap_msg_element_type_ieee80211_ofdm_control_band_support_bit0,
&hf_capwap_msg_element_type_ieee80211_ofdm_control_band_support_bit1,
&hf_capwap_msg_element_type_ieee80211_ofdm_control_band_support_bit2,
@ -610,28 +610,28 @@ static const int *ieee80211_ofdm_control_band_support_flags[] = {
NULL
};
static const int *ieee80211_ie_flags[] = {
static int * const ieee80211_ie_flags[] = {
&hf_capwap_msg_element_type_ieee80211_ie_flags_b,
&hf_capwap_msg_element_type_ieee80211_ie_flags_p,
&hf_capwap_msg_element_type_ieee80211_ie_flags_rsv,
NULL
};
static const int *capwap_ac_descriptor_security_flags[] = {
static int * const capwap_ac_descriptor_security_flags[] = {
&hf_capwap_msg_element_type_ac_descriptor_security_r,
&hf_capwap_msg_element_type_ac_descriptor_security_s,
&hf_capwap_msg_element_type_ac_descriptor_security_x,
NULL
};
static const int *capwap_ac_descriptor_dtls_flags[] = {
static int * const capwap_ac_descriptor_dtls_flags[] = {
&hf_capwap_msg_element_type_ac_descriptor_dtls_policy_r,
&hf_capwap_msg_element_type_ac_descriptor_dtls_policy_d,
&hf_capwap_msg_element_type_ac_descriptor_dtls_policy_c,
NULL
};
static const int *capwap_wtp_frame_tunnel_mode_flags[] = {
static int * const capwap_wtp_frame_tunnel_mode_flags[] = {
&hf_capwap_msg_element_type_wtp_frame_tunnel_mode_n,
&hf_capwap_msg_element_type_wtp_frame_tunnel_mode_e,
&hf_capwap_msg_element_type_wtp_frame_tunnel_mode_l,
@ -639,7 +639,7 @@ static const int *capwap_wtp_frame_tunnel_mode_flags[] = {
NULL
};
static int const *ieee80211_add_wlan_capability_flags[] = {
static int * const ieee80211_add_wlan_capability_flags[] = {
&hf_capwap_msg_element_type_ieee80211_add_wlan_capability_e,
&hf_capwap_msg_element_type_ieee80211_add_wlan_capability_i,
&hf_capwap_msg_element_type_ieee80211_add_wlan_capability_c,
@ -659,7 +659,7 @@ static int const *ieee80211_add_wlan_capability_flags[] = {
NULL
};
static const int *ieee80211_station_capabilities_flags[] ={
static int * const ieee80211_station_capabilities_flags[] ={
&hf_capwap_msg_element_type_ieee80211_station_capabilities_e,
&hf_capwap_msg_element_type_ieee80211_station_capabilities_i,
&hf_capwap_msg_element_type_ieee80211_station_capabilities_c,
@ -679,7 +679,7 @@ static const int *ieee80211_station_capabilities_flags[] ={
NULL
};
static const int * ieee80211_update_wlan_capability_flags[] = {
static int * const ieee80211_update_wlan_capability_flags[] = {
&hf_capwap_msg_element_type_ieee80211_update_wlan_capability_e,
&hf_capwap_msg_element_type_ieee80211_update_wlan_capability_i,
&hf_capwap_msg_element_type_ieee80211_update_wlan_capability_c,

View File

@ -57,7 +57,7 @@ static int hf_cattp_flag_seg = -1;
static int hf_cattp_version = -1;
/* structure of flag components */
static const int *cattp_flags[] = {
static int * const cattp_flags[] = {
&hf_cattp_flag_syn,
&hf_cattp_flag_ack,
&hf_cattp_flag_eak,

View File

@ -308,7 +308,7 @@ dissect_ccsds(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U
guint16 checkword_field = 0;
guint16 checkword_sum = 0;
tvbuff_t *next_tvb;
static const int * header_flags[] = {
static int * const header_flags[] = {
&hf_ccsds_version,
&hf_ccsds_type,
&hf_ccsds_secheader,

View File

@ -2096,7 +2096,7 @@ static
guint c_dissect_features(proto_tree *tree,
tvbuff_t *tvb, guint off, c_pkt_data *data _U_)
{
static const int *lowword[] = {
static int * const lowword[] = {
&hf_feature_uid,
&hf_feature_nosrcaddr,
&hf_feature_monclockcheck,
@ -2131,7 +2131,7 @@ guint c_dissect_features(proto_tree *tree,
&hf_feature_mon_single_paxos,
NULL
};
static const int *highword[] = {
static int * const highword[] = {
&hf_feature_osd_snapmapper,
&hf_feature_mon_scrub,
&hf_feature_osd_packed_recovery,
@ -2168,7 +2168,7 @@ static
guint c_dissect_flags(proto_tree *tree,
tvbuff_t *tvb, guint off, c_pkt_data *data _U_)
{
static const int *flags[] = {
static int * const flags[] = {
&hf_flag_lossy,
NULL
};
@ -2206,7 +2206,7 @@ static
guint c_dissect_osd_flags(proto_tree *tree,
tvbuff_t *tvb, guint off, c_pkt_data *data _U_)
{
static const int *flags[] = {
static int * const flags[] = {
&hf_osd_flag_ack,
&hf_osd_flag_onnvram,
&hf_osd_flag_ondisk,
@ -2678,13 +2678,13 @@ guint c_dissect_pgpool(proto_tree *root,
c_pgpool_type type;
c_pgpool_cachemode cachemode;
static const int *flags_low[] = {
static int * const flags_low[] = {
&hf_pgpool_flag_hashpool,
&hf_pgpool_flag_full,
&hf_pgpool_flag_fake_ec_pool,
NULL
};
static const int *flags_high[] = {
static int * const flags_high[] = {
NULL
};

View File

@ -43,7 +43,7 @@ static gint ett_cesoeth_cw = -1;
static expert_field ei_cesoeth_reserved = EI_INIT;
static expert_field ei_cesoeth_length = EI_INIT;
static const int* cesoeth_l0_cw[] =
static int* const cesoeth_l0_cw[] =
{
&hf_cesoeth_cw_reserved1,
&hf_cesoeth_cw_l,
@ -55,7 +55,7 @@ static const int* cesoeth_l0_cw[] =
NULL
};
static const int* cesoeth_l1_cw[] =
static int* const cesoeth_l1_cw[] =
{
&hf_cesoeth_cw_reserved1,
&hf_cesoeth_cw_l,

View File

@ -457,7 +457,7 @@ static const value_string cfdp_directive_codes[] = {
{ 0, NULL }
};
static const int *cfdp_flags[] = {
static int * const cfdp_flags[] = {
&hf_cfdp_version,
&hf_cfdp_pdu_type,
&hf_cfdp_direction,
@ -467,7 +467,7 @@ static const int *cfdp_flags[] = {
NULL
};
static const int *cfdp_byte2[] = {
static int * const cfdp_byte2[] = {
&hf_cfdp_res2,
&hf_cfdp_entid_length,
&hf_cfdp_res3,
@ -475,25 +475,25 @@ static const int *cfdp_byte2[] = {
NULL
};
static const int *cfdp_proxy_fault_hdl_overr[] = {
static int * const cfdp_proxy_fault_hdl_overr[] = {
&hf_cfdp_condition_code,
&hf_cfdp_handler_code,
NULL
};
static const int *cfdp_proxy_trans_mode [] = {
static int * const cfdp_proxy_trans_mode [] = {
&hf_cfdp_spare_seven_2,
&hf_cfdp_trans_mode,
NULL
};
static const int *cfdp_proxy_segment_control_byte [] = {
static int * const cfdp_proxy_segment_control_byte [] = {
&hf_cfdp_spare_seven_2,
&hf_cfdp_proxy_segment_control,
NULL
};
static const int *cfdp_proxy_put_resp [] = {
static int * const cfdp_proxy_put_resp [] = {
&hf_cfdp_condition_code,
&hf_cfdp_spare_one,
&hf_cfdp_condition_code,
@ -502,7 +502,7 @@ static const int *cfdp_proxy_put_resp [] = {
NULL
};
static const int *cfdp_orig_trans_id[] = {
static int * const cfdp_orig_trans_id[] = {
&hf_cfdp_res2,
&hf_cfdp_entid_length,
&hf_cfdp_res3,
@ -510,7 +510,7 @@ static const int *cfdp_orig_trans_id[] = {
NULL
};
static const int *cfdp_remote_stat_rep_req[] = {
static int * const cfdp_remote_stat_rep_req[] = {
&hf_cfdp_res2,
&hf_cfdp_entid_length,
&hf_cfdp_res3,
@ -518,7 +518,7 @@ static const int *cfdp_remote_stat_rep_req[] = {
NULL
};
static const int *cfdp_remote_stat_rep_resp[] = {
static int * const cfdp_remote_stat_rep_resp[] = {
&hf_cfdp_trans_stat,
&hf_cfdp_spare_five,
&hf_cfdp_rep_resp_code,
@ -529,7 +529,7 @@ static const int *cfdp_remote_stat_rep_resp[] = {
NULL
};
static const int *cfdp_finish_pdu_flags [] = {
static int * const cfdp_finish_pdu_flags [] = {
&hf_cfdp_condition_code,
&hf_cfdp_end_system_stat,
&hf_cfdp_delivery_code,
@ -537,7 +537,7 @@ static const int *cfdp_finish_pdu_flags [] = {
NULL
};
static const int *cfdp_remote_suspend_resume_req [] = {
static int * const cfdp_remote_suspend_resume_req [] = {
&hf_cfdp_spare_one_2,
&hf_cfdp_entid_length,
&hf_cfdp_spare_one,
@ -546,7 +546,7 @@ static const int *cfdp_remote_suspend_resume_req [] = {
};
static const int *cfdp_remote_suspend_resume_resp [] = {
static int * const cfdp_remote_suspend_resume_resp [] = {
&hf_cfdp_suspension_ind,
&hf_cfdp_trans_stat_2,
&hf_cfdp_spare_five,

View File

@ -151,7 +151,7 @@ static dissector_handle_t charging_ase_handle;
/*--- Included file: packet-charging_ase-fn.c ---*/
#line 1 "./asn1/charging_ase/packet-charging_ase-fn.c"
static const int * ChargingControlIndicators_bits[] = {
static int * const ChargingControlIndicators_bits[] = {
&hf_charging_ase_ChargingControlIndicators_subscriberCharge,
&hf_charging_ase_ChargingControlIndicators_immediateChangeOfActuallyAppliedTariff,
&hf_charging_ase_ChargingControlIndicators_delayUntilStart,
@ -213,7 +213,7 @@ dissect_charging_ase_TariffDuration(gboolean implicit_tag _U_, tvbuff_t *tvb _U_
}
static const int * SubTariffControl_bits[] = {
static int * const SubTariffControl_bits[] = {
&hf_charging_ase_SubTariffControl_oneTimeCharge,
NULL
};
@ -257,7 +257,7 @@ dissect_charging_ase_SEQUENCE_SIZE_minCommunicationTariffNum_maxCommunicationTar
}
static const int * T_tariffControlIndicators_bits[] = {
static int * const T_tariffControlIndicators_bits[] = {
&hf_charging_ase_T_tariffControlIndicators_non_cyclicTariff,
NULL
};
@ -378,7 +378,7 @@ dissect_charging_ase_SEQUENCE_SIZE_minCommunicationTariffNum_maxCommunicationTar
}
static const int * T_tariffControlIndicators_01_bits[] = {
static int * const T_tariffControlIndicators_01_bits[] = {
&hf_charging_ase_T_tariffControlIndicators_01_non_cyclicTariff,
NULL
};
@ -697,7 +697,7 @@ dissect_charging_ase_AddOnChargingInformation(gboolean implicit_tag _U_, tvbuff_
}
static const int * T_acknowledgementIndicators_bits[] = {
static int * const T_acknowledgementIndicators_bits[] = {
&hf_charging_ase_T_acknowledgementIndicators_accepted,
NULL
};
@ -758,7 +758,7 @@ dissect_charging_ase_StartCharging(gboolean implicit_tag _U_, tvbuff_t *tvb _U_,
}
static const int * T_stopIndicators_bits[] = {
static int * const T_stopIndicators_bits[] = {
&hf_charging_ase_T_stopIndicators_callAttemptChargesApplicable,
NULL
};

View File

@ -3024,7 +3024,7 @@ static int dissect_id_revision(packet_info *pinfo, proto_tree *tree, proto_item
static int dissect_id_status(packet_info *pinfo, proto_tree *tree, proto_item *item, tvbuff_t *tvb,
int offset, int total_len)
{
static const int * status[] = {
static int * const status[] = {
&hf_id_status_owned,
&hf_id_status_conf,
&hf_id_status_extended1,
@ -3101,7 +3101,7 @@ static int dissect_time_sync_grandmaster_clock(packet_info *pinfo, proto_tree *t
proto_tree_add_item( tree, hf_time_sync_gm_clock_offset_scaled_log_variance, tvb, offset+12, 2, ENC_LITTLE_ENDIAN);
proto_tree_add_item( tree, hf_time_sync_gm_clock_current_utc_offset, tvb, offset+14, 2, ENC_LITTLE_ENDIAN);
static const int* bits[] = {
static int* const bits[] = {
&hf_time_sync_gm_clock_time_property_flags_leap61,
&hf_time_sync_gm_clock_time_property_flags_leap59,
&hf_time_sync_gm_clock_time_property_flags_current_utc_valid,
@ -3149,7 +3149,7 @@ static int dissect_time_sync_local_clock(packet_info *pinfo, proto_tree *tree, p
proto_tree_add_item( tree, hf_time_sync_local_clock_offset_scaled_log_variance, tvb, offset+12, 2, ENC_LITTLE_ENDIAN);
proto_tree_add_item( tree, hf_time_sync_local_clock_current_utc_offset, tvb, offset+14, 2, ENC_LITTLE_ENDIAN);
static const int* bits[] = {
static int* const bits[] = {
&hf_time_sync_local_clock_time_property_flags_leap61,
&hf_time_sync_local_clock_time_property_flags_leap59,
&hf_time_sync_local_clock_time_property_flags_current_utc_valid,
@ -3297,7 +3297,7 @@ static int dissect_time_sync_clock_type(packet_info *pinfo, proto_tree *tree, pr
return total_len;
}
static const int* bits[] = {
static int* const bits[] = {
&hf_time_sync_clock_type_management,
&hf_time_sync_clock_type_end_to_end,
&hf_time_sync_clock_type_boundary,
@ -4175,7 +4175,7 @@ static void
dissect_transport_type_trigger(tvbuff_t *tvb, int offset, proto_tree *tree,
int hf_ttt, int hf_direction, int hf_trigger, int hf_class, gint ett)
{
const int* bits[] = {
int* const bits[] = {
&hf_direction,
&hf_trigger,
&hf_class,
@ -7609,7 +7609,7 @@ dissect_cip_cco_all_attribute_common( proto_tree *cmd_tree, proto_item *ti,
ot_rtf = (temp_data >> 1) & 7;
to_rtf = (temp_data >> 4) & 7;
static const int* connection_flags[] = {
static int *const connection_flags[] = {
&hf_cip_cco_con_type,
&hf_cip_cco_ot_rtf,
&hf_cip_cco_to_rtf,
@ -8175,7 +8175,7 @@ void dissect_cip_data( proto_tree *item_tree, tvbuff_t *tvb, int offset, packet_
void dissect_cip_run_idle(tvbuff_t* tvb, int offset, proto_tree* item_tree)
{
static const int * run_idle_header[] = {
static int * const run_idle_header[] = {
&hf_32bitheader_roo,
&hf_32bitheader_coo,
&hf_32bitheader_run_idle,

View File

@ -506,7 +506,7 @@ static const value_string cip_sc_vals[] = {
static int dissect_axis_status(packet_info *pinfo _U_, proto_tree *tree, proto_item *item _U_, tvbuff_t *tvb,
int offset, int total_len _U_)
{
static const int* bits[] = {
static int* const bits[] = {
&hf_cip_axis_sts_local_ctrl,
&hf_cip_axis_sts_alarm,
&hf_cip_axis_sts_dc_bus,
@ -543,7 +543,7 @@ static int dissect_axis_status(packet_info *pinfo _U_, proto_tree *tree, proto_i
static int dissect_axis_status2(packet_info *pinfo _U_, proto_tree *tree, proto_item *item _U_, tvbuff_t *tvb,
int offset, int total_len _U_)
{
static const int* bits[] = {
static int* const bits[] = {
&hf_cip_axis_sts2_motor,
&hf_cip_axis_sts2_regenerate,
&hf_cip_axis_sts2_ride_thru,
@ -579,7 +579,7 @@ static int dissect_axis_status2(packet_info *pinfo _U_, proto_tree *tree, proto_
static int dissect_event_checking_control(packet_info *pinfo _U_, proto_tree *tree, proto_item *item _U_, tvbuff_t *tvb,
int offset, int total_len _U_)
{
static const int* bits[] = {
static int* const bits[] = {
&hf_cip_evnt_ctrl_reg1_pos,
&hf_cip_evnt_ctrl_reg1_neg,
&hf_cip_evnt_ctrl_reg2_pos,
@ -610,7 +610,7 @@ static int dissect_event_checking_control(packet_info *pinfo _U_, proto_tree *tr
static int dissect_event_checking_status(packet_info *pinfo _U_, proto_tree *tree, proto_item *item _U_, tvbuff_t *tvb,
int offset, int total_len _U_)
{
static const int* bits[] = {
static int* const bits[] = {
&hf_cip_evnt_sts_reg1_pos,
&hf_cip_evnt_sts_reg1_neg,
&hf_cip_evnt_sts_reg2_pos,
@ -641,7 +641,7 @@ static int dissect_event_checking_status(packet_info *pinfo _U_, proto_tree *tre
static int dissect_actual_data_set_bits(packet_info *pinfo _U_, proto_tree *tree, proto_item *item _U_, tvbuff_t *tvb,
int offset, int total_len _U_)
{
static const int* bits[] = {
static int* const bits[] = {
&hf_cip_act_data_pos,
&hf_cip_act_data_vel,
&hf_cip_act_data_acc,
@ -656,7 +656,7 @@ static int dissect_actual_data_set_bits(packet_info *pinfo _U_, proto_tree *tree
static int dissect_command_data_set_bits(packet_info *pinfo _U_, proto_tree *tree, proto_item *item _U_, tvbuff_t *tvb,
int offset, int total_len _U_)
{
static const int* bits[] = {
static int* const bits[] = {
&hf_cip_cmd_data_pos_cmd,
&hf_cip_cmd_data_vel_cmd,
&hf_cip_cmd_data_acc_cmd,
@ -672,7 +672,7 @@ static int dissect_command_data_set_bits(packet_info *pinfo _U_, proto_tree *tre
static int dissect_command_control(packet_info *pinfo _U_, proto_tree *tree, proto_item *item _U_, tvbuff_t *tvb,
int offset, int total_len _U_)
{
static const int* bits[] = {
static int* const bits[] = {
&hf_cip_intrp,
&hf_cip_position_data_type,
NULL
@ -686,7 +686,7 @@ static int dissect_command_control(packet_info *pinfo _U_, proto_tree *tree, pro
static int dissect_status_data_set_bits(packet_info *pinfo _U_, proto_tree *tree, proto_item *item _U_, tvbuff_t *tvb,
int offset, int total_len _U_)
{
static const int* bits[] = {
static int* const bits[] = {
&hf_cip_sts_flt,
&hf_cip_sts_alrm,
&hf_cip_sts_sts,
@ -703,7 +703,7 @@ static int dissect_status_data_set_bits(packet_info *pinfo _U_, proto_tree *tree
static int dissect_node_control(packet_info *pinfo _U_, proto_tree *tree, proto_item *item _U_, tvbuff_t *tvb,
int offset, int total_len _U_)
{
static const int* bits[] = {
static int* const bits[] = {
&hf_cip_node_control_remote,
&hf_cip_node_control_sync,
&hf_cip_node_data_valid,
@ -719,7 +719,7 @@ static int dissect_node_control(packet_info *pinfo _U_, proto_tree *tree, proto_
static int dissect_node_status(packet_info *pinfo _U_, proto_tree *tree, proto_item *item _U_, tvbuff_t *tvb,
int offset, int total_len _U_)
{
static const int* bits[] = {
static int* const bits[] = {
&hf_cip_node_control_remote,
&hf_cip_node_control_sync,
&hf_cip_node_data_valid,
@ -735,7 +735,7 @@ static int dissect_node_status(packet_info *pinfo _U_, proto_tree *tree, proto_i
static int dissect_time_data_set(packet_info *pinfo _U_, proto_tree *tree, proto_item *item _U_, tvbuff_t *tvb,
int offset, int total_len _U_)
{
static const int* bits[] = {
static int* const bits[] = {
&hf_cip_time_data_stamp,
&hf_cip_time_data_offset,
&hf_cip_time_data_diag,
@ -751,7 +751,7 @@ static int dissect_time_data_set(packet_info *pinfo _U_, proto_tree *tree, proto
static int dissect_control_status(packet_info *pinfo _U_, proto_tree *tree, proto_item *item _U_, tvbuff_t *tvb,
int offset, int total_len _U_)
{
static const int* bits[] = {
static int* const bits[] = {
&hf_cip_control_status_complete,
&hf_cip_control_status_bus_up,
&hf_cip_control_status_bus_unload,
@ -767,7 +767,7 @@ static int dissect_control_status(packet_info *pinfo _U_, proto_tree *tree, prot
static int dissect_feedback_mode(packet_info *pinfo _U_, proto_tree *tree, proto_item *item _U_, tvbuff_t *tvb,
int offset, int total_len _U_)
{
static const int* bits[] = {
static int* const bits[] = {
&hf_cip_feedback_mode,
&hf_cip_feedback_data_type,
NULL
@ -781,7 +781,7 @@ static int dissect_feedback_mode(packet_info *pinfo _U_, proto_tree *tree, proto
static int dissect_connection_configuration_bits(packet_info* pinfo _U_, proto_tree* tree, proto_item* item _U_, tvbuff_t* tvb,
int offset, int total_len _U_)
{
static const int* bits[] = {
static int* const bits[] = {
&hf_connection_configuration_bits_power,
&hf_connection_configuration_bits_safety_bit_valid,
&hf_connection_configuration_bits_allow_network_safety,

View File

@ -944,7 +944,7 @@ static int dissect_s_validator_type(packet_info *pinfo, proto_tree *tree, proto_
return total_len;
}
static const int* bits[] = {
static int* const bits[] = {
&hf_cip_svalidator_type_pc,
&hf_cip_svalidator_type_conn_type,
NULL
@ -1439,7 +1439,7 @@ static void
dissect_ack_byte( proto_tree *tree, tvbuff_t *tvb, int offset)
{
// TODO: add ack_byte validation
static const int* bits[] = {
static int* const bits[] = {
&hf_cipsafety_ack_byte_ping_count_reply,
&hf_cipsafety_ack_byte_reserved1,
&hf_cipsafety_ack_byte_ping_response,
@ -1455,7 +1455,7 @@ static void
dissect_mcast_byte( proto_tree *tree, tvbuff_t *tvb, int offset)
{
// TODO: add mcast_byte validation
static const int* bits[] = {
static int* const bits[] = {
&hf_cipsafety_mcast_byte_consumer_num,
&hf_cipsafety_mcast_byte_reserved1,
&hf_cipsafety_mcast_byte_mai,

View File

@ -2171,7 +2171,7 @@ dissect_cmip_CMIPAbortInfo(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int off
}
static const int * FunctionalUnits_bits[] = {
static int * const FunctionalUnits_bits[] = {
&hf_cmip_FunctionalUnits_multipleObjectSelection,
&hf_cmip_FunctionalUnits_filter,
&hf_cmip_FunctionalUnits_multipleReply,
@ -2190,7 +2190,7 @@ dissect_cmip_FunctionalUnits(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int o
}
static const int * ProtocolVersion_bits[] = {
static int * const ProtocolVersion_bits[] = {
&hf_cmip_ProtocolVersion_version1,
&hf_cmip_ProtocolVersion_version2,
NULL
@ -3508,7 +3508,7 @@ dissect_cmip_UsageState(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset
}
static const int * T_daysOfWeek_bits[] = {
static int * const T_daysOfWeek_bits[] = {
&hf_cmip_T_daysOfWeek_sunday,
&hf_cmip_T_daysOfWeek_monday,
&hf_cmip_T_daysOfWeek_tuesday,

View File

@ -495,7 +495,7 @@ dissect_cmp_PKIStatus(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _
}
static const int * PKIFailureInfo_bits[] = {
static int * const PKIFailureInfo_bits[] = {
&hf_cmp_PKIFailureInfo_badAlg,
&hf_cmp_PKIFailureInfo_badMessageCheck,
&hf_cmp_PKIFailureInfo_badRequest,

View File

@ -71,7 +71,7 @@ static int dissect_cnip (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, vo
proto_tree *ti;
proto_tree *cnip_tree;
static const gint *pf_fields[] = {
static int * const pf_fields[] = {
&hf_cnip_pf_sec,
&hf_cnip_pf_pcode,
NULL

View File

@ -6015,7 +6015,7 @@ cops_analyze_packetcable_dqos_obj(tvbuff_t *tvb, packet_info *pinfo, proto_tree
static void
decode_docsis_request_transmission_policy(tvbuff_t *tvb, guint32 offset, proto_tree *tree) {
static const int *policies[] = {
static int * const policies[] = {
&hf_cops_pcmm_request_transmission_policy_sf_all_cm,
&hf_cops_pcmm_request_transmission_policy_sf_priority,
&hf_cops_pcmm_request_transmission_policy_sf_request_for_request,

View File

@ -872,14 +872,14 @@ const value_string vbucket_states_vals[] = {
{0, NULL}
};
static const int * datatype_vals[] = {
static int * const datatype_vals[] = {
&hf_datatype_json,
&hf_datatype_snappy,
&hf_datatype_xattr,
NULL
};
static const int * subdoc_flags[] = {
static int * const subdoc_flags[] = {
&hf_subdoc_flags_mkdirp,
&hf_subdoc_flags_xattrpath,
&hf_subdoc_flags_expandmacros,
@ -887,7 +887,7 @@ static const int * subdoc_flags[] = {
NULL
};
static const int * subdoc_doc_flags[] = {
static int * const subdoc_doc_flags[] = {
&hf_subdoc_doc_flags_mkdoc,
&hf_subdoc_doc_flags_add,
&hf_subdoc_doc_flags_accessdeleted,
@ -895,7 +895,7 @@ static const int * subdoc_doc_flags[] = {
NULL
};
static const int *set_with_meta_extra_flags[] = {
static int * const set_with_meta_extra_flags[] = {
&hf_force_meta,
&hf_force_accept,
&hf_regenerate_cas,
@ -903,7 +903,7 @@ static const int *set_with_meta_extra_flags[] = {
NULL
};
static const int *del_with_meta_extra_flags[] = {
static int * const del_with_meta_extra_flags[] = {
&hf_force_meta,
&hf_force_accept,
&hf_regenerate_cas,
@ -945,7 +945,7 @@ static const value_string dcp_system_event_id_vals [] = {
{0, NULL}
};
static const int * snapshot_marker_flags [] = {
static int * const snapshot_marker_flags [] = {
&hf_extras_flags_dcp_snapshot_marker_memory,
&hf_extras_flags_dcp_snapshot_marker_disk,
&hf_extras_flags_dcp_snapshot_marker_chk,
@ -1231,7 +1231,7 @@ dissect_extras(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
case PROTOCOL_BINARY_CMD_TAP_CONNECT:
{
static const int * extra_flags[] = {
static int * const extra_flags[] = {
&hf_extras_flags_backfill,
&hf_extras_flags_dump,
&hf_extras_flags_list_vbuckets,
@ -1280,7 +1280,7 @@ dissect_extras(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
case PROTOCOL_BINARY_DCP_OPEN_CONNECTION:
if (extlen) {
if (request) {
static const int * extra_flags[] = {
static int * const extra_flags[] = {
&hf_extras_flags_dcp_connection_type,
&hf_extras_flags_dcp_include_xattrs,
&hf_extras_flags_dcp_no_value,
@ -1306,7 +1306,7 @@ dissect_extras(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
case PROTOCOL_BINARY_DCP_ADD_STREAM:
if (extlen) {
if (request) {
static const int * extra_flags[] = {
static int * const extra_flags[] = {
&hf_extras_flags_dcp_add_stream_takeover,
&hf_extras_flags_dcp_add_stream_diskonly,
&hf_extras_flags_dcp_add_stream_latest,
@ -1327,7 +1327,7 @@ dissect_extras(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
case PROTOCOL_BINARY_DCP_STREAM_REQUEST:
if (extlen) {
if (request) {
static const int * extra_flags[] = {
static int * const extra_flags[] = {
NULL
};
@ -1381,7 +1381,7 @@ dissect_extras(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
case PROTOCOL_BINARY_DCP_MUTATION:
if (extlen) {
if (request) {
static const int * extra_flags[] = {
static int * const extra_flags[] = {
NULL
};
@ -1501,7 +1501,7 @@ dissect_extras(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
case PROTOCOL_BINARY_DCP_PREPARE: {
if (extlen) {
if (request) {
static const int * extra_flags[] = {
static int * const extra_flags[] = {
NULL
};
proto_tree_add_item(extras_tree, hf_extras_by_seqno, tvb, offset, 8, ENC_BIG_ENDIAN);
@ -1592,7 +1592,7 @@ dissect_extras(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
case PROTOCOL_BINARY_DCP_OSO_SNAPSHOT: {
if (extlen) {
if (request) {
static const int * extra_flags[] = {
static int * const extra_flags[] = {
&hf_extras_flags_dcp_oso_snapshot_begin,
&hf_extras_flags_dcp_oso_snapshot_end,
NULL

View File

@ -294,7 +294,7 @@ static int hf_cp2179_timetag_event_second = -1;
static dissector_handle_t cp2179_handle;
static const int *cp2179_simplestatus_bits[] = {
static int * const cp2179_simplestatus_bits[] = {
&hf_cp2179_simplestatusbit0,
&hf_cp2179_simplestatusbit1,
&hf_cp2179_simplestatusbit2,
@ -314,7 +314,7 @@ static const int *cp2179_simplestatus_bits[] = {
NULL
};
static const int *cp2179_2bitstatus_bits[] = {
static int * const cp2179_2bitstatus_bits[] = {
&hf_cp2179_2bitstatuschg0,
&hf_cp2179_2bitstatuschg1,
&hf_cp2179_2bitstatuschg2,

View File

@ -388,7 +388,7 @@ dissect_cql_query_parameters(proto_tree* cql_subtree, tvbuff_t* tvb, gint offset
guint32 string_length = 0;
guint32 value_count = 0;
static const int * cql_query_bitmaps[] = {
static int * const cql_query_bitmaps[] = {
&hf_cql_query_flags_values,
&hf_cql_query_flags_skip_metadata,
&hf_cql_query_flags_page_size,
@ -967,21 +967,21 @@ dissect_cql_tcp_pdu(tvbuff_t* raw_tvb, packet_info* pinfo, proto_tree* tree, voi
cql_transaction_type* cql_trans = NULL;
cql_compression_level compression_level = CQL_COMPRESSION_NONE;
static const int * cql_batch_flags_bitmaps[] = {
static int * const cql_batch_flags_bitmaps[] = {
&hf_cql_batch_flag_serial_consistency,
&hf_cql_batch_flag_default_timestamp,
&hf_cql_batch_flag_with_name_for_values,
NULL
};
static const int * cql_header_bitmaps_v3[] = {
static int * const cql_header_bitmaps_v3[] = {
&hf_cql_flag_compression,
&hf_cql_flag_tracing,
&hf_cql_flag_reserved3,
NULL
};
static const int * cql_header_bitmaps_v4[] = {
static int * const cql_header_bitmaps_v4[] = {
&hf_cql_flag_compression,
&hf_cql_flag_tracing,
&hf_cql_flag_custom_payload,

View File

@ -219,7 +219,7 @@ dissect_csm_encaps(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* da
if (tree) {
static const int * control_flags[] = {
static int * const control_flags[] = {
&hf_csm_encaps_ctrl_ack,
&hf_csm_encaps_ctrl_ack_suppress,
&hf_csm_encaps_ctrl_endian,

View File

@ -749,7 +749,7 @@ dissect_dap_FamilyGrouping(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int off
}
static const int * ServiceControlOptions_bits[] = {
static int * const ServiceControlOptions_bits[] = {
&hf_dap_ServiceControlOptions_preferChaining,
&hf_dap_ServiceControlOptions_chainingProhibited,
&hf_dap_ServiceControlOptions_localScope,
@ -2013,7 +2013,7 @@ dissect_dap_Credentials(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset
}
static const int * Versions_bits[] = {
static int * const Versions_bits[] = {
&hf_dap_Versions_v1,
&hf_dap_Versions_v2,
NULL
@ -2302,7 +2302,7 @@ dissect_dap_T_item(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_,
}
static const int * T_permission_bits[] = {
static int * const T_permission_bits[] = {
&hf_dap_T_permission_add,
&hf_dap_T_permission_remove,
&hf_dap_T_permission_rename,
@ -2979,7 +2979,7 @@ dissect_dap_T_subset(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U
}
static const int * HierarchySelections_bits[] = {
static int * const HierarchySelections_bits[] = {
&hf_dap_HierarchySelections_self,
&hf_dap_HierarchySelections_children,
&hf_dap_HierarchySelections_parent,
@ -3003,7 +3003,7 @@ dissect_dap_HierarchySelections(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, in
}
static const int * SearchControlOptions_bits[] = {
static int * const SearchControlOptions_bits[] = {
&hf_dap_SearchControlOptions_searchAliases,
&hf_dap_SearchControlOptions_matchedValuesOnly,
&hf_dap_SearchControlOptions_checkOverspecified,

View File

@ -363,7 +363,7 @@ int
atsvc_dissect_bitmap_DaysOfMonth(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, dcerpc_info* di _U_, guint8 *drep _U_, int hf_index _U_, guint32 param _U_)
{
proto_item *item;
static const int * atsvc_atsvc_DaysOfMonth_fields[] = {
static int * const atsvc_atsvc_DaysOfMonth_fields[] = {
&hf_atsvc_atsvc_DaysOfMonth_First,
&hf_atsvc_atsvc_DaysOfMonth_Second,
&hf_atsvc_atsvc_DaysOfMonth_Third,
@ -429,7 +429,7 @@ int
atsvc_dissect_bitmap_Flags(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, dcerpc_info* di _U_, guint8 *drep _U_, int hf_index _U_, guint32 param _U_)
{
proto_item *item;
static const int * atsvc_atsvc_Flags_fields[] = {
static int * const atsvc_atsvc_Flags_fields[] = {
&hf_atsvc_atsvc_Flags_JOB_RUN_PERIODICALLY,
&hf_atsvc_atsvc_Flags_JOB_EXEC_ERROR,
&hf_atsvc_atsvc_Flags_JOB_RUNS_TODAY,
@ -470,7 +470,7 @@ int
atsvc_dissect_bitmap_DaysOfWeek(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, dcerpc_info* di _U_, guint8 *drep _U_, int hf_index _U_, guint32 param _U_)
{
proto_item *item;
static const int * atsvc_atsvc_DaysOfWeek_fields[] = {
static int * const atsvc_atsvc_DaysOfWeek_fields[] = {
&hf_atsvc_atsvc_DaysOfWeek_DAYSOFWEEK_MONDAY,
&hf_atsvc_atsvc_DaysOfWeek_DAYSOFWEEK_TUESDAY,
&hf_atsvc_atsvc_DaysOfWeek_DAYSOFWEEK_WEDNESDAY,

View File

@ -3232,7 +3232,7 @@ int
clusapi_dissect_bitmap_ClusterEnumType(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, dcerpc_info* di _U_, guint8 *drep _U_, int hf_index _U_, guint32 param _U_)
{
proto_item *item;
static const int * clusapi_ClusterEnumType_fields[] = {
static int * const clusapi_ClusterEnumType_fields[] = {
&hf_clusapi_ClusterEnumType_CLUSTER_ENUM_NODE,
&hf_clusapi_ClusterEnumType_CLUSTER_ENUM_RESTYPE,
&hf_clusapi_ClusterEnumType_CLUSTER_ENUM_RESOURCE,
@ -3978,7 +3978,7 @@ int
clusapi_dissect_bitmap_ClusterGroupEnumType(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, dcerpc_info* di _U_, guint8 *drep _U_, int hf_index _U_, guint32 param _U_)
{
proto_item *item;
static const int * clusapi_ClusterGroupEnumType_fields[] = {
static int * const clusapi_ClusterGroupEnumType_fields[] = {
&hf_clusapi_ClusterGroupEnumType_CLUSTER_GROUP_ENUM_CONTAINS,
&hf_clusapi_ClusterGroupEnumType_CLUSTER_GROUP_ENUM_NODES,
NULL
@ -4357,7 +4357,7 @@ int
clusapi_dissect_bitmap_ClusterResTypeEnumType(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, dcerpc_info* di _U_, guint8 *drep _U_, int hf_index _U_, guint32 param _U_)
{
proto_item *item;
static const int * clusapi_ClusterResTypeEnumType_fields[] = {
static int * const clusapi_ClusterResTypeEnumType_fields[] = {
&hf_clusapi_ClusterResTypeEnumType_CLUSTER_RESOURCE_TYPE_ENUM_NODES,
&hf_clusapi_ClusterResTypeEnumType_CLUSTER_RESOURCE_TYPE_ENUM_RESOURCES,
NULL
@ -4475,7 +4475,7 @@ int
clusapi_dissect_bitmap_DesiredAccessMask(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, dcerpc_info* di _U_, guint8 *drep _U_, int hf_index _U_, guint32 param _U_)
{
proto_item *item;
static const int * clusapi_clusapi_DesiredAccessMask_fields[] = {
static int * const clusapi_clusapi_DesiredAccessMask_fields[] = {
&hf_clusapi_clusapi_DesiredAccessMask_CLUSAPI_READ_ACCESS,
&hf_clusapi_clusapi_DesiredAccessMask_CLUSAPI_CHANGE_ACCESS,
&hf_clusapi_clusapi_DesiredAccessMask_CLUSAPI_GENERIC_READ,

View File

@ -660,7 +660,7 @@ int
netdfs_dissect_bitmap_dfs_VolumeState(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, dcerpc_info* di _U_, guint8 *drep _U_, int hf_index _U_, guint32 param _U_)
{
proto_item *item;
static const int * netdfs_dfs_VolumeState_fields[] = {
static int * const netdfs_dfs_VolumeState_fields[] = {
&hf_netdfs_dfs_VolumeState_DFS_VOLUME_STATE_OK,
&hf_netdfs_dfs_VolumeState_DFS_VOLUME_STATE_INCONSISTENT,
&hf_netdfs_dfs_VolumeState_DFS_VOLUME_STATE_OFFLINE,
@ -796,7 +796,7 @@ int
netdfs_dissect_bitmap_dfs_StorageState(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, dcerpc_info* di _U_, guint8 *drep _U_, int hf_index _U_, guint32 param _U_)
{
proto_item *item;
static const int * netdfs_dfs_StorageState_fields[] = {
static int * const netdfs_dfs_StorageState_fields[] = {
&hf_netdfs_dfs_StorageState_DFS_STORAGE_STATE_OFFLINE,
&hf_netdfs_dfs_StorageState_DFS_STORAGE_STATE_ONLINE,
&hf_netdfs_dfs_StorageState_DFS_STORAGE_STATE_ACTIVE,
@ -1190,7 +1190,7 @@ int
netdfs_dissect_bitmap_dfs_PropertyFlags(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, dcerpc_info* di _U_, guint8 *drep _U_, int hf_index _U_, guint32 param _U_)
{
proto_item *item;
static const int * netdfs_dfs_PropertyFlags_fields[] = {
static int * const netdfs_dfs_PropertyFlags_fields[] = {
&hf_netdfs_dfs_PropertyFlags_DFS_PROPERTY_FLAG_INSITE_REFERRALS,
&hf_netdfs_dfs_PropertyFlags_DFS_PROPERTY_FLAG_ROOT_SCALABILITY,
&hf_netdfs_dfs_PropertyFlags_DFS_PROPERTY_FLAG_SITE_COSTING,

View File

@ -745,7 +745,7 @@ int
dnsserver_dissect_bitmap_DNS_LOG_LEVELS(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, dcerpc_info* di _U_, guint8 *drep _U_, int hf_index _U_, guint32 param _U_)
{
proto_item *item;
static const int * dnsserver_DNS_LOG_LEVELS_fields[] = {
static int * const dnsserver_DNS_LOG_LEVELS_fields[] = {
&hf_dnsserver_DNS_LOG_LEVELS_DNS_LOG_LEVEL_QUERY,
&hf_dnsserver_DNS_LOG_LEVELS_DNS_LOG_LEVEL_NOTIFY,
&hf_dnsserver_DNS_LOG_LEVELS_DNS_LOG_LEVEL_UPDATE,
@ -789,7 +789,7 @@ int
dnsserver_dissect_bitmap_DNS_RPC_PROTOCOLS(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, dcerpc_info* di _U_, guint8 *drep _U_, int hf_index _U_, guint32 param _U_)
{
proto_item *item;
static const int * dnsserver_DNS_RPC_PROTOCOLS_fields[] = {
static int * const dnsserver_DNS_RPC_PROTOCOLS_fields[] = {
&hf_dnsserver_DNS_RPC_PROTOCOLS_DNS_RPC_USE_TCPIP,
&hf_dnsserver_DNS_RPC_PROTOCOLS_DNS_RPC_USE_NAMED_PIPE,
&hf_dnsserver_DNS_RPC_PROTOCOLS_DNS_RPC_USE_LPC,
@ -907,7 +907,7 @@ int
dnsserver_dissect_bitmap_DNS_SELECT_FLAGS(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, dcerpc_info* di _U_, guint8 *drep _U_, int hf_index _U_, guint32 param _U_)
{
proto_item *item;
static const int * dnsserver_DNS_SELECT_FLAGS_fields[] = {
static int * const dnsserver_DNS_SELECT_FLAGS_fields[] = {
&hf_dnsserver_DNS_SELECT_FLAGS_DNS_RPC_VIEW_AUTHORITY_DATA,
&hf_dnsserver_DNS_SELECT_FLAGS_DNS_RPC_VIEW_CACHE_DATA,
&hf_dnsserver_DNS_SELECT_FLAGS_DNS_RPC_VIEW_GLUE_DATA,
@ -956,7 +956,7 @@ int
dnsserver_dissect_bitmap_DNS_RPC_NODE_FLAGS(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, dcerpc_info* di _U_, guint8 *drep _U_, int hf_index _U_, guint32 param _U_)
{
proto_item *item;
static const int * dnsserver_DNS_RPC_NODE_FLAGS_fields[] = {
static int * const dnsserver_DNS_RPC_NODE_FLAGS_fields[] = {
&hf_dnsserver_DNS_RPC_NODE_FLAGS_DNS_RPC_FLAG_CACHE_DATA,
&hf_dnsserver_DNS_RPC_NODE_FLAGS_DNS_RPC_FLAG_ZONE_ROOT,
&hf_dnsserver_DNS_RPC_NODE_FLAGS_DNS_RPC_FLAG_AUTH_ZONE_ROOT,

View File

@ -165,7 +165,7 @@ int
dssetup_dissect_bitmap_DsRoleFlags(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, dcerpc_info* di _U_, guint8 *drep _U_, int hf_index _U_, guint32 param _U_)
{
proto_item *item;
static const int * dssetup_dssetup_DsRoleFlags_fields[] = {
static int * const dssetup_dssetup_DsRoleFlags_fields[] = {
&hf_dssetup_dssetup_DsRoleFlags_DS_ROLE_PRIMARY_DS_RUNNING,
&hf_dssetup_dssetup_DsRoleFlags_DS_ROLE_PRIMARY_DS_MIXED_MODE,
&hf_dssetup_dssetup_DsRoleFlags_DS_ROLE_UPGRADE_IN_PROGRESS,

View File

@ -376,7 +376,7 @@ int
eventlog_dissect_bitmap_eventlogReadFlags(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, dcerpc_info* di _U_, guint8 *drep _U_, int hf_index _U_, guint32 param _U_)
{
proto_item *item;
static const int * eventlog_eventlogReadFlags_fields[] = {
static int * const eventlog_eventlogReadFlags_fields[] = {
&hf_eventlog_eventlogReadFlags_EVENTLOG_SEQUENTIAL_READ,
&hf_eventlog_eventlogReadFlags_EVENTLOG_SEEK_READ,
&hf_eventlog_eventlogReadFlags_EVENTLOG_FORWARDS_READ,
@ -416,7 +416,7 @@ int
eventlog_dissect_bitmap_eventlogEventTypes(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, dcerpc_info* di _U_, guint8 *drep _U_, int hf_index _U_, guint32 param _U_)
{
proto_item *item;
static const int * eventlog_eventlogEventTypes_fields[] = {
static int * const eventlog_eventlogEventTypes_fields[] = {
&hf_eventlog_eventlogEventTypes_EVENTLOG_ERROR_TYPE,
&hf_eventlog_eventlogEventTypes_EVENTLOG_WARNING_TYPE,
&hf_eventlog_eventlogEventTypes_EVENTLOG_INFORMATION_TYPE,

View File

@ -888,7 +888,7 @@ int
frsrpc_dissect_bitmap_CommPktCoCmdFlags(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, dcerpc_info* di _U_, guint8 *drep _U_, int hf_index _U_, guint32 param _U_)
{
proto_item *item;
static const int * frsrpc_frsrpc_CommPktCoCmdFlags_fields[] = {
static int * const frsrpc_frsrpc_CommPktCoCmdFlags_fields[] = {
&hf_frsrpc_frsrpc_CommPktCoCmdFlags_FRSRPC_CO_FLAG_ABORT_CO,
&hf_frsrpc_frsrpc_CommPktCoCmdFlags_FRSRPC_CO_FLAG_VV_ACTIVATED,
&hf_frsrpc_frsrpc_CommPktCoCmdFlags_FRSRPC_CO_FLAG_CONTENT_CMD,
@ -939,7 +939,7 @@ int
frsrpc_dissect_bitmap_CommPktCoCmdIFlags(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, dcerpc_info* di _U_, guint8 *drep _U_, int hf_index _U_, guint32 param _U_)
{
proto_item *item;
static const int * frsrpc_frsrpc_CommPktCoCmdIFlags_fields[] = {
static int * const frsrpc_frsrpc_CommPktCoCmdIFlags_fields[] = {
&hf_frsrpc_frsrpc_CommPktCoCmdIFlags_FRSRPC_CO_IFLAG_VVRETIRE_EXEC,
&hf_frsrpc_frsrpc_CommPktCoCmdIFlags_FRSRPC_CO_IFLAG_CO_ABORT,
&hf_frsrpc_frsrpc_CommPktCoCmdIFlags_FRSRPC_CO_IFLAG_DIR_ENUM_PENDING,
@ -1026,7 +1026,7 @@ int
frsrpc_dissect_bitmap_CommPktCoCmdContentCmd(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, dcerpc_info* di _U_, guint8 *drep _U_, int hf_index _U_, guint32 param _U_)
{
proto_item *item;
static const int * frsrpc_frsrpc_CommPktCoCmdContentCmd_fields[] = {
static int * const frsrpc_frsrpc_CommPktCoCmdContentCmd_fields[] = {
&hf_frsrpc_frsrpc_CommPktCoCmdContentCmd_FRSRPC_CONTENT_REASON_DATA_OVERWRITE,
&hf_frsrpc_frsrpc_CommPktCoCmdContentCmd_FRSRPC_CONTENT_REASON_DATA_EXTEND,
&hf_frsrpc_frsrpc_CommPktCoCmdContentCmd_FRSRPC_CONTENT_REASON_DATA_TRUNCATION,

View File

@ -363,7 +363,7 @@ int
frstrans_dissect_bitmap_TransportFlags(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, dcerpc_info* di _U_, guint8 *drep _U_, int hf_index _U_, guint32 param _U_)
{
proto_item *item;
static const int * frstrans_frstrans_TransportFlags_fields[] = {
static int * const frstrans_frstrans_TransportFlags_fields[] = {
&hf_frstrans_frstrans_TransportFlags_FRSTRANS_TRANSPORT_SUPPORTS_RDC_SIMILARITY,
NULL
};

View File

@ -202,7 +202,7 @@ int
initshutdown_dissect_bitmap_ReasonFlags(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, dcerpc_info* di _U_, guint8 *drep _U_, int hf_index _U_, guint32 param _U_)
{
proto_item *item;
static const int * initshutdown_initshutdown_ReasonFlags_fields[] = {
static int * const initshutdown_initshutdown_ReasonFlags_fields[] = {
&hf_initshutdown_initshutdown_ReasonFlags_SHTDN_REASON_FLAG_USER_DEFINED,
&hf_initshutdown_initshutdown_ReasonFlags_SHTDN_REASON_FLAG_PLANNED,
NULL

View File

@ -1317,7 +1317,7 @@ static int lsarpc_dissect_element_lsa_LookupNames4_unknown2(tvbuff_t *tvb _U_, i
static void
lsarpc_policy_specific_rights(tvbuff_t *tvb, gint offset, proto_tree *tree, guint32 access)
{
static const int* access_flags[] = {
static int* const access_flags[] = {
&hf_lsarpc_lsa_PolicyAccessMask_LSA_POLICY_NOTIFICATION,
&hf_lsarpc_lsa_PolicyAccessMask_LSA_POLICY_LOOKUP_NAMES,
&hf_lsarpc_lsa_PolicyAccessMask_LSA_POLICY_SERVER_ADMIN,
@ -1338,7 +1338,7 @@ lsarpc_policy_specific_rights(tvbuff_t *tvb, gint offset, proto_tree *tree, guin
static void
lsarpc_account_specific_rights(tvbuff_t *tvb, gint offset, proto_tree *tree, guint32 access)
{
static const int* access_flags[] = {
static int* const access_flags[] = {
&hf_lsarpc_lsa_AccountAccessMask_LSA_ACCOUNT_ADJUST_SYSTEM_ACCESS,
&hf_lsarpc_lsa_AccountAccessMask_LSA_ACCOUNT_ADJUST_QUOTAS,
&hf_lsarpc_lsa_AccountAccessMask_LSA_ACCOUNT_ADJUST_PRIVILEGES,
@ -1350,7 +1350,7 @@ lsarpc_account_specific_rights(tvbuff_t *tvb, gint offset, proto_tree *tree, gui
static void
lsarpc_secret_specific_rights(tvbuff_t *tvb, gint offset, proto_tree *tree, guint32 access)
{
static const int* access_flags[] = {
static int* const access_flags[] = {
&hf_lsarpc_lsa_SecretAccessMask_LSA_SECRET_QUERY_VALUE,
&hf_lsarpc_lsa_SecretAccessMask_LSA_SECRET_SET_VALUE,
NULL
@ -1360,7 +1360,7 @@ lsarpc_secret_specific_rights(tvbuff_t *tvb, gint offset, proto_tree *tree, guin
static void
lsarpc_domain_specific_rights(tvbuff_t *tvb, gint offset, proto_tree *tree, guint32 access)
{
static const int* access_flags[] = {
static int* const access_flags[] = {
&hf_lsarpc_lsa_DomainAccessMask_LSA_DOMAIN_QUERY_AUTH,
&hf_lsarpc_lsa_DomainAccessMask_LSA_DOMAIN_SET_AUTH,
&hf_lsarpc_lsa_DomainAccessMask_LSA_DOMAIN_SET_POSIX,

View File

@ -9206,7 +9206,7 @@ int
mapi_dissect_bitmap_ulEventType(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, dcerpc_info* di _U_, guint8 *drep _U_, int hf_index _U_, guint32 param _U_)
{
proto_item *item;
static const int * mapi_ulEventType_fields[] = {
static int * const mapi_ulEventType_fields[] = {
&hf_mapi_ulEventType_fnevCriticalError,
&hf_mapi_ulEventType_fnevNewMail,
&hf_mapi_ulEventType_fnevObjectCreated,

View File

@ -607,7 +607,7 @@ netlogon_dissect_EXTRA_FLAGS(tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *parent_tree, dcerpc_info *di, guint8 *drep)
{
guint32 mask;
static const int * extraflags[] = {
static int * const extraflags[] = {
&hf_netlogon_extra_flags_root_forest,
&hf_netlogon_trust_flags_dc_firsthop,
&hf_netlogon_trust_flags_rodc_to_dc,
@ -777,7 +777,7 @@ netlogon_dissect_USER_ACCOUNT_CONTROL(tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *parent_tree, dcerpc_info *di, guint8 *drep)
{
guint32 mask;
static const int * uac[] = {
static int * const uac[] = {
&hf_netlogon_user_account_control_dont_require_preauth,
&hf_netlogon_user_account_control_use_des_key_only,
&hf_netlogon_user_account_control_not_delegated,
@ -1479,7 +1479,7 @@ netlogon_dissect_GROUP_MEMBERSHIP_ATTRIBUTES(tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *parent_tree, dcerpc_info *di, guint8 *drep)
{
guint32 mask;
static const int * attr[] = {
static int * const attr[] = {
&hf_netlogon_group_attrs_enabled,
&hf_netlogon_group_attrs_enabled_by_default,
&hf_netlogon_group_attrs_mandatory,
@ -1574,7 +1574,7 @@ netlogon_dissect_USER_FLAGS(tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *parent_tree, dcerpc_info *di, guint8 *drep)
{
guint32 mask;
static const int * flags[] = {
static int * const flags[] = {
&hf_netlogon_user_flags_resource_groups,
&hf_netlogon_user_flags_extra_sids,
NULL
@ -5310,7 +5310,7 @@ netlogon_dissect_DOMAIN_TRUST_FLAGS(tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *parent_tree, dcerpc_info *di, guint8 *drep)
{
guint32 mask;
static const int * flags[] = {
static int * const flags[] = {
&hf_netlogon_trust_flags_inbound,
&hf_netlogon_trust_flags_native_mode,
&hf_netlogon_trust_flags_primary,
@ -5368,7 +5368,7 @@ netlogon_dissect_DOMAIN_TRUST_ATTRIBS(tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *parent_tree, dcerpc_info *di, guint8 *drep)
{
guint32 mask;
static const int * attr[] = {
static int * const attr[] = {
&hf_netlogon_trust_attribs_treat_as_external,
&hf_netlogon_trust_attribs_within_forest,
&hf_netlogon_trust_attribs_cross_organization,
@ -5483,7 +5483,7 @@ netlogon_dissect_GET_DCNAME_REQUEST_FLAGS(tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *parent_tree, dcerpc_info *di, guint8 *drep)
{
guint32 mask;
static const int * flags[] = {
static int * const flags[] = {
&hf_netlogon_get_dcname_request_flags_return_flat_name,
&hf_netlogon_get_dcname_request_flags_return_dns_name,
&hf_netlogon_get_dcname_request_flags_is_flat_name,
@ -5589,7 +5589,7 @@ netlogon_dissect_DC_FLAGS(tvbuff_t *tvb, int offset,
{
guint32 mask;
proto_item *item;
static const int * flags[] = {
static int * const flags[] = {
&hf_netlogon_dc_flags_dns_forest_flag,
&hf_netlogon_dc_flags_dns_domain_flag,
&hf_netlogon_dc_flags_dns_controller_flag,
@ -6642,7 +6642,7 @@ netlogon_dissect_netrlogoncomputeclientdigest_reply(tvbuff_t *tvb, int offset,
}
static int netlogon_dissect_neg_options(tvbuff_t *tvb,proto_tree *tree,guint32 flags,int offset)
{
static const int * hf_flags[] = {
static int * const hf_flags[] = {
#if 0
&hf_netlogon_neg_flags_80000000,
#endif
@ -7612,7 +7612,7 @@ static int dissect_secchan_nl_auth_message(tvbuff_t *tvb, int offset,
proto_tree *subtree = NULL;
guint32 messagetype;
guint64 messageflags;
static const int *flag_fields[] = {
static int * const flag_fields[] = {
&hf_netlogon_secchan_nl_message_flags_nb_domain,
&hf_netlogon_secchan_nl_message_flags_nb_host,
&hf_netlogon_secchan_nl_message_flags_dns_domain,

View File

@ -1559,7 +1559,7 @@ dissect_ndr_nt_acct_ctrl(tvbuff_t *tvb, int offset, packet_info *pinfo,
proto_tree *parent_tree, dcerpc_info *di, guint8 *drep)
{
guint32 mask;
static const int * flags[] = {
static int * const flags[] = {
&hf_nt_acb_autolock,
&hf_nt_acb_pwnoexp,
&hf_nt_acb_svrtrust,

View File

@ -1987,7 +1987,7 @@ static int samr_dissect_element_ValidatePassword_rep__(tvbuff_t *tvb _U_, int of
static void
samr_connect_specific_rights(tvbuff_t *tvb, gint offset, proto_tree *tree, guint32 access)
{
static const int* access_flags[] = {
static int* const access_flags[] = {
&hf_samr_samr_ConnectAccessMask_SAMR_ACCESS_LOOKUP_DOMAIN,
&hf_samr_samr_ConnectAccessMask_SAMR_ACCESS_ENUM_DOMAINS,
&hf_samr_samr_ConnectAccessMask_SAMR_ACCESS_CREATE_DOMAIN,
@ -2015,7 +2015,7 @@ samr_dissect_bitmap_ConnectAccessMask(tvbuff_t *tvb, int offset, packet_info *pi
static void
samr_alias_specific_rights(tvbuff_t *tvb, gint offset, proto_tree *tree, guint32 access)
{
static const int* access_flags[] = {
static int* const access_flags[] = {
&hf_samr_samr_AliasAccessMask_SAMR_ALIAS_ACCESS_ADD_MEMBER,
&hf_samr_samr_AliasAccessMask_SAMR_ALIAS_ACCESS_REMOVE_MEMBER,
&hf_samr_samr_AliasAccessMask_SAMR_ALIAS_ACCESS_GET_MEMBERS,
@ -2042,7 +2042,7 @@ samr_dissect_bitmap_AliasAccessMask(tvbuff_t *tvb, int offset, packet_info *pinf
static void
samr_group_specific_rights(tvbuff_t *tvb, gint offset, proto_tree *tree, guint32 access)
{
static const int* access_flags[] = {
static int* const access_flags[] = {
&hf_samr_samr_GroupAccessMask_SAMR_GROUP_ACCESS_GET_MEMBERS,
&hf_samr_samr_GroupAccessMask_SAMR_GROUP_ACCESS_REMOVE_MEMBER,
&hf_samr_samr_GroupAccessMask_SAMR_GROUP_ACCESS_ADD_MEMBER,
@ -2069,7 +2069,7 @@ samr_dissect_bitmap_GroupAccessMask(tvbuff_t *tvb, int offset, packet_info *pinf
static void
samr_domain_specific_rights(tvbuff_t *tvb, gint offset, proto_tree *tree, guint32 access)
{
static const int* access_flags[] = {
static int* const access_flags[] = {
&hf_samr_samr_DomainAccessMask_SAMR_DOMAIN_ACCESS_LOOKUP_INFO_1,
&hf_samr_samr_DomainAccessMask_SAMR_DOMAIN_ACCESS_SET_INFO_1,
&hf_samr_samr_DomainAccessMask_SAMR_DOMAIN_ACCESS_LOOKUP_INFO_2,
@ -2102,7 +2102,7 @@ samr_dissect_bitmap_DomainAccessMask(tvbuff_t *tvb, int offset, packet_info *pin
static void
samr_user_specific_rights(tvbuff_t *tvb, gint offset, proto_tree *tree, guint32 access)
{
static const int* access_flags[] = {
static int* const access_flags[] = {
&hf_samr_samr_UserAccessMask_SAMR_USER_ACCESS_CHANGE_GROUP_MEMBERSHIP,
&hf_samr_samr_UserAccessMask_SAMR_USER_ACCESS_GET_GROUP_MEMBERSHIP,
&hf_samr_samr_UserAccessMask_SAMR_USER_ACCESS_GET_GROUPS,
@ -2369,7 +2369,7 @@ int
samr_dissect_bitmap_AcctFlags(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, dcerpc_info* di _U_, guint8 *drep _U_, int hf_index _U_, guint32 param _U_)
{
proto_item *item;
static const int * samr_samr_AcctFlags_fields[] = {
static int * const samr_samr_AcctFlags_fields[] = {
&hf_samr_samr_AcctFlags_ACB_DISABLED,
&hf_samr_samr_AcctFlags_ACB_HOMDIRREQ,
&hf_samr_samr_AcctFlags_ACB_PWNOTREQ,
@ -2658,7 +2658,7 @@ int
samr_dissect_bitmap_PasswordProperties(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, dcerpc_info* di _U_, guint8 *drep _U_, int hf_index _U_, guint32 param _U_)
{
proto_item *item;
static const int * samr_samr_PasswordProperties_fields[] = {
static int * const samr_samr_PasswordProperties_fields[] = {
&hf_samr_samr_PasswordProperties_DOMAIN_PASSWORD_COMPLEX,
&hf_samr_samr_PasswordProperties_DOMAIN_PASSWORD_NO_ANON_CHANGE,
&hf_samr_samr_PasswordProperties_DOMAIN_PASSWORD_NO_CLEAR_CHANGE,
@ -3718,7 +3718,7 @@ int
samr_dissect_bitmap_GroupAttrs(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, dcerpc_info* di _U_, guint8 *drep _U_, int hf_index _U_, guint32 param _U_)
{
proto_item *item;
static const int * samr_samr_GroupAttrs_fields[] = {
static int * const samr_samr_GroupAttrs_fields[] = {
&hf_samr_samr_GroupAttrs_SE_GROUP_MANDATORY,
&hf_samr_samr_GroupAttrs_SE_GROUP_ENABLED_BY_DEFAULT,
&hf_samr_samr_GroupAttrs_SE_GROUP_ENABLED,
@ -5727,7 +5727,7 @@ int
samr_dissect_bitmap_FieldsPresent(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, dcerpc_info* di _U_, guint8 *drep _U_, int hf_index _U_, guint32 param _U_)
{
proto_item *item;
static const int * samr_samr_FieldsPresent_fields[] = {
static int * const samr_samr_FieldsPresent_fields[] = {
&hf_samr_samr_FieldsPresent_SAMR_FIELD_ACCOUNT_NAME,
&hf_samr_samr_FieldsPresent_SAMR_FIELD_FULL_NAME,
&hf_samr_samr_FieldsPresent_SAMR_FIELD_RID,
@ -7895,7 +7895,7 @@ int
samr_dissect_bitmap_ValidateFieldsPresent(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, dcerpc_info* di _U_, guint8 *drep _U_, int hf_index _U_, guint32 param _U_)
{
proto_item *item;
static const int * samr_samr_ValidateFieldsPresent_fields[] = {
static int * const samr_samr_ValidateFieldsPresent_fields[] = {
&hf_samr_samr_ValidateFieldsPresent_SAMR_VALIDATE_FIELD_PASSWORD_LAST_SET,
&hf_samr_samr_ValidateFieldsPresent_SAMR_VALIDATE_FIELD_BAD_PASSWORD_TIME,
&hf_samr_samr_ValidateFieldsPresent_SAMR_VALIDATE_FIELD_LOCKOUT_TIME,

View File

@ -1405,7 +1405,7 @@ dissect_DEVMODE_fields(tvbuff_t *tvb, gint offset, packet_info *pinfo,
guint32 fields;
proto_item *hidden_item;
static const int * hf_fields[] = {
static int * const hf_fields[] = {
&hf_devmode_fields_orientation,
&hf_devmode_fields_papersize,
&hf_devmode_fields_paperlength,
@ -2005,7 +2005,7 @@ dissect_job_status(tvbuff_t *tvb, int offset, packet_info *pinfo,
proto_tree *tree, dcerpc_info *di, guint8 *drep)
{
guint32 status;
static const int * hf_status[] = {
static int * const hf_status[] = {
&hf_job_status_user_intervention,
&hf_job_status_blocked,
&hf_job_status_deleted,
@ -2123,7 +2123,7 @@ dissect_printer_attributes(tvbuff_t *tvb, int offset, packet_info *pinfo,
proto_tree *tree, dcerpc_info *di, guint8 *drep)
{
guint32 attributes;
static const int * hf_attributes[] = {
static int * const hf_attributes[] = {
&hf_printer_attributes_published,
&hf_printer_attributes_raw_only,
&hf_printer_attributes_enable_bidi,
@ -2232,7 +2232,7 @@ dissect_printer_driver_attributes(tvbuff_t *tvb, int offset, packet_info *pinfo,
proto_tree *tree, dcerpc_info *di, guint8 *drep)
{
guint32 attributes;
static const int * hf_attributes[] = {
static int * const hf_attributes[] = {
&hf_printer_driver_attributes_package_aware,
&hf_printer_driver_attributes_xps,
&hf_printer_driver_attributes_sandbox_enabled,
@ -2882,7 +2882,7 @@ dissect_notify_options_flags(tvbuff_t *tvb, int offset, packet_info *pinfo,
proto_tree *tree, dcerpc_info *di, guint8 *drep)
{
guint32 flags;
static const int * hf_flags[] = {
static int * const hf_flags[] = {
&hf_notify_options_flags_refresh,
NULL
};
@ -3061,7 +3061,7 @@ SpoolssRFFPCNEX_q(tvbuff_t *tvb, int offset,
dcerpc_info *di, guint8 *drep)
{
guint32 flags;
static const int * hf_flags[] = {
static int * const hf_flags[] = {
&hf_rffpcnex_flags_timeout,
&hf_rffpcnex_flags_delete_driver,
&hf_rffpcnex_flags_set_driver,
@ -3833,7 +3833,7 @@ SpoolssEnumPrinters_q(tvbuff_t *tvb, int offset, packet_info *pinfo,
{
guint32 level, flags;
dcerpc_call_value *dcv = (dcerpc_call_value *)di->call_data;
static const int * hf_flags[] = {
static int * const hf_flags[] = {
&hf_enumprinters_flags_network,
&hf_enumprinters_flags_shared,
&hf_enumprinters_flags_remote,

View File

@ -566,7 +566,7 @@ static int winreg_dissect_element_DeleteKeyEx_reserved(tvbuff_t *tvb _U_, int of
static void
winreg_specific_rights(tvbuff_t *tvb, gint offset, proto_tree *tree, guint32 access)
{
static const int* access_flags[] = {
static int* const access_flags[] = {
&hf_winreg_winreg_AccessMask_KEY_WOW64_32KEY,
&hf_winreg_winreg_AccessMask_KEY_WOW64_64KEY,
&hf_winreg_winreg_AccessMask_KEY_CREATE_LINK,
@ -886,7 +886,7 @@ int
winreg_dissect_bitmap_KeyOptions(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, dcerpc_info* di _U_, guint8 *drep _U_, int hf_index _U_, guint32 param _U_)
{
proto_item *item;
static const int * winreg_winreg_KeyOptions_fields[] = {
static int * const winreg_winreg_KeyOptions_fields[] = {
&hf_winreg_winreg_KeyOptions_REG_OPTION_VOLATILE,
&hf_winreg_winreg_KeyOptions_REG_OPTION_CREATE_LINK,
&hf_winreg_winreg_KeyOptions_REG_OPTION_BACKUP_RESTORE,
@ -1105,7 +1105,7 @@ int
winreg_dissect_bitmap_NotifyChangeType(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, dcerpc_info* di _U_, guint8 *drep _U_, int hf_index _U_, guint32 param _U_)
{
proto_item *item;
static const int * winreg_winreg_NotifyChangeType_fields[] = {
static int * const winreg_winreg_NotifyChangeType_fields[] = {
&hf_winreg_winreg_NotifyChangeType_REG_NOTIFY_CHANGE_NAME,
&hf_winreg_winreg_NotifyChangeType_REG_NOTIFY_CHANGE_ATTRIBUTES,
&hf_winreg_winreg_NotifyChangeType_REG_NOTIFY_CHANGE_LAST_SET,
@ -1143,7 +1143,7 @@ int
winreg_dissect_bitmap_RestoreKeyFlags(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, dcerpc_info* di _U_, guint8 *drep _U_, int hf_index _U_, guint32 param _U_)
{
proto_item *item;
static const int * winreg_winreg_RestoreKeyFlags_fields[] = {
static int * const winreg_winreg_RestoreKeyFlags_fields[] = {
&hf_winreg_winreg_RestoreKeyFlags_REG_WHOLE_HIVE_VOLATILE,
&hf_winreg_winreg_RestoreKeyFlags_REG_REFRESH_HIVE,
&hf_winreg_winreg_RestoreKeyFlags_REG_NO_LAZY_FLUSH,

View File

@ -1494,7 +1494,7 @@ int
iremotewinspool_dissect_bitmap_winspool_InstallPrinterDriverFromPackageFlags(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, dcerpc_info* di _U_, guint8 *drep _U_, int hf_index _U_, guint32 param _U_)
{
proto_item *item;
static const int * iremotewinspool_winspool_InstallPrinterDriverFromPackageFlags_fields[] = {
static int * const iremotewinspool_winspool_InstallPrinterDriverFromPackageFlags_fields[] = {
&hf_iremotewinspool_winspool_InstallPrinterDriverFromPackageFlags_IPDFP_COPY_ALL_FILES,
NULL
};
@ -1528,7 +1528,7 @@ int
iremotewinspool_dissect_bitmap_winspool_UploadPrinterDriverPackageFlags(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, dcerpc_info* di _U_, guint8 *drep _U_, int hf_index _U_, guint32 param _U_)
{
proto_item *item;
static const int * iremotewinspool_winspool_UploadPrinterDriverPackageFlags_fields[] = {
static int * const iremotewinspool_winspool_UploadPrinterDriverPackageFlags_fields[] = {
&hf_iremotewinspool_winspool_UploadPrinterDriverPackageFlags_UPDP_UPLOAD_ALWAYS,
&hf_iremotewinspool_winspool_UploadPrinterDriverPackageFlags_UPDP_CHECK_DRIVERSTORE,
NULL

View File

@ -442,7 +442,7 @@ int
witness_dissect_bitmap_interfaceInfo_flags(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, dcerpc_info* di _U_, guint8 *drep _U_, int hf_index _U_, guint32 param _U_)
{
proto_item *item;
static const int * witness_witness_interfaceInfo_flags_fields[] = {
static int * const witness_witness_interfaceInfo_flags_fields[] = {
&hf_witness_witness_interfaceInfo_flags_WITNESS_INFO_IPv4_VALID,
&hf_witness_witness_interfaceInfo_flags_WITNESS_INFO_IPv6_VALID,
&hf_witness_witness_interfaceInfo_flags_WITNESS_INFO_WITNESS_IF,
@ -743,7 +743,7 @@ int
witness_dissect_bitmap_IPaddrInfo_flags(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, dcerpc_info* di _U_, guint8 *drep _U_, int hf_index _U_, guint32 param _U_)
{
proto_item *item;
static const int * witness_witness_IPaddrInfo_flags_fields[] = {
static int * const witness_witness_IPaddrInfo_flags_fields[] = {
&hf_witness_witness_IPaddrInfo_flags_WITNESS_IPADDR_V4,
&hf_witness_witness_IPaddrInfo_flags_WITNESS_IPADDR_V6,
&hf_witness_witness_IPaddrInfo_flags_WITNESS_IPADDR_ONLINE,
@ -994,7 +994,7 @@ int
witness_dissect_bitmap_RegisterEx_flags(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, dcerpc_info* di _U_, guint8 *drep _U_, int hf_index _U_, guint32 param _U_)
{
proto_item *item;
static const int * witness_witness_RegisterEx_flags_fields[] = {
static int * const witness_witness_RegisterEx_flags_fields[] = {
&hf_witness_witness_RegisterEx_flags_WITNESS_REGISTER_IP_NOTIFICATION,
NULL
};

View File

@ -588,7 +588,7 @@ static int hf_dcerpc_sec_vt_bitmask_sign = -1;
static int hf_dcerpc_sec_vt_pcontext_uuid = -1;
static int hf_dcerpc_sec_vt_pcontext_ver = -1;
static const int *sec_vt_command_fields[] = {
static int * const sec_vt_command_fields[] = {
&hf_dcerpc_sec_vt_command_cmd,
&hf_dcerpc_sec_vt_command_end,
&hf_dcerpc_sec_vt_command_must,
@ -614,18 +614,18 @@ static int hf_dcerpc_cmd_client_ipv4 = -1;
static int hf_dcerpc_cmd_client_ipv6 = -1;
static int hf_dcerpc_authentication_verifier = -1;
static const int *dcerpc_cn_bind_trans_btfn_fields[] = {
static int * const dcerpc_cn_bind_trans_btfn_fields[] = {
&hf_dcerpc_cn_bind_trans_btfn_01,
&hf_dcerpc_cn_bind_trans_btfn_02,
NULL
};
static const int *sec_vt_bitmask_fields[] = {
static int * const sec_vt_bitmask_fields[] = {
&hf_dcerpc_sec_vt_bitmask_sign,
NULL
};
static const int *dcerpc_cn_fault_flags_fields[] = {
static int * const dcerpc_cn_fault_flags_fields[] = {
&hf_dcerpc_cn_fault_flags_extended_error_info,
NULL
};
@ -5132,7 +5132,7 @@ dissect_dcerpc_cn_rts(tvbuff_t *tvb, gint offset, packet_info *pinfo,
guint32 *cmd;
guint32 i;
const char *info_str = NULL;
static const int * flags[] = {
static int * const flags[] = {
&hf_dcerpc_cn_rts_flags_ping,
&hf_dcerpc_cn_rts_flags_other_cmd,
&hf_dcerpc_cn_rts_flags_recycle_channel,
@ -5476,7 +5476,7 @@ dissect_dcerpc_cn(tvbuff_t *tvb, int offset, packet_info *pinfo,
dcerpc_auth_info auth_info;
tvbuff_t *fragment_tvb;
dcerpc_decode_as_data* decode_data = dcerpc_get_decode_data(pinfo);
static const int * hdr_flags[] = {
static int * const hdr_flags[] = {
&hf_dcerpc_cn_flags_object,
&hf_dcerpc_cn_flags_maybe,
&hf_dcerpc_cn_flags_dne,
@ -6376,7 +6376,7 @@ dissect_dcerpc_dg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *dat
int auth_level;
char *uuid_str;
const char *uuid_name = NULL;
static const int * hdr_flags1[] = {
static int * const hdr_flags1[] = {
&hf_dcerpc_dg_flags1_rsrvd_80,
&hf_dcerpc_dg_flags1_broadcast,
&hf_dcerpc_dg_flags1_idempotent,
@ -6388,7 +6388,7 @@ dissect_dcerpc_dg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *dat
NULL
};
static const int * hdr_flags2[] = {
static int * const hdr_flags2[] = {
&hf_dcerpc_dg_flags2_rsrvd_80,
&hf_dcerpc_dg_flags2_rsrvd_40,
&hf_dcerpc_dg_flags2_rsrvd_20,

Some files were not shown because too many files have changed in this diff Show More