Changes since 4.1.0 (new features)
-
+- Failover port configuration can now be left to defaults (port 647) as
+ described in the -12 revision of the Failover draft (and assigned by
+ IANA).
Changes since 4.1.0 (bug fixes)
# define DEFAULT_MAX_RESPONSE_DELAY 20
#endif
+/*
+ * IANA has assigned ports 647 ("dhcp-failover") and 847 ("dhcp-failover2").
+ * Of these, only port 647 is mentioned in the -12 draft revision. We're not
+ * sure if they are supposed to indicate primary and secondary? No matter,
+ * we'll stick to the -12 draft revision level.
+ */
+#ifndef DEFAULT_FAILOVER_PORT
+# define DEFAULT_FAILOVER_PORT 647
+#endif
+
#define FM_OFFSET(x) (long)(&(((failover_message_t *)0) -> x))
/* All of the below definitions are mandated by draft-ietf-dhc-failover-12.
if (!peer -> partner.address)
parse_warn (cfile, "peer address may not be omitted");
- /* XXX - when/if we get a port number assigned, just set as default */
- if (!peer -> me.port)
- parse_warn (cfile, "local port may not be omitted");
- if (!peer -> partner.port)
- parse_warn (cfile, "peer port may not be omitted");
+ if (!peer->me.port)
+ peer->me.port = DEFAULT_FAILOVER_PORT;
+ if (!peer->partner.port)
+ peer->partner.port = DEFAULT_FAILOVER_PORT;
if (peer -> i_am == primary) {
if (!peer -> hba) {
.\" see ``http://www.vix.com''. To learn more about Nominum, Inc., see
.\" ``http://www.nominum.com''.
.\"
-.\" $Id: dhcpd.conf.5,v 1.100 2009/01/22 21:22:42 dhankins Exp $
+.\" $Id: dhcpd.conf.5,v 1.101 2009/02/20 18:20:00 dhankins Exp $
.\"
.TH dhcpd.conf 5
.SH NAME
.B port \fIport-number\fR\fB;\fR
.PP
The \fBport\fR statement declares the TCP port on which the server
-should listen for connections from its failover peer. This statement
-may not currently be omitted, because the failover protocol does not
-yet have a reserved TCP port number.
+should listen for connections from its failover peer. This statement
+may be omitted, in which case the IANA assigned port number 647 will be
+used by default.
.RE
.PP
The
.PP
The \fBpeer port\fR statement declares the TCP port to which the
server should connect to reach its failover peer for failover
-messages. This statement may not be omitted because the failover
-protocol does not yet have a reserved TCP port number. The port
-number declared in the \fBpeer port\fR statement may be the same as
-the port number declared in the \fBport\fR statement.
+messages. This statement may be omitted, in which case the IANA
+assigned port number 647 will be used by default.
.RE
.PP
The