diff options
author | Harald Welte <laforge@gnumonks.org> | 2010-05-11 06:20:54 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2010-05-11 06:33:17 +0200 |
commit | 99e3248192caa1348a28e4a5eda3db745960fd31 (patch) | |
tree | 1af1841de62d6863677eba43a3c823b971c2ab53 /openbsc/include | |
parent | 6b72cdf85423f9aca68bce15084e8a1b30b3db55 (diff) |
[gprs] NS: Add signals in the event of BLOCK/UNBLOCK/RESET
The signals will be sent upon reception of NS-BLOCK/UNBLOCK/RESET PDUs
We also export functions to generate/send BLOCK/UNBLOCK and RESET.
Diffstat (limited to 'openbsc/include')
-rw-r--r-- | openbsc/include/openbsc/gprs_ns.h | 3 | ||||
-rw-r--r-- | openbsc/include/openbsc/signal.h | 12 |
2 files changed, 15 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/gprs_ns.h b/openbsc/include/openbsc/gprs_ns.h index 27c54cb13..c74546a8b 100644 --- a/openbsc/include/openbsc/gprs_ns.h +++ b/openbsc/include/openbsc/gprs_ns.h @@ -167,6 +167,9 @@ int gprs_ns_rcvmsg(struct gprs_ns_inst *nsi, struct msgb *msg, /* main function for higher layers (BSSGP) to send NS messages */ int gprs_ns_sendmsg(struct gprs_ns_inst *nsi, struct msgb *msg); +int gprs_ns_tx_reset(struct gprs_nsvc *nsvc, uint8_t cause); +int gprs_ns_tx_block(struct gprs_nsvc *nsvc, uint8_t cause); +int gprs_ns_tx_unblock(struct gprs_nsvc *nsvc); /* Listen for incoming GPRS packets */ int nsip_listen(struct gprs_ns_inst *nsi, uint16_t udp_port); diff --git a/openbsc/include/openbsc/signal.h b/openbsc/include/openbsc/signal.h index 73f3fe31a..6e0f5baca 100644 --- a/openbsc/include/openbsc/signal.h +++ b/openbsc/include/openbsc/signal.h @@ -42,6 +42,7 @@ enum signal_subsystems { SS_SCALL, SS_GLOBAL, SS_CHALLOC, + SS_NS, }; /* SS_PAGING signals */ @@ -144,4 +145,15 @@ struct challoc_signal_data { enum gsm_chan_t type; }; +enum signal_ns { + S_NS_RESET, + S_NS_BLOCK, + S_NS_UNBLOCK, +}; + +struct ns_signal_data { + struct gprs_nsvc *nsvc; + uint8_t cause; +}; + #endif |