diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-10-14 22:56:06 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-10-25 21:06:03 +0200 |
commit | ec8a4e23d31ec84a041cbdbebea476258db87b0d (patch) | |
tree | 6dfbf2fa97005fc64b32933238aff1e606df024c /openbsc/include | |
parent | c16c2dc5d35bce659cf4c9ab542054c9b57517aa (diff) |
ipaccess: Add a structure for informing the USSD provider about the state
This is used to inform the USSD provider about the state of the
connection.
Diffstat (limited to 'openbsc/include')
-rw-r--r-- | openbsc/include/openbsc/ipaccess.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/ipaccess.h b/openbsc/include/openbsc/ipaccess.h index b36811ce3..b37022038 100644 --- a/openbsc/include/openbsc/ipaccess.h +++ b/openbsc/include/openbsc/ipaccess.h @@ -2,6 +2,7 @@ #define _IPACCESS_H #include "e1_input.h" +#include "gsm_subscriber.h" #include <osmocore/linuxlist.h> #define IPA_TCP_PORT_OML 3002 @@ -29,6 +30,9 @@ enum ipaccess_msgtype { IPAC_MSGT_ID_GET = 0x04, IPAC_MSGT_ID_RESP = 0x05, IPAC_MSGT_ID_ACK = 0x06, + + /* OpenBSC extension */ + IPAC_MSGT_SCCP_STATE = 0xff, }; enum ipaccess_id_tags { @@ -43,6 +47,14 @@ enum ipaccess_id_tags { IPAC_IDTAG_UNIT = 0x08, }; +struct ipac_msgt_sccp_state { + uint8_t src_ref[3]; + uint8_t dst_ref[3]; + uint8_t trans_id; + uint8_t invoke_id; + char imsi[GSM_IMSI_LENGTH]; +} __attribute__((packed)); + int ipaccess_connect(struct e1inp_line *line, struct sockaddr_in *sa); /* |