summaryrefslogtreecommitdiffstats
path: root/ctrl/libhicnctrl/src/commands
diff options
context:
space:
mode:
authorJordan Augé <jordan.auge+fdio@cisco.com>2022-09-30 12:29:05 +0200
committerJordan Augé <jordan.auge+fdio@cisco.com>2022-10-07 17:30:19 +0200
commita61398ad90acdfa4ea0ac03f3d2b9bcbfd7a6dd3 (patch)
tree64cc24594bf2a010691371e16881586830b4b760 /ctrl/libhicnctrl/src/commands
parent3476dd9ddecc87d9212c3bf56a5be52079e27def (diff)
refactor(hicn-light): cleanup and optimizations to UDP socket face
Ticket: HICN-771 Change-Id: Ie84dc2f61888c3fdd7b3728b2a13cacbac503d1a 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_listener.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/ctrl/libhicnctrl/src/commands/command_listener.c b/ctrl/libhicnctrl/src/commands/command_listener.c
index bba4f4541..c11742bba 100644
--- a/ctrl/libhicnctrl/src/commands/command_listener.c
+++ b/ctrl/libhicnctrl/src/commands/command_listener.c
@@ -68,8 +68,13 @@ int on_listener_create(hc_listener_t* listener) {
case FACE_TYPE_HICN:
listener->type = FACE_TYPE_HICN_LISTENER;
break;
- default:
+ case FACE_TYPE_UDP_LISTENER:
+ case FACE_TYPE_TCP_LISTENER:
+ case FACE_TYPE_HICN_LISTENER:
break;
+ case FACE_TYPE_UNDEFINED:
+ case FACE_TYPE_N:
+ return -1;
}
return 0;
}