xref: /minix/external/bsd/dhcp/share/dhcpd/pxe.defs (revision fb9c64b2)
1#	$NetBSD: pxe.defs,v 1.1 2013/03/24 15:54:32 christos Exp $
2#
3# Copyright 2001 Wasabi Systems, Inc.
4# All rights reserved.
5#
6# Written by Jason R. Thorpe for Wasabi Systems, Inc.
7#
8# Redistribution and use in source and binary forms, with or without
9# modification, are permitted provided that the following conditions
10# are met:
11# 1. Redistributions of source code must retain the above copyright
12#    notice, this list of conditions and the following disclaimer.
13# 2. Redistributions in binary form must reproduce the above copyright
14#    notice, this list of conditions and the following disclaimer in the
15#    documentation and/or other materials provided with the distribution.
16# 3. All advertising materials mentioning features or use of this software
17#    must display the following acknowledgement:
18#	This product includes software developed for the NetBSD Project by
19#	Wasabi Systems, Inc.
20# 4. The name of Wasabi Systems, Inc. may not be used to endorse
21#    or promote products derived from this software without specific prior
22#    written permission.
23#
24# THIS SOFTWARE IS PROVIDED BY WASABI SYSTEMS, INC. ``AS IS'' AND
25# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
26# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
27# PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL WASABI SYSTEMS, INC
28# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
29# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
30# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
32# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
33# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
34# POSSIBILITY OF SUCH DAMAGE.
35#
36
37#
38# A PXE client can be identified using Option 60 (vendor-class-identifier).
39# The format of the option is:
40#
41#	PXEClient:Arch:xxxxx:UNDI:yyyzzz
42#
43# This allows you to select PXE clients for special treatment using
44# classes, like so:
45#
46#	class "pxe-clients-ia32" {
47#		match if substring (option vendor-class-identifier, 0, 20) =
48#		    "PXEClient:Arch:00000";
49#		.
50#		.
51#		.
52#	}
53#
54#	class "pxe-clients-ia64" {
55#		match if substring (option vendor-class-identifier, 0, 20) =
56#		    "PXEClient:Arch:00002";
57#		.
58#		.
59#		.
60#	}
61#
62
63option space PXE;
64option PXE.mtftp-ip code 1 = ip-address;
65option PXE.mtftp-cport code 2 = unsigned integer 16;	# XXX little-endian!
66option PXE.mtftp-sport code 3 = unsigned integer 16;	# XXX little-endian!
67option PXE.mtftp-tmout code 4 = unsigned integer 8;
68option PXE.mtftp-delay code 5 = unsigned integer 8;
69
70# PXE.discovery-control is actually a bitfield with the
71# following bits:
72#	0x01	disable broadcast discovery
73#	0x02	disable multicast discovery
74#	0x04	only use/accept servers in PXE.boot-servers
75#	0x08	if file name is present in initial DHCP OFFER,
76#		download that boot file, rather than prompting,
77#		displaying a menu, or performing Boot Server
78#		Discovery.
79option PXE.discovery-control code 6 = unsigned integer 8;
80
81# Note, this option is REQUIRED unless PXE.discovery-control has
82# 0x02 set.
83option PXE.discovery-mcast-addr code 7 = ip-address;
84
85# XXX
86# I don't even want to think about how to represent these options
87# in dhcpd.conf syntax.  See table 2-1 in the PXE spec.
88#
89# Luckily, these are options sent by the server back to the client,
90# so we don't really have to deal with them unless we want to use
91# their functionality.
92#
93# option PXE.boot-servers code 8 = ...
94# option PXE.boot-menu code 9 = ...
95# option PXE.menu-prompt code 10 = ...
96
97# XXX
98# Not sure how to represent these in dhcpd.conf syntax.
99# option PXE.mcast-addrs-alloc code 11 = ...
100# option PXE.credential-types code 12 = ...
101
102# Codes 64-127 : Loader Options : Boot Server specific
103
104# PXE.boot-item is actually two 16-bit fields packed into a single
105# 32-bit integer:
106#	Boot Server type  0xffff0000
107#	Boot Server layer 0x0000ffff
108option PXE.boot-item code 71 = unsigned integer 32;
109
110# Codes 128-254 : Vendor Options : Vendor NBP specific
111
112# XXX NO WAY TO REPRESENT THIS!
113# option PXE.end code 255 = void;
114