diff options
author | Bill Meier <wmeier@newsguy.com> | 2013-01-26 16:31:24 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2013-01-26 16:31:24 +0000 |
commit | 33df8647d5c610b657d8c68b0982e4f95f348f99 (patch) | |
tree | 33e63239ca2f821db46574b58c2a544a0cdee6e4 /epan | |
parent | 822405e4d9367fc5cf213f701862b273388d58e0 (diff) |
Reformat hf array entries slightly (to help checkdf)
svn path=/trunk/; revision=47301
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-pw-atm.c | 256 | ||||
-rw-r--r-- | epan/dissectors/packet-pw-cesopsn.c | 58 | ||||
-rw-r--r-- | epan/dissectors/packet-pw-fr.c | 73 | ||||
-rw-r--r-- | epan/dissectors/packet-pw-satop.c | 45 |
4 files changed, 238 insertions, 194 deletions
diff --git a/epan/dissectors/packet-pw-atm.c b/epan/dissectors/packet-pw-atm.c index d3d37c45ad..038587237b 100644 --- a/epan/dissectors/packet-pw-atm.c +++ b/epan/dissectors/packet-pw-atm.c @@ -1690,75 +1690,84 @@ proto_register_pw_atm_ata(void) }; static hf_register_info hfa_cell_header[] = { { &hf_cell_h_vpi ,{"VPI" ,"atm.vpi" - ,FT_UINT16 ,BASE_DEC ,NULL ,0 - ,NULL ,HFILL }} - ,{ &hf_cell_h_vci ,{"VCI" ,"atm.vci" - ,FT_UINT16 ,BASE_DEC ,NULL ,0 - ,NULL ,HFILL }} - ,{ &hf_cell_h_pti ,{"Payload Type" ,"atm.pti" - ,FT_UINT8 ,BASE_DEC ,VALS(atm_pt_vals),0x0e - ,"The 3-bit Payload Type Identifier (PTI) incorporates ATM Layer" - " PTI coding of the cell. These bits are set to the value of the" - " PTI of the encapsulated ATM cell." - ,HFILL }} - ,{ &hf_cell_h_clp ,{"Cell Loss Priority" ,"atm.clp" - ,FT_UINT8 ,BASE_DEC ,VALS(clp_vals) ,0x01 - ,"The Cell Loss Priority (CLP) field indicates CLP value" - " of the encapsulated cell." - ,HFILL }} - ,{ &hf_cell_h_m ,{"Transport Mode" ,"atm.pw_control_byte.m" - ,FT_UINT8 ,BASE_DEC ,VALS(m_vals) ,0x80 - ,"Bit (M) of the control byte indicates whether the packet" - " contains an ATM cell or a frame payload. If set to 0," - " the packet contains an ATM cell. If set to 1, the PDU" - " contains an AAL5 payload." - ,HFILL }} - ,{ &hf_cell_h_v ,{"VCI Present" ,"atm.pw_control_byte.v" - ,FT_BOOLEAN ,8 ,TFS(&tfs_yes_no),0x40 - ,"Bit (V) of the control byte indicates whether the VCI field" - " is present in the packet. If set to 1, the VCI field is present" - " for the cell. If set to 0, no VCI field is present." - ,HFILL }} - ,{ &hf_cell_h_rsv ,{"Reserved bits" ,"atm.pw_control_byte.rsv" - ,FT_UINT8 ,BASE_DEC ,NULL ,0x30 - ,"The reserved bits should be set to 0 at the transmitter and" - " ignored upon reception." - ,HFILL }} - ,{ &hf_aal5_pdu_rsv ,{"Reserved bits" ,"atm.pw_control_byte.rsv" - ,FT_UINT8 ,BASE_DEC ,NULL ,0x38 - ,"The reserved bits should be set to 0 at the transmitter and" - " ignored upon reception." - ,HFILL }} - ,{ &hf_aal5_pdu_u ,{"U bit" ,"atm.pw_control_byte.u" - ,FT_UINT8 ,BASE_DEC ,VALS(u_vals) ,0x04 - ,"Indicates whether this frame contains the last cell of" - " an AAL5 PDU and represents the value of the ATM User-to-User" - " bit for the last ATM cell of the PSN frame. Note: The ATM" - " User-to-User bit is the least significant bit of the PTI" - " in the ATM header." - ,HFILL }} - ,{ &hf_aal5_pdu_e ,{"EFCI" ,"atm.pw_control_byte.efci" - ,FT_UINT8 ,BASE_DEC ,VALS(e_vals) ,0x02 - ,"EFCI is set to the EFCI state of the last cell of the" - " AAL5 PDU or AAL5 fragment. Note: The EFCI state is" - " indicated in the middle bit of each ATM cell's PTI." - ,HFILL }} + ,FT_UINT16 ,BASE_DEC ,NULL ,0 + ,NULL ,HFILL }}, + + { &hf_cell_h_vci ,{"VCI" ,"atm.vci" + ,FT_UINT16 ,BASE_DEC ,NULL ,0 + ,NULL ,HFILL }}, + + { &hf_cell_h_pti ,{"Payload Type" ,"atm.pti" + ,FT_UINT8 ,BASE_DEC ,VALS(atm_pt_vals),0x0e + ,"The 3-bit Payload Type Identifier (PTI) incorporates ATM Layer" + " PTI coding of the cell. These bits are set to the value of the" + " PTI of the encapsulated ATM cell." + ,HFILL }}, + + { &hf_cell_h_clp ,{"Cell Loss Priority" ,"atm.clp" + ,FT_UINT8 ,BASE_DEC ,VALS(clp_vals) ,0x01 + ,"The Cell Loss Priority (CLP) field indicates CLP value" + " of the encapsulated cell." + ,HFILL }}, + + { &hf_cell_h_m ,{"Transport Mode" ,"atm.pw_control_byte.m" + ,FT_UINT8 ,BASE_DEC ,VALS(m_vals) ,0x80 + ,"Bit (M) of the control byte indicates whether the packet" + " contains an ATM cell or a frame payload. If set to 0," + " the packet contains an ATM cell. If set to 1, the PDU" + " contains an AAL5 payload." + ,HFILL }}, + + { &hf_cell_h_v ,{"VCI Present" ,"atm.pw_control_byte.v" + ,FT_BOOLEAN ,8 ,TFS(&tfs_yes_no),0x40 + ,"Bit (V) of the control byte indicates whether the VCI field" + " is present in the packet. If set to 1, the VCI field is present" + " for the cell. If set to 0, no VCI field is present." + ,HFILL }}, + + { &hf_cell_h_rsv ,{"Reserved bits" ,"atm.pw_control_byte.rsv" + ,FT_UINT8 ,BASE_DEC ,NULL ,0x30 + ,"The reserved bits should be set to 0 at the transmitter and" + " ignored upon reception." + ,HFILL }}, + + { &hf_aal5_pdu_rsv ,{"Reserved bits" ,"atm.pw_control_byte.rsv" + ,FT_UINT8 ,BASE_DEC ,NULL ,0x38 + ,"The reserved bits should be set to 0 at the transmitter and" + " ignored upon reception." + ,HFILL }}, + + { &hf_aal5_pdu_u ,{"U bit" ,"atm.pw_control_byte.u" + ,FT_UINT8 ,BASE_DEC ,VALS(u_vals) ,0x04 + ,"Indicates whether this frame contains the last cell of" + " an AAL5 PDU and represents the value of the ATM User-to-User" + " bit for the last ATM cell of the PSN frame. Note: The ATM" + " User-to-User bit is the least significant bit of the PTI" + " in the ATM header." + ,HFILL }}, + + { &hf_aal5_pdu_e ,{"EFCI" ,"atm.pw_control_byte.efci" + ,FT_UINT8 ,BASE_DEC ,VALS(e_vals) ,0x02 + ,"EFCI is set to the EFCI state of the last cell of the" + " AAL5 PDU or AAL5 fragment. Note: The EFCI state is" + " indicated in the middle bit of each ATM cell's PTI." + ,HFILL }} }; -static hf_register_info hfa_cell[] = { - {&hf_cell_payload_len ,{"Length" ,"atm.cell.len" - ,FT_INT32 ,BASE_DEC ,NULL ,0 - ,NULL ,HFILL }} + static hf_register_info hfa_cell[] = { + {&hf_cell_payload_len ,{"Length" ,"atm.cell.len" + ,FT_INT32 ,BASE_DEC ,NULL ,0 + ,NULL ,HFILL }} }; - #define HF_INITIALIZER_NCELLS(hf_handle)\ - {&(hf_handle) ,{"Number of good encapsulated cells","pw.atm.cells"\ - ,FT_INT32 ,BASE_DEC ,NULL ,0\ - ,NULL ,HFILL }} +#define HF_INITIALIZER_NCELLS(hf_handle) \ + { &(hf_handle) ,{"Number of good encapsulated cells","pw.atm.cells" \ + ,FT_INT32 ,BASE_DEC ,NULL ,0 \ + ,NULL ,HFILL }} - #define HF_INITIALIZER_PWTYPE(hf_handle,name)\ - { &hf_handle ,{name ,name\ - ,FT_BOOLEAN ,0 ,NULL ,0x0\ - ,"Identifies type of ATM PW. May be used for filtering.",HFILL}} +#define HF_INITIALIZER_PWTYPE(hf_handle,name) \ + { &hf_handle ,{name ,name \ + ,FT_BOOLEAN ,0 ,NULL ,0x0 \ + ,"Identifies type of ATM PW. May be used for filtering.",HFILL}} static hf_register_info hfa_n1_nocw[] = { @@ -1796,59 +1805,70 @@ static hf_register_info hfa_cell[] = { static hf_register_info hfa_cw[] = { { &hf_cw_bits03 ,{"Bits 0 to 3" ,"pw.cw.bits03" - ,FT_UINT8 ,BASE_HEX ,NULL ,0xf0 - ,NULL ,HFILL }} - ,{ &hf_pref_cw_flags ,{"Flags" ,"pw.cw.flags" - ,FT_UINT8 ,BASE_HEX ,NULL ,0x0f - ,NULL ,HFILL }} - ,{ &hf_pref_cw_a5s_t ,{"Payload type" ,"atm.pt" - ,FT_UINT8 ,BASE_DEC ,VALS(a5s_t_vals),0x08 - ,"Bit (T) of the control word indicates whether the packet contains" - " an ATM admin cell or an AAL5 payload. If T = 1, the packet" - " contains an ATM admin cell, encapsulated according to the N:1" - " cell relay encapsulation. If not set, the PDU" - " contains an AAL5 payload." - ,HFILL }} - ,{ &hf_pref_cw_a5s_e ,{"EFCI bit" ,"atm.efci" - ,FT_UINT8 ,BASE_DEC ,VALS(a5s_e_vals),0x04 - ,"The ingress router sets this bit to 1 if the EFCI bit" - " of the final cell of those that transported the AAL5 CPCS-SDU is" - " set to 1, or if the EFCI bit of the single ATM cell to be" - " transported in the packet is set to 1. Otherwise, this bit" - " is set to 0." - ,HFILL }} - ,{ &hf_pref_cw_a5s_c ,{"CLP bit" ,"atm.clp" - ,FT_UINT8 ,BASE_DEC ,VALS(clp_vals) ,0x02 - ,"The ingress router sets this bit to 1 if the CLP bit" - " of any of the ATM cells that transported the AAL5 CPCS-SDU is set" - " to 1, or if the CLP bit of the single ATM cell to be transported" - " in the packet is set to 1. Otherwise this bit is set to 0." - ,HFILL }} - ,{ &hf_pref_cw_a5s_u ,{"U bit (Command/Response)" ,"pw.cw.aal5sdu.u" - ,FT_UINT8 ,BASE_DEC ,NULL ,0x01 - ,"When FRF.8.1 Frame Relay/ATM PVC Service Interworking [RFC3916]" - " traffic is being transported, the Least-Significant Bit of CPCS-UU" - " of the AAL5 CPCS-PDU may contain the Frame Relay C/R bit." - " The ingress router copies this bit here." - ,HFILL }} - ,{ &hf_pref_cw_rsv ,{"Reserved bits" ,"pw.cw.rsv" - ,FT_UINT8 ,BASE_DEC ,NULL ,0xc0 - ,NULL ,HFILL }} - ,{ &hf_generic_cw_rsv ,{"Reserved bits" ,"pw.cw.rsv" - ,FT_UINT8 ,BASE_DEC ,NULL ,0x0f - ,NULL ,HFILL }} - ,{ &hf_pref_cw_len ,{"Length" ,"pw.cw.length" - ,FT_UINT8 ,BASE_DEC ,NULL ,0x3f - ,NULL ,HFILL }} - ,{ &hf_pref_cw_rsvlen ,{"Length (extended)" ,"pw.cw.length" - ,FT_UINT8 ,BASE_DEC ,NULL ,0xff - ,NULL ,HFILL }} - ,{ &hf_cw_seq ,{"Sequence number" ,"pw.cw.seqno" - ,FT_UINT16 ,BASE_DEC ,NULL ,0 - ,NULL ,HFILL }} - ,{ &hf_gen_cw_atmbyte ,{"ATM-specific byte" ,"pw.cw.3rd_byte" - ,FT_UINT8 ,BASE_HEX ,NULL ,0xFF - ,NULL ,HFILL }} + ,FT_UINT8 ,BASE_HEX ,NULL ,0xf0 + ,NULL ,HFILL }}, + + { &hf_pref_cw_flags ,{"Flags" ,"pw.cw.flags" + ,FT_UINT8 ,BASE_HEX ,NULL ,0x0f + ,NULL ,HFILL }}, + + { &hf_pref_cw_a5s_t ,{"Payload type" ,"atm.pt" + ,FT_UINT8 ,BASE_DEC ,VALS(a5s_t_vals),0x08 + ,"Bit (T) of the control word indicates whether the packet contains" + " an ATM admin cell or an AAL5 payload. If T = 1, the packet" + " contains an ATM admin cell, encapsulated according to the N:1" + " cell relay encapsulation. If not set, the PDU" + " contains an AAL5 payload." + ,HFILL }}, + + { &hf_pref_cw_a5s_e ,{"EFCI bit" ,"atm.efci" + ,FT_UINT8 ,BASE_DEC ,VALS(a5s_e_vals),0x04 + ,"The ingress router sets this bit to 1 if the EFCI bit" + " of the final cell of those that transported the AAL5 CPCS-SDU is" + " set to 1, or if the EFCI bit of the single ATM cell to be" + " transported in the packet is set to 1. Otherwise, this bit" + " is set to 0." + ,HFILL }}, + + { &hf_pref_cw_a5s_c ,{"CLP bit" ,"atm.clp" + ,FT_UINT8 ,BASE_DEC ,VALS(clp_vals) ,0x02 + ,"The ingress router sets this bit to 1 if the CLP bit" + " of any of the ATM cells that transported the AAL5 CPCS-SDU is set" + " to 1, or if the CLP bit of the single ATM cell to be transported" + " in the packet is set to 1. Otherwise this bit is set to 0." + ,HFILL }}, + + { &hf_pref_cw_a5s_u ,{"U bit (Command/Response)" ,"pw.cw.aal5sdu.u" + ,FT_UINT8 ,BASE_DEC ,NULL ,0x01 + ,"When FRF.8.1 Frame Relay/ATM PVC Service Interworking [RFC3916]" + " traffic is being transported, the Least-Significant Bit of CPCS-UU" + " of the AAL5 CPCS-PDU may contain the Frame Relay C/R bit." + " The ingress router copies this bit here." + ,HFILL }}, + + { &hf_pref_cw_rsv ,{"Reserved bits" ,"pw.cw.rsv" + ,FT_UINT8 ,BASE_DEC ,NULL ,0xc0 + ,NULL ,HFILL }}, + + { &hf_generic_cw_rsv ,{"Reserved bits" ,"pw.cw.rsv" + ,FT_UINT8 ,BASE_DEC ,NULL ,0x0f + ,NULL ,HFILL }}, + + { &hf_pref_cw_len ,{"Length" ,"pw.cw.length" + ,FT_UINT8 ,BASE_DEC ,NULL ,0x3f + ,NULL ,HFILL }}, + + { &hf_pref_cw_rsvlen ,{"Length (extended)" ,"pw.cw.length" + ,FT_UINT8 ,BASE_DEC ,NULL ,0xff + ,NULL ,HFILL }}, + + { &hf_cw_seq ,{"Sequence number" ,"pw.cw.seqno" + ,FT_UINT16 ,BASE_DEC ,NULL ,0 + ,NULL ,HFILL }}, + + { &hf_gen_cw_atmbyte ,{"ATM-specific byte" ,"pw.cw.3rd_byte" + ,FT_UINT8 ,BASE_HEX ,NULL ,0xFF + ,NULL ,HFILL }} }; static gint *ett_array[] = { &ett_encaps diff --git a/epan/dissectors/packet-pw-cesopsn.c b/epan/dissectors/packet-pw-cesopsn.c index af659c9825..a2fc1d692f 100644 --- a/epan/dissectors/packet-pw-cesopsn.c +++ b/epan/dissectors/packet-pw-cesopsn.c @@ -389,32 +389,40 @@ void proto_register_pw_cesopsn(void) { static hf_register_info hf[] = { { &hf_cw ,{"Control Word" ,"pwcesopsn.cw" - ,FT_NONE ,BASE_NONE ,NULL - ,0 ,NULL ,HFILL }} - ,{&hf_cw_bits03,{"Bits 0 to 3" ,"pwcesopsn.cw.bits03" - ,FT_UINT8 ,BASE_DEC ,NULL - ,0xf0 ,NULL ,HFILL }} - ,{ &hf_cw_lm, {"L+M bits" ,"pwcesopsn.cw.lm" - ,FT_UINT8 ,BASE_HEX ,VALS(vals_cw_lm) - ,0x0b ,NULL ,HFILL }} - ,{&hf_cw_r, {"R bit: Local CE-bound IWF" ,"pwcesopsn.cw.rbit" - ,FT_UINT8 ,BASE_DEC ,VALS(pwc_vals_cw_r_bit) - ,0x04 ,NULL ,HFILL }} - ,{&hf_cw_frg, {"Fragmentation" ,"pwcesopsn.cw.frag" - ,FT_UINT8 ,BASE_DEC ,VALS(pwc_vals_cw_frag) - ,0xc0 ,NULL ,HFILL }} - ,{&hf_cw_len, {"Length" ,"pwcesopsn.cw.length" + ,FT_NONE ,BASE_NONE ,NULL + ,0 ,NULL ,HFILL }}, + + {&hf_cw_bits03,{"Bits 0 to 3" ,"pwcesopsn.cw.bits03" ,FT_UINT8 ,BASE_DEC ,NULL - ,0x3f ,NULL ,HFILL }} - ,{&hf_cw_seq, {"Sequence number" ,"pwcesopsn.cw.seqno" - ,FT_UINT16 ,BASE_DEC ,NULL - ,0 ,NULL ,HFILL }} - ,{&hf_payload ,{"TDM payload" ,"pwcesopsn.payload" - ,FT_BYTES ,BASE_NONE ,NULL - ,0 ,NULL ,HFILL }} - ,{&hf_payload_l ,{"TDM payload length" ,"pwcesopsn.payload.len" - ,FT_INT32 ,BASE_DEC ,NULL - ,0 ,NULL ,HFILL }} + ,0xf0 ,NULL ,HFILL }}, + + { &hf_cw_lm, {"L+M bits" ,"pwcesopsn.cw.lm" + ,FT_UINT8 ,BASE_HEX ,VALS(vals_cw_lm) + ,0x0b ,NULL ,HFILL }}, + + {&hf_cw_r, {"R bit: Local CE-bound IWF" ,"pwcesopsn.cw.rbit" + ,FT_UINT8 ,BASE_DEC ,VALS(pwc_vals_cw_r_bit) + ,0x04 ,NULL ,HFILL }}, + + {&hf_cw_frg, {"Fragmentation" ,"pwcesopsn.cw.frag" + ,FT_UINT8 ,BASE_DEC ,VALS(pwc_vals_cw_frag) + ,0xc0 ,NULL ,HFILL }}, + + {&hf_cw_len, {"Length" ,"pwcesopsn.cw.length" + ,FT_UINT8 ,BASE_DEC ,NULL + ,0x3f ,NULL ,HFILL }}, + + {&hf_cw_seq, {"Sequence number" ,"pwcesopsn.cw.seqno" + ,FT_UINT16 ,BASE_DEC ,NULL + ,0 ,NULL ,HFILL }}, + + {&hf_payload ,{"TDM payload" ,"pwcesopsn.payload" + ,FT_BYTES ,BASE_NONE ,NULL + ,0 ,NULL ,HFILL }}, + + {&hf_payload_l ,{"TDM payload length" ,"pwcesopsn.payload.len" + ,FT_INT32 ,BASE_DEC ,NULL + ,0 ,NULL ,HFILL }} }; static gint *ett_array[] = { diff --git a/epan/dissectors/packet-pw-fr.c b/epan/dissectors/packet-pw-fr.c index 09b8958338..d75c4b854d 100644 --- a/epan/dissectors/packet-pw-fr.c +++ b/epan/dissectors/packet-pw-fr.c @@ -42,7 +42,7 @@ static gint proto_encaps = -1; static gint ett_encaps = -1; -/*static int hf_pw_fr = -1;*/ +/* static int hf_pw_fr = -1; */ static int hf_cw_bits03 = -1; static int hf_cw_fecn = -1; static int hf_cw_becn = -1; @@ -72,12 +72,12 @@ dissect_pw_fr( tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree ) gint payload_padding; const int encaps_size = 4; /*encapsulation consists of mandatory CW only*/ enum { - PQ_CW_BAD = 0x001 - ,PQ_CW_BAD_BITS03 = 0x002 - ,PQ_CW_BAD_LEN_GT_PACKET = 0x004 - ,PQ_CW_BAD_LEN_MUST_BE_ZERO = 0x008 - ,PQ_CW_BAD_LEN_MUST_BE_NONZERO = 0x010 - ,PQ_PAYLOAD_SIZE_ZERO = 0x020 + PQ_CW_BAD = 0x001 + ,PQ_CW_BAD_BITS03 = 0x002 + ,PQ_CW_BAD_LEN_GT_PACKET = 0x004 + ,PQ_CW_BAD_LEN_MUST_BE_ZERO = 0x008 + ,PQ_CW_BAD_LEN_MUST_BE_NONZERO = 0x010 + ,PQ_PAYLOAD_SIZE_ZERO = 0x020 } packet_quality; packet_size = tvb_reported_length_remaining(tvb, 0); @@ -248,32 +248,39 @@ dissect_pw_fr( tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree ) void proto_register_pw_fr(void) { - static hf_register_info hf[] = { - {&hf_cw_bits03 ,{"Bits 0 to 3" ,"pwfr.bits03" ,FT_UINT8 ,BASE_HEX - ,NULL ,0xf0 ,NULL - ,HFILL }} - ,{&hf_cw_fecn ,{"FR FECN" ,"pwfr.fecn" ,FT_UINT8 ,BASE_DEC - ,NULL ,0x08 ,"FR Forward Explicit Congestion Notification bit" - ,HFILL}} - ,{&hf_cw_becn ,{"FR BECN" ,"pwfr.becn" ,FT_UINT8 ,BASE_DEC - ,NULL ,0x04 ,"FR Backward Explicit Congestion Notification bit" - ,HFILL}} - ,{&hf_cw_de ,{"FR DE bit" ,"pwfr.de" ,FT_UINT8 ,BASE_DEC - ,NULL ,0x02 ,"FR Discard Eligibility bit" - ,HFILL}} - ,{&hf_cw_cr ,{"FR Frame C/R" ,"pwfr.cr" ,FT_UINT8 ,BASE_DEC - ,NULL ,0x01 ,"FR frame Command/Response bit" - ,HFILL}} - ,{&hf_cw_frg ,{"Fragmentation" ,"pwfr.frag" ,FT_UINT8 ,BASE_DEC - ,vals_frg ,0xc0 ,NULL - ,HFILL}} - ,{&hf_cw_len ,{"Length" ,"pwfr.length" ,FT_UINT8 ,BASE_DEC - ,NULL ,0x3f ,NULL - ,HFILL}} - ,{&hf_cw_seq ,{"Sequence number" ,"pwfr.length" ,FT_UINT16 ,BASE_DEC - ,NULL ,0 ,NULL - ,HFILL}} - }; +static hf_register_info hf[] = { + {&hf_cw_bits03 ,{"Bits 0 to 3" ,"pwfr.bits03" ,FT_UINT8 ,BASE_HEX + ,NULL ,0xf0 ,NULL + ,HFILL }}, + + {&hf_cw_fecn ,{"FR FECN" ,"pwfr.fecn" ,FT_UINT8 ,BASE_DEC + ,NULL ,0x08 ,"FR Forward Explicit Congestion Notification bit" + ,HFILL}}, + + {&hf_cw_becn ,{"FR BECN" ,"pwfr.becn" ,FT_UINT8 ,BASE_DEC + ,NULL ,0x04 ,"FR Backward Explicit Congestion Notification bit" + ,HFILL}}, + + {&hf_cw_de ,{"FR DE bit" ,"pwfr.de" ,FT_UINT8 ,BASE_DEC + ,NULL ,0x02 ,"FR Discard Eligibility bit" + ,HFILL}}, + + {&hf_cw_cr ,{"FR Frame C/R" ,"pwfr.cr" ,FT_UINT8 ,BASE_DEC + ,NULL ,0x01 ,"FR frame Command/Response bit" + ,HFILL}}, + + {&hf_cw_frg ,{"Fragmentation" ,"pwfr.frag" ,FT_UINT8 ,BASE_DEC + ,vals_frg ,0xc0 ,NULL + ,HFILL}}, + + {&hf_cw_len ,{"Length" ,"pwfr.length" ,FT_UINT8 ,BASE_DEC + ,NULL ,0x3f ,NULL + ,HFILL}}, + + {&hf_cw_seq ,{"Sequence number" ,"pwfr.length" ,FT_UINT16 ,BASE_DEC + ,NULL ,0 ,NULL + ,HFILL}} +}; static gint *ett[] = { &ett_encaps diff --git a/epan/dissectors/packet-pw-satop.c b/epan/dissectors/packet-pw-satop.c index 3042675367..849e30c2c2 100644 --- a/epan/dissectors/packet-pw-satop.c +++ b/epan/dissectors/packet-pw-satop.c @@ -404,32 +404,41 @@ void proto_register_pw_satop(void) static hf_register_info hf[] = { { &hf_cw ,{"Control Word" ,"pwsatop.cw" ,FT_NONE ,BASE_NONE ,NULL - ,0 ,NULL ,HFILL }} - ,{&hf_cw_bits03,{"Bits 0 to 3" ,"pwsatop.cw.bits03" + ,0 ,NULL ,HFILL }}, + + {&hf_cw_bits03,{"Bits 0 to 3" ,"pwsatop.cw.bits03" ,FT_UINT8 ,BASE_DEC ,NULL - ,0xf0 ,NULL ,HFILL }} - ,{&hf_cw_l, {"L bit: TDM payload state" ,"pwsatop.cw.lbit" + ,0xf0 ,NULL ,HFILL }}, + + {&hf_cw_l, {"L bit: TDM payload state" ,"pwsatop.cw.lbit" ,FT_UINT8 ,BASE_DEC ,VALS(pwc_vals_cw_l_bit) - ,0x08 ,NULL ,HFILL }} - ,{&hf_cw_r, {"R bit: Local CE-bound IWF" ,"pwsatop.cw.rbit" + ,0x08 ,NULL ,HFILL }}, + + {&hf_cw_r, {"R bit: Local CE-bound IWF" ,"pwsatop.cw.rbit" ,FT_UINT8 ,BASE_DEC ,VALS(pwc_vals_cw_r_bit) - ,0x04 ,NULL ,HFILL }} - ,{&hf_cw_rsv, {"Reserved" ,"pwsatop.cw.rsv" + ,0x04 ,NULL ,HFILL }}, + + {&hf_cw_rsv, {"Reserved" ,"pwsatop.cw.rsv" ,FT_UINT8 ,BASE_DEC ,NULL - ,0x03 ,NULL ,HFILL }} - ,{&hf_cw_frg, {"Fragmentation" ,"pwsatop.cw.frag" + ,0x03 ,NULL ,HFILL }}, + + {&hf_cw_frg, {"Fragmentation" ,"pwsatop.cw.frag" ,FT_UINT8 ,BASE_DEC ,VALS(pwc_vals_cw_frag) - ,0xc0 ,NULL ,HFILL }} - ,{&hf_cw_len, {"Length" ,"pwsatop.cw.length" + ,0xc0 ,NULL ,HFILL }}, + + {&hf_cw_len, {"Length" ,"pwsatop.cw.length" ,FT_UINT8 ,BASE_DEC ,NULL - ,0x3f ,NULL ,HFILL }} - ,{&hf_cw_seq, {"Sequence number" ,"pwsatop.cw.seqno" + ,0x3f ,NULL ,HFILL }}, + + {&hf_cw_seq, {"Sequence number" ,"pwsatop.cw.seqno" ,FT_UINT16 ,BASE_DEC ,NULL - ,0 ,NULL ,HFILL }} - ,{&hf_payload ,{"TDM payload" ,"pwsatop.payload" + ,0 ,NULL ,HFILL }}, + + {&hf_payload ,{"TDM payload" ,"pwsatop.payload" ,FT_BYTES ,BASE_NONE ,NULL - ,0 ,NULL ,HFILL }} - ,{&hf_payload_l ,{"TDM payload length" ,"pwsatop.payload.len" + ,0 ,NULL ,HFILL }}, + + {&hf_payload_l ,{"TDM payload length" ,"pwsatop.payload.len" ,FT_INT32 ,BASE_DEC ,NULL ,0 ,NULL ,HFILL }} }; |