From 7f1524669755d7a6e6cd1c3fb80084df273f3dc1 Mon Sep 17 00:00:00 2001 From: Thomas Markwalder Date: Thu, 23 Jan 2020 16:21:52 -0500 Subject: [#76] Initial implemention to dhcpctl_timed_wait_for_completion common/conflex.c includes/dhctoken.h dhcpctl/omshell.c Added support for "disconnect" dhcpctl/cltest.2 - new file that exercizes timed waits and disconnect dhcpctl/Makefile.am.in Added cltest2.c dhcpctl/dhcpctl.* dhcpctl_timed_wait_for_completion() - new function dhcpctl_disconnect() - new function Added debug logging omapip/dispatch.c Added protocol logging omapi_wait_for_completion() Fixed dangling waiter reference omapi_one_dispatch() Added logic to skip emit writefds from select list omapip/support.c Changed annoying DEBUG logs to DEBUG_PROTOCOL --- includes/dhctoken.h | 3 ++- includes/omapip/omapip_p.h | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/dhctoken.h b/includes/dhctoken.h index 6bf50e88..223e1110 100644 --- a/includes/dhctoken.h +++ b/includes/dhctoken.h @@ -376,7 +376,8 @@ enum dhcp_token { LEASE_ID_FORMAT = 676, TOKEN_HEX = 677, TOKEN_OCTAL = 678, - KEY_ALGORITHM = 679 + KEY_ALGORITHM = 679, + DISCONNECT = 680 }; #define is_identifier(x) ((x) >= FIRST_TOKEN && \ diff --git a/includes/omapip/omapip_p.h b/includes/omapip/omapip_p.h index b744a5ce..323bba3e 100644 --- a/includes/omapip/omapip_p.h +++ b/includes/omapip/omapip_p.h @@ -60,6 +60,9 @@ #include #include "result.h" +/* Uncomment this to enable protocol level debug logs */ +/* #define DEBUG_PROTOCOL 1 */ + #include #include #include -- cgit v1.2.1