Harald Welte | ccea8dd | 2016-12-24 10:27:55 +0100 | [diff] [blame^] | 1 | /* |
| 2 | * (C) 2013-2016 by Harald Welte <laforge@gnumonks.org> |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License as published by |
| 6 | * the Free Software Foundation; either version 2 of the License, or |
| 7 | * (at your option) any later version. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU General Public License along |
| 15 | * with this program; if not, write to the Free Software Foundation, Inc., |
| 16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 17 | */ |
| 18 | |
Harald Welte | 1cd1e73 | 2016-01-08 23:24:23 +0100 | [diff] [blame] | 19 | #include <osmocom/core/utils.h> |
| 20 | |
Harald Welte | 84ec50f | 2016-12-24 10:16:00 +0100 | [diff] [blame] | 21 | #include "protocol/diag_log_gprs_rlc.h" |
Harald Welte | 1cd1e73 | 2016-01-08 23:24:23 +0100 | [diff] [blame] | 22 | |
Harald Welte | f5d6fee | 2016-01-13 22:29:10 +0100 | [diff] [blame] | 23 | struct value_string gprs_rlc_ul_state_vals[8] = { |
Harald Welte | 1cd1e73 | 2016-01-08 23:24:23 +0100 | [diff] [blame] | 24 | { US_NULL, "US_NULL" }, |
| 25 | { US_AWAIT_ASS, "US_AWAIT_ASS" }, |
| 26 | { US_ACK_XFER, "US_AWAIT_XFER" }, |
| 27 | { US_GTTP_XFER, "US_GTTP_XFER" }, |
| 28 | { US_UNACK_XFER, "US_UNACK_XFER" }, |
| 29 | { US_TEST_MODE, "US_TEST_MODE" }, |
| 30 | { US_AWAIT_RECOVERY, "US_AWAIT_RECOVERY" }, |
| 31 | { 0, NULL } |
| 32 | }; |
| 33 | |
Harald Welte | f5d6fee | 2016-01-13 22:29:10 +0100 | [diff] [blame] | 34 | struct value_string gprs_rlc_ul_substate_vals[5] = { |
Harald Welte | 1cd1e73 | 2016-01-08 23:24:23 +0100 | [diff] [blame] | 35 | { RALS_NULL, "RALS_NULL" }, |
| 36 | { RALS_AWAIT_TX_COMPLETE, "RALS_AWAIT_TX_COMPLETE" }, |
| 37 | { RALS_CURRENT_PDU_TX_COMPLETED, "RALS_CURRENT_PDU_TX_COMPLETED" }, |
| 38 | { RALS_COMPLETE, "RALS_COMPLETE" }, |
| 39 | { 0, NULL } |
| 40 | }; |
| 41 | |
Harald Welte | f5d6fee | 2016-01-13 22:29:10 +0100 | [diff] [blame] | 42 | struct value_string gprs_rlc_dl_state_vals[7] = { |
Harald Welte | 1cd1e73 | 2016-01-08 23:24:23 +0100 | [diff] [blame] | 43 | { DS_NULL, "DS_NULL" }, |
| 44 | { DS_RX_ACK, "DS_RX_ACK" }, |
| 45 | { DS_RX_UNACK, "DS_RX_UNACK" }, |
| 46 | { DS_RX_ACK_PENDING_RELEASE, "DS_RX_ACK_PENDING_RELEASE" }, |
| 47 | { DS_RX_UNACK_PENDING_RELEASE, "DS_RX_UNACK_PENDING_RELEASE" }, |
| 48 | { DS_TEST_MODE, "DS_TEST_MODE" }, |
| 49 | { 0, NULL } |
| 50 | }; |
| 51 | |
| 52 | struct value_string gprs_rlc_hdr_type_vals[] = { |
| 53 | { GPRS_HEADER_TYPE, "GPRS" }, |
| 54 | { EGPRS_HEADER_TYPE_1, "EGPRS T1" }, |
| 55 | { EGPRS_HEADER_TYPE_2, "EGPRS T2" }, |
| 56 | { EGPRS_HEADER_TYPE_3, "EGPRS T3" }, |
| 57 | { 0, NULL } |
| 58 | }; |