diff options
author | Michele Papalini <micpapal@cisco.com> | 2019-03-06 12:15:54 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2019-03-06 12:15:54 +0000 |
commit | ef3b8c5835ee7d4504640fd18b9a91ce76ec62a0 (patch) | |
tree | d48367435b73a8eb610cc33d3204128b947684a0 /hicn-light/src/config/configuration.c | |
parent | a435416b8a68f0e9a48eaa6a7b1c8b0c909a537a (diff) | |
parent | 0e98ba7a3100268e656fe5e3a21783a5ab6daa53 (diff) |
Merge "[HICN-92] Fix byte order mismatch in create listener command"
Diffstat (limited to 'hicn-light/src/config/configuration.c')
-rw-r--r-- | hicn-light/src/config/configuration.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hicn-light/src/config/configuration.c b/hicn-light/src/config/configuration.c index 48c26b4a2..3d25e425d 100644 --- a/hicn-light/src/config/configuration.c +++ b/hicn-light/src/config/configuration.c @@ -330,14 +330,14 @@ struct iovec *configuration_ProcessCreateTunnel(Configuration *config, if (!symbolicNameTable_Exists(config->symbolicNameTable, symbolicName)) { if (control->ipType == ADDR_INET) { source = - utils_AddressFromInet(&control->localIp.ipv4, &control->localPort); + addressFromInaddr4Port(&control->localIp.ipv4, &control->localPort); destination = - utils_AddressFromInet(&control->remoteIp.ipv4, &control->remotePort); + addressFromInaddr4Port(&control->remoteIp.ipv4, &control->remotePort); } else if (control->ipType == ADDR_INET6) { source = - utils_AddressFromInet6(&control->localIp.ipv6, &control->localPort); + addressFromInaddr6Port(&control->localIp.ipv6, &control->localPort); destination = - utils_AddressFromInet6(&control->remoteIp.ipv6, &control->remotePort); + addressFromInaddr6Port(&control->remoteIp.ipv6, &control->remotePort); } else { printf("Invalid IP type.\n"); // will generate a Nack } |