summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2021-09-20 17:08:44 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2021-09-20 17:08:44 +0000
commita49676c025a52a1842daabc72ab22605dd3171cc (patch)
treebc4913a04d62811d34a3cb0f34aa8252ae22deae /sbin
parentf3b3a43e063147ce9634443d5a9c9b51a2b7cffb (diff)
Document how a 0 byte can be encoded for client-id.
Requested by & OK sthen mdoc clue by schwarze
Diffstat (limited to 'sbin')
-rw-r--r--sbin/dhcpleased/dhcpleased.conf.516
1 files changed, 15 insertions, 1 deletions
diff --git a/sbin/dhcpleased/dhcpleased.conf.5 b/sbin/dhcpleased/dhcpleased.conf.5
index fcc7f665e55..44f6967cf17 100644
--- a/sbin/dhcpleased/dhcpleased.conf.5
+++ b/sbin/dhcpleased/dhcpleased.conf.5
@@ -1,4 +1,4 @@
-.\" $OpenBSD: dhcpleased.conf.5,v 1.6 2021/09/20 11:46:22 florian Exp $
+.\" $OpenBSD: dhcpleased.conf.5,v 1.7 2021/09/20 17:08:43 florian Exp $
.\"
.\" Copyright (c) 2018, 2021 Florian Obser <florian@openbsd.org>
.\" Copyright (c) 2005 Esben Norby <norby@openbsd.org>
@@ -84,6 +84,20 @@ Otherwise the string
.Ar client-id
is sent verbatim.
The default is to send the interface's MAC address as client identifier.
+.Pp
+When
+.Ar client-id
+is not a hardware address it is supposed to be sent as hardware type 0 but
+the majority of dhcp clients and servers do not implement this and neither
+does
+.Nm .
+If a server is encountered that requires this, a 0 byte can be encoded as \e0.
+The client identifier
+.Dq foobar
+with hardware type 0 would be configured as
+.Bd -literal -offset indent
+send client id "\e0foobar"
+.Ed
.It Ic send vendor class id Ar vendor-class-id
Send the dhcp vendor class identifier option with a value of
.Ar vendor-class-id .