libosmogsm
0.9.3
Osmocom GSM library
|
00001 /* (C) 2009,2010 by Holger Hans Peter Freyther <zecke@selfish.org> 00002 * (C) 2009,2010 by On-Waves 00003 * All Rights Reserved 00004 * 00005 * This program is free software; you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License as published by 00007 * the Free Software Foundation; either version 2 of the License, or 00008 * (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License along 00016 * with this program; if not, write to the Free Software Foundation, Inc., 00017 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 00018 * 00019 */ 00020 #pragma once 00021 00022 #include "tlv.h" 00023 00024 struct msgb; 00025 00026 struct msgb *gsm0808_create_layer3(struct msgb *msg, uint16_t netcode, uint16_t countrycode, int lac, uint16_t ci); 00027 struct msgb *gsm0808_create_reset(void); 00028 struct msgb *gsm0808_create_reset_ack(void); 00029 struct msgb *gsm0808_create_clear_command(uint8_t reason); 00030 struct msgb *gsm0808_create_clear_complete(void); 00031 struct msgb *gsm0808_create_cipher_complete(struct msgb *layer3, uint8_t alg_id); 00032 struct msgb *gsm0808_create_cipher_reject(uint8_t cause); 00033 struct msgb *gsm0808_create_classmark_update(const uint8_t *cm2, uint8_t cm2_len, 00034 const uint8_t *cm3, uint8_t cm3_len); 00035 struct msgb *gsm0808_create_sapi_reject(uint8_t link_id); 00036 struct msgb *gsm0808_create_assignment_completed(uint8_t rr_cause, 00037 uint8_t chosen_channel, uint8_t encr_alg_id, 00038 uint8_t speech_mode); 00039 struct msgb *gsm0808_create_assignment_failure(uint8_t cause, uint8_t *rr_cause); 00040 struct msgb *gsm0808_create_clear_rqst(uint8_t cause); 00041 00042 struct msgb *gsm0808_create_dtap(struct msgb *msg, uint8_t link_id); 00043 void gsm0808_prepend_dtap_header(struct msgb *msg, uint8_t link_id); 00044 00045 const struct tlv_definition *gsm0808_att_tlvdef(void); 00046 00047 const char *gsm0808_bssmap_name(uint8_t msg_type); 00048 const char *gsm0808_bssap_name(uint8_t msg_type);