diff options
author | Guy Harris <guy@alum.mit.edu> | 2011-11-15 05:10:56 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2011-11-15 05:10:56 +0000 |
commit | 0c530d222a1577dffe9789863417614bf01e5ac5 (patch) | |
tree | b461599d0bdc9d085b6c2a3328d5dc15b2bf9696 /asn1 | |
parent | 70a8b27948bbe52d4be3e457b16516058510d7bb (diff) |
At least as I read the code, there can be up to 3 receive channels (the
number of channels is XXX & 0x03, hence in the range 0-3.
Thanks and a tip of the hat to Clang Cat for catching this.
svn path=/trunk/; revision=39839
Diffstat (limited to 'asn1')
-rw-r--r-- | asn1/tetra/packet-tetra-template.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/asn1/tetra/packet-tetra-template.c b/asn1/tetra/packet-tetra-template.c index 8ec24d261f..ae0d451076 100644 --- a/asn1/tetra/packet-tetra-template.c +++ b/asn1/tetra/packet-tetra-template.c @@ -78,6 +78,7 @@ static gint hf_tetra_rvstr = -1; static gint hf_tetra_carriernumber = -1; static gint hf_tetra_rxchannel1 = -1; static gint hf_tetra_rxchannel2 = -1; +static gint hf_tetra_rxchannel3 = -1; static gint hf_tetra_crc = -1; static gint hf_tetra_len0 = -1; @@ -335,7 +336,11 @@ static void dissect_tetra_UNITDATA_IND(tvbuff_t *tvb, packet_info *pinfo, proto_ pdu_offset = offset + 4; for(i = 0; i < channels; i++) { - gint hf_channel[] = {hf_tetra_rxchannel1, hf_tetra_rxchannel2}; + gint hf_channel[] = { + hf_tetra_rxchannel1, + hf_tetra_rxchannel2, + hf_tetra_rxchannel3 + }; gint byte_len, bits_len, remaining_bits; /* Channel type */ @@ -589,6 +594,9 @@ void proto_register_tetra (void) { &hf_tetra_rxchannel2, { "Channel 2", "tetra.rxchannel2", FT_UINT8, BASE_DEC, VALS(recvchanneltypenames), 0x0, "Logical channels type", HFILL }}, + { &hf_tetra_rxchannel3, + { "Channel 3", "tetra.rxchannel3", FT_UINT8, BASE_DEC, VALS(recvchanneltypenames), 0x0, + "Logical channels type", HFILL }}, { &hf_tetra_timer, { "Timer", "tetra.timer", FT_UINT16, BASE_HEX, NULL, 0x0, "Timer Register", HFILL }}, |