summaryrefslogtreecommitdiff
path: root/dhcpctl
diff options
context:
space:
mode:
authorShawn Routhier <sar@isc.org>2011-04-26 00:01:57 +0000
committerShawn Routhier <sar@isc.org>2011-04-26 00:01:57 +0000
commit29dce0da30ef4a3d9fa8038312c9e4cdaf249ce0 (patch)
treed323a7ecff5bed3bc42b49aa60435030970de016 /dhcpctl
parentad3211001e33a0e4e8028b48f6d19108f2306bc1 (diff)
downloadisc-dhcp-29dce0da30ef4a3d9fa8038312c9e4cdaf249ce0.tar.gz
Documentation fixes
[ISC-Bugs #17959] add text to AIX section describing how to have it send responses to the all-ones address. [ISC-Bugs #19615] update the includes in dhcpctl/dhcpctl.3 to be more correct [ISC-Bugs #20676] update dhcpd.conf.5 to include the RFC numbers for DDNS
Diffstat (limited to 'dhcpctl')
-rw-r--r--dhcpctl/dhcpctl.317
1 files changed, 11 insertions, 6 deletions
diff --git a/dhcpctl/dhcpctl.3 b/dhcpctl/dhcpctl.3
index 2e1cb8a8..c3e91aca 100644
--- a/dhcpctl/dhcpctl.3
+++ b/dhcpctl/dhcpctl.3
@@ -2,8 +2,9 @@
.\"
.\" Project: DHCP
.\" File: dhcpctl.3
-.\" RCSId: $Id: dhcpctl.3,v 1.6.8.2 2009/07/24 22:04:52 sar Exp $
+.\" RCSId: $Id: dhcpctl.3,v 1.6.8.2.10.1 2011/04/26 00:01:57 sar Exp $
.\"
+.\" Copyright (c) 2011 by Internet Systems Consortium, Inc. ("ISC")
.\" Copyright (c) 2004,2009 by Internet Systems Consortium, Inc. ("ISC")
.\" Copyright (c) 2000-2003 by Internet Software Consortium
.\" Copyright (c) 2000 Nominum, Inc.
@@ -417,16 +418,20 @@ released.
The following program will connect to the DHCP server running on the local
host and will get the details of the existing lease for IP address
10.0.0.101. It will then print out the time the lease is due to expire. Note
-that most error checking has been ommitted for brevity.
+that most error checking has been ommitted for brevity.
.Bd -literal -offset indent
-#include <stdarg.h>
#include <sys/time.h>
-#include <sys/socket.h>
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <stdarg.h>
+
+#include <sys/socket.h>
#include <netinet/in.h>
+#include <arpa/inet.h>
-#include <isc/result.h>
-#include <dhcpctl/dhcpctl.h>
+#include "isc-dhcp/result.h"
+#include "dhcpctl.h"
int main (int argc, char **argv) {
dhcpctl_data_string ipaddrstring = NULL;