summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorThomas Markwalder <tmark@isc.org>2017-11-29 07:51:50 -0500
committerThomas Markwalder <tmark@isc.org>2017-11-29 07:51:50 -0500
commit30593241995b57f039620c781ece069ea7b751b7 (patch)
treefba073c5fd5acd92494283023d864522a1419d2d /includes
parent8e2197467f2f2fa8c794cb10e25f321a98c0e439 (diff)
downloadisc-dhcp-30593241995b57f039620c781ece069ea7b751b7.tar.gz
[45364] Replaced --enable-secs-byteorder with runtime check-secs-byte-order
configure.ac removed --enable-secs-byteorder support includes/dhcpd.h added SV_CHECK_SECS_BYTE_ORDER includes/failover.h added extern int check_secs_byte_order server/dhcpd.c postconf_initialization() - added logic to set check_secs_byte_order server/failover.c load_balance_mine() - replaced conditional comp directives with runtime test of check_secs_byte_order Added release note and updated man page.
Diffstat (limited to 'includes')
-rw-r--r--includes/dhcpd.h3
-rw-r--r--includes/failover.h2
2 files changed, 5 insertions, 0 deletions
diff --git a/includes/dhcpd.h b/includes/dhcpd.h
index aac2c108..80593656 100644
--- a/includes/dhcpd.h
+++ b/includes/dhcpd.h
@@ -802,6 +802,9 @@ struct lease_state {
#ifdef EUI_64
#define SV_USE_EUI_64 90
#endif
+#if defined (FAILOVER_PROTOCOL)
+#define SV_CHECK_SECS_BYTE_ORDER 91
+#endif
#if !defined (DEFAULT_PING_TIMEOUT)
# define DEFAULT_PING_TIMEOUT 1
diff --git a/includes/failover.h b/includes/failover.h
index f6655f46..135b969f 100644
--- a/includes/failover.h
+++ b/includes/failover.h
@@ -392,5 +392,7 @@ typedef struct _dhcp_failover_state {
u_int32_t updxid; /* XID of UPDREQ* message in action. */
} dhcp_failover_state_t;
+extern int check_secs_byte_order; /* check byte order of secs field when true */
+
#define DHCP_FAILOVER_VERSION 1
#endif /* FAILOVER_PROTOCOL */