From 5ee050c1e7fde4e32e3334e7bf02c4f663474d55 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Thu, 13 Oct 2016 15:12:18 +0200 Subject: 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 --- include/osmocom/iuh/hnbgw.h | 6 ++++++ include/osmocom/iuh/vty.h | 2 ++ 2 files changed, 8 insertions(+) (limited to 'include') 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, }; -- cgit v1.2.3