aboutsummaryrefslogtreecommitdiffstats
path: root/src/hnbgw.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/hnbgw.h')
-rw-r--r--src/hnbgw.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/hnbgw.h b/src/hnbgw.h
new file mode 100644
index 0000000..87a5a2f
--- /dev/null
+++ b/src/hnbgw.h
@@ -0,0 +1,29 @@
+#pragma once
+
+#include <osmocom/core/select.h>
+#include <osmocom/core/linuxlist.h>
+
+struct hnb_context {
+ /*! Entry in HNB-global list of HNB */
+ struct llist_head list;
+ /*! SCTP socket for Iuh to this specific HNB */
+ struct osmo_fd socket;
+
+ /*! copied from HNB-Identity-Info */
+ char identity[256];
+};
+
+struct ue_context {
+ struct llist_head list;
+ uint32_t context_id;
+};
+
+struct hnb_gw {
+ struct {
+ /*! SCTP port for Iuh listening */
+ uint16_t iuh_listen_port;
+ } config;
+ /*! SCTP listen socket for incoming connections */
+ struct osmo_fd listen_fd;
+ struct llist_head hnb_list;
+};