diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-10-13 20:22:36 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-10-25 21:06:03 +0200 |
commit | c16c2dc5d35bce659cf4c9ab542054c9b57517aa (patch) | |
tree | ab12a2835de5e3ba7ede47c8acbf8fa876b72312 /openbsc/include/openbsc/bsc_nat.h | |
parent | 64b12924bfacaacda4eb5657ab6348a86db48753 (diff) |
nat: Implement accepting a USSD Provider connection, do authentication
Diffstat (limited to 'openbsc/include/openbsc/bsc_nat.h')
-rw-r--r-- | openbsc/include/openbsc/bsc_nat.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/bsc_nat.h b/openbsc/include/openbsc/bsc_nat.h index f718766a1..acecba7de 100644 --- a/openbsc/include/openbsc/bsc_nat.h +++ b/openbsc/include/openbsc/bsc_nat.h @@ -43,6 +43,7 @@ struct sccp_source_reference; struct sccp_connections; struct bsc_nat_parsed; struct bsc_nat; +struct bsc_nat_ussd_con; enum { NAT_CON_TYPE_NONE, @@ -165,6 +166,10 @@ struct bsc_nat_statistics { struct { struct counter *reconn; } msc; + + struct { + struct counter *reconn; + } ussd; }; enum bsc_nat_acc_ctr { @@ -237,6 +242,8 @@ struct bsc_nat { char *ussd_query; char *ussd_token; char *ussd_local; + struct bsc_fd ussd_listen; + struct bsc_nat_ussd_con *ussd_con; /* statistics */ struct bsc_nat_statistics stats; @@ -328,6 +335,7 @@ int bsc_conn_type_to_ctr(struct sccp_connections *conn); struct gsm48_hdr *bsc_unpack_dtap(struct bsc_nat_parsed *parsed, struct msgb *msg, uint32_t *len); /** USSD filtering */ +int bsc_ussd_init(struct bsc_nat *nat); int bsc_check_ussd(struct sccp_connections *con, struct bsc_nat_parsed *parsed, struct msgb *msg); #endif |