Harald Welte | ba43de4 | 2015-08-29 20:33:16 +0200 | [diff] [blame^] | 1 | #pragma once |
| 2 | |
| 3 | #include <osmocom/core/select.h> |
| 4 | #include <osmocom/core/linuxlist.h> |
| 5 | |
| 6 | struct hnb_context { |
| 7 | /*! Entry in HNB-global list of HNB */ |
| 8 | struct llist_head list; |
| 9 | /*! SCTP socket for Iuh to this specific HNB */ |
| 10 | struct osmo_fd socket; |
| 11 | |
| 12 | /*! copied from HNB-Identity-Info */ |
| 13 | char identity[256]; |
| 14 | }; |
| 15 | |
| 16 | struct ue_context { |
| 17 | struct llist_head list; |
| 18 | uint32_t context_id; |
| 19 | }; |
| 20 | |
| 21 | struct hnb_gw { |
| 22 | struct { |
| 23 | /*! SCTP port for Iuh listening */ |
| 24 | uint16_t iuh_listen_port; |
| 25 | } config; |
| 26 | /*! SCTP listen socket for incoming connections */ |
| 27 | struct osmo_fd listen_fd; |
| 28 | struct llist_head hnb_list; |
| 29 | }; |