diff options
author | Mauro Sardara <msardara@cisco.com> | 2019-03-06 10:48:06 +0100 |
---|---|---|
committer | Mauro Sardara <msardara@cisco.com> | 2019-03-06 12:11:22 +0000 |
commit | 0e98ba7a3100268e656fe5e3a21783a5ab6daa53 (patch) | |
tree | 2492478ca915291c8f0816426bbddc7d319393c0 /hicn-light/src/config/controlAddListener.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/controlAddListener.c')
-rw-r--r-- | hicn-light/src/config/controlAddListener.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hicn-light/src/config/controlAddListener.c b/hicn-light/src/config/controlAddListener.c index 03900a861..2cabfd035 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 = (uint16_t)atoi(port); + addListenerCommand->port = htons((uint16_t)atoi(port)); strcpy(addListenerCommand->symbolic, symbolic); // send message and receive response |