diff options
author | Daniel Willmann <daniel@totalueberwachung.de> | 2008-12-28 00:31:09 +0000 |
---|---|---|
committer | Daniel Willmann <daniel@totalueberwachung.de> | 2008-12-28 00:31:09 +0000 |
commit | 8b3390effdda476c9a58d8046a2733b2b5ef4323 (patch) | |
tree | 44c7efdf665c930fcf5ce0f2e31136f5d659f5e8 /include | |
parent | f3c8e1133696543e34cdd3af873c8fba50d66727 (diff) |
Start implementing GSM 04.11 (short message service)
Diffstat (limited to 'include')
-rw-r--r-- | include/openbsc/Makefile.am | 2 | ||||
-rw-r--r-- | include/openbsc/gsm_04_11.h | 34 |
2 files changed, 35 insertions, 1 deletions
diff --git a/include/openbsc/Makefile.am b/include/openbsc/Makefile.am index a779cb99e..7af7aee16 100644 --- a/include/openbsc/Makefile.am +++ b/include/openbsc/Makefile.am @@ -1,2 +1,2 @@ noinst_HEADERS = abis_nm.h abis_rsl.h debug.h db.h gsm_04_08.h gsm_data.h \ - gsm_subscriber.h linuxlist.h msgb.h select.h tlv.h + gsm_subscriber.h linuxlist.h msgb.h select.h tlv.h gsm_04_11.h diff --git a/include/openbsc/gsm_04_11.h b/include/openbsc/gsm_04_11.h new file mode 100644 index 000000000..70145f9a0 --- /dev/null +++ b/include/openbsc/gsm_04_11.h @@ -0,0 +1,34 @@ +#ifndef _GSM_04_11_H +#define _GSM_04_11_H + +/* GSM TS 04.11 definitions */ + +/* Chapter 8.1.2 (refers to GSM 04.07 Chapter 11.2.3.1.1 */ +#define GSM411_PDISC_SMS 0x09 + +/* Chapter 8.1.3 */ +#define GSM411_MT_CP_DATA 0x01 +#define GSM411_MT_CP_ACK 0x04 +#define GSM411_MT_CP_ERROR 0x10 + +/* Chapter 8.2.2 */ +#define GSM411_MT_RP_DATA_MO 0x00 +#define GSM411_MT_RP_DATA_MT 0x01 +#define GSM411_MT_RP_ACK_MO 0x02 +#define GSM411_MT_RP_ACK_MT 0x03 +#define GSM411_MT_RP_ERROR_MO 0x04 +#define GSM411_MT_RP_ERROR_MT 0x04 +#define GSM411_MT_RP_SMMA_MO 0x05 + +/* Chapter 8.1.1 */ +struct gsm411_rp_data_hdr { + u_int8_t msg_type; + u_int8_t msg_ref; + u_int8_t data[0]; +} __attribute__ ((packed)); + +struct msgb; + +int gsm0411_rcv_sms(struct msgb *msg); + +#endif |