]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
dhcpclient documentation 2183/head
authorNicolas C <nchaigne@capgemini.fr>
Sat, 24 Feb 2018 19:54:18 +0000 (20:54 +0100)
committerNicolas C <nchaigne@capgemini.fr>
Sat, 24 Feb 2018 19:54:18 +0000 (20:54 +0100)
Some updates to dhcpclient man page

man/man1/dhcpclient.1
src/modules/proto_dhcpv4/dhcpclient.c

index d6a538ea303c65190f341cfde9168891507a6c3a..947635e754096d02adf5ec49ab6b2a2655de3284 100644 (file)
@@ -1,6 +1,6 @@
-.TH DHCPCLIENT 1 "19 September 2016" "" "FreeRADIUS Daemon"
+.TH DHCPCLIENT 1 "24 February 2018" "" "FreeRADIUS DHCP test client"
 .SH NAME
-dhcpclient - Send a DHCP request with provided RADIUS attributes and get the output response.
+dhcpclient - Send a DHCP request with provided DHCP attributes and get the output response.
 .SH SYNOPSIS
 .B dhcpclient
 .RB [ \-d
@@ -16,14 +16,14 @@ dhcpclient - Send a DHCP request with provided RADIUS attributes and get the out
 .IR timeout ]
 .RB [ \-v ]
 .RB [ \-x ]
-\fIserver[:port] {discover|request|decline|release|inform|auto}\fP
+\fIserver[:port] {discover|request|decline|release|inform|lease_query|auto}\fP
 .SH DESCRIPTION
 \fBdhcpclient\fP is a DHCP test client program. It can send arbitrary DHCP
 packets to the FreeRADIUS server running as DHCP server, then shows the reply.
-It can be used to test changes you made in the configuration of the radius server,
-or it can be used to monitor if a radius server is up.
+It can be used to test changes you made in the configuration of the DHCP server,
+or it can be used to monitor if a DHCP server is up.
 .PP
-\fBdhcpclient\fP reads radius attribute/value pairs from its standard
+\fBdhcpclient\fP reads DHCP attribute/value pairs from its standard
 input, or from a file specified on the command line. It then encodes
 these attribute/value pairs using the dictionary, and sends them
 to the local/remote server.
@@ -37,12 +37,9 @@ The directory that contains the user dictionary file. Defaults to
 .IP \-D\ \fIdictionary_directory\fP
 The directory that contains the main dictionary file. Defaults to
 \fI/usr/share/freeradius\fP.
-.IP \-f\ \fIfile[:file]\fP
+.IP \-f\ \fIfile\fP
 File to read the attribute/value pairs from. If this is not specified,
-they are read from stdin.  This option can be specified multiple
-times, in which case packets are sent in order by file, and within
-each file, by first packet to last packet.  A blank line separates
-logical packets within a file.
+they are read from stdin.
 .IP \-h
 Print usage help information.
 .IP \-i\ \fIinterface\fP
@@ -57,13 +54,10 @@ Print out program version information.
 Print out debugging information.
 .IP server[:port]
 The hostname or IP address of the remote server. Optionally a UDP port
-can be specified. If no UDP port is specified, it is looked up in
-\fI/etc/services\fP. The service name looked for is \fBradacct\fP for
-accounting packets, and \fBradius\fP for all other requests. If a
-service is not found in \fI/etc/services\fP, 1813 and 1812 are used
-respectively.
-.IP discover\ |\ request\ |\ decline\ |\ release\ |\ inform\ |\ auto
-DHCP options - use the type relevant for testing
+can be specified. If no UDP port is specified, 67 is used.
+.IP discover\ |\ request\ |\ decline\ |\ release\ |\ inform\ |\ lease_query\ |\ auto
+DHCP Message Type - use the type relevant for testing. If \fBauto\fP then the message
+type has to be provided in attribute/value pair \fBDHCP-Message-Type\fP.
 
 .SH SEE ALSO
 radiusd(8)
index b1b77fb53f7c7d763ec325185f32bfc9b1ca259d..b54c486c137582e77d26d20b28d6ff5fb4aa6893 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * dhcpclient.c        General radius packet debug tool.
+ * dhcpclient.c        DHCP test client.
  *
  * Version:    $Id$
  *