diff options
author | Jordan Augé <jordan.auge+fdio@cisco.com> | 2022-09-20 13:27:12 +0200 |
---|---|---|
committer | Jordan Augé <jordan.auge+fdio@cisco.com> | 2022-09-22 12:20:58 +0200 |
commit | bd26d18978861b24c5707dbaa24dac76133425e2 (patch) | |
tree | 7ff84df44d440254b48f800c368005eb27d4680d /ctrl/libhicnctrl/src/commands | |
parent | 45da502db58f712b78e59c214f05c44aa01ea8d0 (diff) |
fix(libhicnctrl): fix new listener validation during face or connection creation
Change-Id: I5f532320fcb3fc01cd3a027af7ea5fc6425e4097
Ref: HICN-790
Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
Diffstat (limited to 'ctrl/libhicnctrl/src/commands')
-rw-r--r-- | ctrl/libhicnctrl/src/commands/command_connection.c | 8 | ||||
-rw-r--r-- | ctrl/libhicnctrl/src/commands/command_face.c | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/ctrl/libhicnctrl/src/commands/command_connection.c b/ctrl/libhicnctrl/src/commands/command_connection.c index 30b3c3bf1..1659a9860 100644 --- a/ctrl/libhicnctrl/src/commands/command_connection.c +++ b/ctrl/libhicnctrl/src/commands/command_connection.c @@ -115,8 +115,8 @@ static const command_parser_t command_connection_create6 = { .action = ACTION_CREATE, .object_type = OBJECT_TYPE_CONNECTION, .nparams = 6, - .parameters = {type_tcp_udp, symbolic, remote_address, remote_port, - local_address, local_port}, + .parameters = {type_tcp_udp, symbolic, local_address, local_port, + remote_address, remote_port}, .post_hook = (parser_hook_t)on_connection_create, }; COMMAND_REGISTER(command_connection_create6); @@ -125,8 +125,8 @@ static const command_parser_t command_connection_create7 = { .action = ACTION_CREATE, .object_type = OBJECT_TYPE_CONNECTION, .nparams = 7, - .parameters = {type_tcp_udp, symbolic, remote_address, remote_port, - local_address, local_port, interface}, + .parameters = {type_tcp_udp, symbolic, local_address, local_port, + remote_address, remote_port, interface}, .post_hook = (parser_hook_t)on_connection_create, }; COMMAND_REGISTER(command_connection_create7); diff --git a/ctrl/libhicnctrl/src/commands/command_face.c b/ctrl/libhicnctrl/src/commands/command_face.c index 68a6abefe..9fc0846ab 100644 --- a/ctrl/libhicnctrl/src/commands/command_face.c +++ b/ctrl/libhicnctrl/src/commands/command_face.c @@ -88,8 +88,8 @@ static const command_parser_t command_face_create5 = { .action = ACTION_CREATE, .object_type = OBJECT_TYPE_FACE, .nparams = 5, - .parameters = {type_tcp_udp, remote_address, remote_port, local_address, - local_port}, + .parameters = {type_tcp_udp, local_address, local_port, remote_address, + remote_port}, .post_hook = (parser_hook_t)on_face_create, }; COMMAND_REGISTER(command_face_create5); @@ -98,8 +98,8 @@ static const command_parser_t command_face_create6 = { .action = ACTION_CREATE, .object_type = OBJECT_TYPE_FACE, .nparams = 6, - .parameters = {type_tcp_udp, remote_address, remote_port, local_address, - local_port, interface}, + .parameters = {type_tcp_udp, local_address, local_port, remote_address, + remote_port, interface}, .post_hook = (parser_hook_t)on_face_create, }; COMMAND_REGISTER(command_face_create6); |