summaryrefslogtreecommitdiff
path: root/dhcpctl/dhcpctl.3
diff options
context:
space:
mode:
authorShawn Routhier <sar@isc.org>2011-04-25 23:43:16 +0000
committerShawn Routhier <sar@isc.org>2011-04-25 23:43:16 +0000
commitfc06ee4f46fbf68560abd2adeee8edeac5cc2997 (patch)
treef4cb1eddda1c6e57145e5e37d8b67f4f948f6711 /dhcpctl/dhcpctl.3
parent656b1ecebe193cace9afc6be7b370e541f81a7df (diff)
downloadisc-dhcp-fc06ee4f46fbf68560abd2adeee8edeac5cc2997.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/dhcpctl.3')
-rw-r--r--dhcpctl/dhcpctl.317
1 files changed, 11 insertions, 6 deletions
diff --git a/dhcpctl/dhcpctl.3 b/dhcpctl/dhcpctl.3
index 773ad484..389c9753 100644
--- a/dhcpctl/dhcpctl.3
+++ b/dhcpctl/dhcpctl.3
@@ -2,8 +2,9 @@
.\"
.\" Project: DHCP
.\" File: dhcpctl.3
-.\" RCSId: $Id: dhcpctl.3,v 1.8 2009/11/24 02:06:56 sar Exp $
+.\" RCSId: $Id: dhcpctl.3,v 1.9 2011/04/25 23:43:16 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 "omapip/result.h"
+#include "dhcpctl.h"
int main (int argc, char **argv) {
dhcpctl_data_string ipaddrstring = NULL;