blob: 1b46c83042c3d7cf81ce47c92b8f4a14fe6ff86c [file] [log] [blame]
Harald Welteccea8dd2016-12-24 10:27:55 +01001/*
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 Welte1cd1e732016-01-08 23:24:23 +010019#include <osmocom/core/utils.h>
20
Harald Welte84ec50f2016-12-24 10:16:00 +010021#include "protocol/diag_log_gprs_rlc.h"
Harald Welte1cd1e732016-01-08 23:24:23 +010022
Vadim Yanitskiyaea8cb82021-11-19 16:58:43 +030023struct value_string gprs_rlc_ul_state_vals[] = {
Harald Welte1cd1e732016-01-08 23:24:23 +010024 { 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
Vadim Yanitskiyaea8cb82021-11-19 16:58:43 +030034struct value_string gprs_rlc_ul_substate_vals[] = {
Harald Welte1cd1e732016-01-08 23:24:23 +010035 { 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
Vadim Yanitskiyaea8cb82021-11-19 16:58:43 +030042struct value_string gprs_rlc_dl_state_vals[] = {
Harald Welte1cd1e732016-01-08 23:24:23 +010043 { 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
52struct 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};