/* Implementation of TETRA MM PDU parsing */ /* (C) 2011 by Harald Welte * 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 . * */ #include #include #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); }