diff options
author | 2019-03-06 10:48:06 +0100 | |
---|---|---|
committer | 2019-03-06 12:11:22 +0000 | |
commit | 0e98ba7a3100268e656fe5e3a21783a5ab6daa53 (patch) | |
tree | 2492478ca915291c8f0816426bbddc7d319393c0 /hicn-light/src/config/configuration.c | |
parent | 9d0002e5cb97d939f2f74ab1e635b616d634e7db (diff) |
[HICN-92] Fix byte order mismatch in create listener command
Change-Id: I750b9840543cf53e0d96bd71a0765bd6345013cb
Signed-off-by: Mauro Sardara <msardara@cisco.com>
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 } |