Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/usr.sbin/dhcp/common Pull up differences between 1.5 an...



details:   https://anonhg.NetBSD.org/src/rev/cd9013374e57
branches:  netbsd-1-5
changeset: 488639:cd9013374e57
user:      mellon <mellon%NetBSD.org@localhost>
date:      Sat Jul 22 05:01:52 2000 +0000

description:
Pull up differences between 1.5 and 1.6

diffstat:

 usr.sbin/dhcp/common/dhcp-options.5 |  18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diffs (29 lines):

diff -r 72b083f8d703 -r cd9013374e57 usr.sbin/dhcp/common/dhcp-options.5
--- a/usr.sbin/dhcp/common/dhcp-options.5       Sat Jul 22 05:01:23 2000 +0000
+++ b/usr.sbin/dhcp/common/dhcp-options.5       Sat Jul 22 05:01:52 2000 +0000
@@ -87,7 +87,25 @@
 or
   option dhcp-client-identifier 43:4c:49:45:54:2d:46:4f:4f;
 .fi
+.SH SETTING OPTION VALUES USING EXPRESSIONS
+Sometimes it's helpful to be able to set the value of a DHCP option
+based on some value that the client has sent.   To do this, you can
+use expression evaluation.   The 
+.B dhcp-eval(5)
+manual page describes how to write expressions.   To assign the result
+of an evaluation to an option, define the option as follows:
+.nf
+.sp 1
+  \fBoption \fImy-option \fB= \fIexpression \fB;\fR
+.fi
 .PP
+For example:
+.nf
+.sp 1
+  option hostname = binary-to-ascii (16, 8, "-",
+                                     substring (hardware, 1, 6));
+.fi
+.SH STANDARD DHCP OPTIONS
 The documentation for the various options mentioned below is taken
 from the latest IETF draft document on DHCP options.   Options which
 are not listed by name may be defined by the name option-\fInnn\fR,



Home | Main Index | Thread Index | Old Index