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/server Pull up differences between 1.8 an...
details: https://anonhg.NetBSD.org/src/rev/58bc4e361745
branches: netbsd-1-5
changeset: 488642:58bc4e361745
user: mellon <mellon%NetBSD.org@localhost>
date: Sat Jul 22 05:02:56 2000 +0000
description:
Pull up differences between 1.8 and 1.10
diffstat:
usr.sbin/dhcp/server/dhcpd.conf.5 | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
diffs (28 lines):
diff -r 9884fe12ebd9 -r 58bc4e361745 usr.sbin/dhcp/server/dhcpd.conf.5
--- a/usr.sbin/dhcp/server/dhcpd.conf.5 Sat Jul 22 05:02:30 2000 +0000
+++ b/usr.sbin/dhcp/server/dhcpd.conf.5 Sat Jul 22 05:02:56 2000 +0000
@@ -1404,6 +1404,24 @@
attempt to do a ddns update when a lease is confirmed. Set this to \fIoff\fR
if the server should not attempt to do updates within a certain scope.
The \fIddns-updates\fR parameter is on by default.
+.SH SETTING PARAMETER VALUES USING EXPRESSIONS
+Sometimes it's helpful to be able to set the value of a DHCP server
+parameter 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
+ \fImy-parameter \fB= \fIexpression \fB;\fR
+.fi
+.PP
+For example:
+.nf
+.sp 1
+ ddns-hostname = binary-to-ascii (16, 8, "-",
+ substring (hardware, 1, 6));
+.fi
.SH REFERENCE: OPTION STATEMENTS
.PP
DHCP option statements are documented in the
Home |
Main Index |
Thread Index |
Old Index