From 7734174f81412b1544243d1d358ee2641dcdb3dd Mon Sep 17 00:00:00 2001 From: michele papalini Date: Tue, 19 Feb 2019 17:51:28 +0100 Subject: [HICN-70] remove double htons in addListener Change-Id: Iaf65c52ec45c737f3bb6cc85a66c0f1521921e5f Signed-off-by: michele papalini --- hicn-light/src/config/configurationListeners.c | 2 +- hicn-light/src/config/controlAddListener.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'hicn-light') 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 -- cgit 1.2.3-korg