aboutsummaryrefslogtreecommitdiffstats
path: root/src/hnbgw.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2015-09-07 21:53:25 +0200
committerHarald Welte <laforge@gnumonks.org>2015-09-07 22:25:35 +0200
commit3f71256750e7213eebf6282d67e31c0ef82d16e2 (patch)
tree777d5c0457eb448149a25565f3a3cd9a0178e3d6 /src/hnbgw.h
parent2204f9d43dbe0bbc6ec1a5e6b4b6a58f23974a2a (diff)
Use implement HNBAP transmit using per-hnb write_queue
Diffstat (limited to 'src/hnbgw.h')
-rw-r--r--src/hnbgw.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/hnbgw.h b/src/hnbgw.h
index ab8c103..17ce562 100644
--- a/src/hnbgw.h
+++ b/src/hnbgw.h
@@ -2,10 +2,13 @@
#include <osmocom/core/select.h>
#include <osmocom/core/linuxlist.h>
+#include <osmocom/core/write_queue.h>
#define DEBUG
#include <osmocom/core/logging.h>
+#define msgb_ppid(msg) (msg)->cb[0]
+
enum {
DMAIN,
};
@@ -39,12 +42,17 @@ struct hnb_context {
struct llist_head list;
/*! HNB-GW we are part of */
struct hnb_gw *gw;
- /*! SCTP socket for Iuh to this specific HNB */
- struct osmo_fd socket;
+ /*! SCTP socket + write queue for Iuh to this specific HNB */
+ struct osmo_wqueue wqueue;
/*! copied from HNB-Identity-Info IE */
char identity_info[256];
/*! copied from Cell Identity IE */
struct umts_cell_id id;
+
+ /*! SCTP stream ID for HNBAP */
+ uint16_t hnbap_stream;
+ /*! SCTP stream ID for RUA */
+ uint16_t rua_stream;
};
struct ue_context {