aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-light/src
diff options
context:
space:
mode:
Diffstat (limited to 'hicn-light/src')
-rw-r--r--hicn-light/src/config/configurationListeners.c2
-rw-r--r--hicn-light/src/config/controlAddListener.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/hicn-light/src/config/configurationListeners.c b/hicn-light/src/config/configurationListeners.c
index 11276e2dd..6539e8c9f 100644
--- a/hicn-light/src/config/configurationListeners.c
+++ b/hicn-light/src/config/configurationListeners.c
@@ -524,7 +524,7 @@ void configurationListeners_SetupAll(const Configuration *config, uint16_t port,
// Do not start on link address
if (addressGetType(address) != ADDR_LINK) {
- _setupListenersOnAddress(forwarder, address, htons(port),
+ _setupListenersOnAddress(forwarder, address, port,
interfaceGetName(iface));
}
}
diff --git a/hicn-light/src/config/controlAddListener.c b/hicn-light/src/config/controlAddListener.c
index 2cabfd035..03900a861 100644
--- a/hicn-light/src/config/controlAddListener.c
+++ b/hicn-light/src/config/controlAddListener.c
@@ -111,7 +111,7 @@ static CommandReturn _CreateListener(CommandParser *parser, CommandOps *ops,
// Fill remaining payload fields
addListenerCommand->listenerMode = mode;
addListenerCommand->connectionType = type;
- addListenerCommand->port = htons((uint16_t)atoi(port));
+ addListenerCommand->port = (uint16_t)atoi(port);
strcpy(addListenerCommand->symbolic, symbolic);
// send message and receive response