aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-10-13 15:12:18 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-10-27 14:01:25 +0200
commit5ee050c1e7fde4e32e3334e7bf02c4f663474d55 (patch)
tree37d78c5ecd479ad0aa4293ba6db855453133b828 /include
parentc510fc29fcf4999de8ba4992dd305968909ed69b (diff)
hnbgw: parameterize IuCS and IuPS ips and ports: add vty cmds
Basically copy-paste the Iuh local-ip and local-port code to provide parameterization of the IuCS and IuPS remote addresses. Add IUCS and IUPS nodes, enhance go_parent_cb and config writing accordingly. Change-Id: I2c28977011009df4e1fa472290bbbc359e406971
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/iuh/hnbgw.h6
-rw-r--r--include/osmocom/iuh/vty.h2
2 files changed, 8 insertions, 0 deletions
diff --git a/include/osmocom/iuh/hnbgw.h b/include/osmocom/iuh/hnbgw.h
index 850c4d9..4880d48 100644
--- a/include/osmocom/iuh/hnbgw.h
+++ b/include/osmocom/iuh/hnbgw.h
@@ -20,6 +20,8 @@ enum {
#define HNBGW_LOCAL_IP_DEFAULT "0.0.0.0"
+#define HNBGW_IUCS_REMOTE_IP_DEFAULT "127.0.0.1"
+#define HNBGW_IUPS_REMOTE_IP_DEFAULT "127.0.0.2"
/* 25.467 Section 7.1 */
#define IUH_DEFAULT_SCTP_PORT 29169
@@ -116,6 +118,10 @@ struct hnb_gw {
/*! The UDP port where we receive multiplexed CS user
* plane traffic from HNBs */
uint16_t iuh_cs_mux_port;
+ const char *iucs_remote_ip;
+ uint16_t iucs_remote_port;
+ const char *iups_remote_ip;
+ uint16_t iups_remote_port;
uint16_t rnc_id;
bool hnbap_allow_tmsi;
} config;
diff --git a/include/osmocom/iuh/vty.h b/include/osmocom/iuh/vty.h
index 905a949..3d05da5 100644
--- a/include/osmocom/iuh/vty.h
+++ b/include/osmocom/iuh/vty.h
@@ -5,5 +5,7 @@
enum osmo_iuh_vty_node {
HNBGW_NODE = _LAST_OSMOVTY_NODE + 1,
IUH_NODE,
+ IUCS_NODE,
+ IUPS_NODE,
};