diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2020-07-28 13:42:01 +0200 |
---|---|---|
committer | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2020-09-22 00:05:02 +0700 |
commit | 27c5fd93699d84c9d851556d45e2df15249de9df (patch) | |
tree | fc112951dc6c10a0a5f94a3bd38354cb9a233045 /src/common/pcu_sock.c | |
parent | 2302cb162c42fb5f74f0158cd432eedee2131a3b (diff) |
pcuif_proto: version 10: add support for IPv6 NSVCs
Introduce a address_type in the NSVC configuration pass the given
protocol. The remote_ip is network byte order, the default
encoding for in_addr and in6_addr.
Change-Id: I6d60277eb5b8d938d9f38114c933d58ee1b884c9
Related: Iae854875a45dbc29cd46a267ccaf60f1f2ac2973
Related: SYS#4915
Diffstat (limited to 'src/common/pcu_sock.c')
-rw-r--r-- | src/common/pcu_sock.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/pcu_sock.c b/src/common/pcu_sock.c index f5ead3b0..c922584c 100644 --- a/src/common/pcu_sock.c +++ b/src/common/pcu_sock.c @@ -332,7 +332,8 @@ int pcu_tx_info_ind(void) info_ind->nsvci[i] = nsvc->nsvci; info_ind->local_port[i] = nsvc->local_port; info_ind->remote_port[i] = nsvc->remote_port; - info_ind->remote_ip[i] = nsvc->remote_ip; + info_ind->remote_ip[i].v4.s_addr = htonl(nsvc->remote_ip); + info_ind->address_type[i] = PCU_IF_ADDR_TYPE_IPV4; } llist_for_each_entry(trx, &bts->trx_list, list) { |