aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-10-14 22:56:06 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-10-25 21:06:03 +0200
commitec8a4e23d31ec84a041cbdbebea476258db87b0d (patch)
tree6dfbf2fa97005fc64b32933238aff1e606df024c
parentc16c2dc5d35bce659cf4c9ab542054c9b57517aa (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.
-rw-r--r--openbsc/include/openbsc/ipaccess.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/ipaccess.h b/openbsc/include/openbsc/ipaccess.h
index b36811ce..b3702203 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);
/*