mirror of
https://github.com/brmlab/osmo-tetra.git
synced 2025-06-08 18:04:12 +02:00
initial import of Osmocom TETRA phy and lower MAC code
This commit is contained in:
parent
a4c4e5a1ab
commit
7ee08faee0
45 changed files with 4217 additions and 0 deletions
46
src/tetra_mm_pdu.c
Normal file
46
src/tetra_mm_pdu.c
Normal file
|
@ -0,0 +1,46 @@
|
|||
/* Implementation of TETRA MM PDU parsing */
|
||||
|
||||
/* (C) 2011 by Harald Welte <laforge@gnumonks.org>
|
||||
* All Rights Reserved
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published by
|
||||
* the Free Software Foundation; either version 3 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 Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#include <unistd.h>
|
||||
#include <osmocore/utils.h>
|
||||
|
||||
#include "tetra_mm_pdu.h"
|
||||
|
||||
static const struct value_string mm_pdut_d_names[] = {
|
||||
{ TMM_PDU_T_D_OTAR, "D-OTAR" },
|
||||
{ TMM_PDU_T_D_AUTH, "D-AUTHENTICATION" },
|
||||
{ TMM_PDU_T_D_CK_CHG_DEM, "D-CK CHANGE DEMAND" },
|
||||
{ TMM_PDU_T_D_DISABLE, "D-DISABLE" },
|
||||
{ TMM_PDU_T_D_ENABLE, "D-ENABLE" },
|
||||
{ TMM_PDU_T_D_LOC_UPD_ACC, "D-LOCATION UPDATE ACCEPT" },
|
||||
{ TMM_PDU_T_D_LOC_UPD_CMD, "D-LOCATION UPDATE COMMAND" },
|
||||
{ TMM_PDU_T_D_LOC_UPD_REJ, "D-LOCATION UPDATE REJECT" },
|
||||
{ TMM_PDU_T_D_LOC_UPD_PROC, "D-LOCATION UPDATE PROCEEDING" },
|
||||
{ TMM_PDU_T_D_ATT_DET_GRP, "D-ATTACH/DETACH GROUP ID" },
|
||||
{ TMM_PDU_T_D_ATT_DET_GRP_ACK, "D-ATTACH/DETACH GROUP ID ACK" },
|
||||
{ TMM_PDU_T_D_MM_STATUS, "D-MM STATUS" },
|
||||
{ TMM_PDU_T_D_MM_PDU_NOTSUPP, "MM PDU/FUNCTION NOT SUPPORTED" },
|
||||
{ 0, NULL }
|
||||
};
|
||||
const char *tetra_get_mm_pdut_name(uint8_t pdut, int uplink)
|
||||
{
|
||||
/* FIXME: uplink */
|
||||
return get_value_string(mm_pdut_d_names, pdut);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue