aboutsummaryrefslogtreecommitdiffstats
path: root/src/gprs_rlc.c
blob: be01a53e17ccde22c594cbfa9ff00bf0251ccc0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*
 * (C) 2013-2016 by Harald Welte <laforge@gnumonks.org>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */

#include <osmocom/core/utils.h>

#include "protocol/diag_log_gprs_rlc.h"

struct value_string gprs_rlc_ul_state_vals[8] = {
	{ US_NULL,		"US_NULL" },
	{ US_AWAIT_ASS,		"US_AWAIT_ASS" },
	{ US_ACK_XFER,		"US_AWAIT_XFER" },
	{ US_GTTP_XFER,		"US_GTTP_XFER" },
	{ US_UNACK_XFER,	"US_UNACK_XFER" },
	{ US_TEST_MODE,		"US_TEST_MODE" },
	{ US_AWAIT_RECOVERY,	"US_AWAIT_RECOVERY" },
	{ 0, NULL }
};

struct value_string gprs_rlc_ul_substate_vals[5] = {
	{ RALS_NULL,		"RALS_NULL" },
	{ RALS_AWAIT_TX_COMPLETE, "RALS_AWAIT_TX_COMPLETE" },
	{ RALS_CURRENT_PDU_TX_COMPLETED, "RALS_CURRENT_PDU_TX_COMPLETED" },
	{ RALS_COMPLETE,	"RALS_COMPLETE" },
	{ 0, NULL }
};

struct value_string gprs_rlc_dl_state_vals[7] = {
	{ DS_NULL,		"DS_NULL" },
	{ DS_RX_ACK,		"DS_RX_ACK" },
	{ DS_RX_UNACK,		"DS_RX_UNACK" },
	{ DS_RX_ACK_PENDING_RELEASE, "DS_RX_ACK_PENDING_RELEASE" },
	{ DS_RX_UNACK_PENDING_RELEASE, "DS_RX_UNACK_PENDING_RELEASE" },
	{ DS_TEST_MODE,		"DS_TEST_MODE" },
	{ 0, NULL }
};

struct value_string gprs_rlc_hdr_type_vals[] = {
	{ GPRS_HEADER_TYPE,	"GPRS" },
	{ EGPRS_HEADER_TYPE_1,	"EGPRS T1" },
	{ EGPRS_HEADER_TYPE_2,	"EGPRS T2" },
	{ EGPRS_HEADER_TYPE_3,	"EGPRS T3" },
	{ 0, NULL }
};