diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2020-07-28 13:42:01 +0200 |
---|---|---|
committer | lynxis lazus <lynxis@fe80.eu> | 2020-09-15 23:37:55 +0000 |
commit | df93a448b7638f51786236fcabaa6246ebe4ff94 (patch) | |
tree | bfa83fc31f8d0ae57bc91aa5edd19bb54cd76225 /src | |
parent | 2ff4592ffc78649bb5c14a213a74569b43da255b (diff) |
pcuif_proto: version 0xa: 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: I4067b1af041b2cdad60d6fb16c9caee98bc218dd
Diffstat (limited to 'src')
-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 aee42ea7..0d49f280 100644 --- a/src/common/pcu_sock.c +++ b/src/common/pcu_sock.c @@ -244,7 +244,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) { |