blob: 1de7b6f588ec8186aac850340a9cb4bef0c7a182 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
.\" bootptest.8
.Dd June 12, 1999
.Dt BOOTPTEST 8
.Os
.Sh NAME
.Nm bootptest
.Nd send BOOTP queries and print responses
.Sh SYNOPSIS
.Nm bootptest
.Op Fl f Ar bootfile
.Op Fl h
.Op Fl m Ar magic_number
.Ar server-name
.Op Ar template-file
.Sh DESCRIPTION
.Nm
sends BOOTP requests to the host specified as
.Ar server-name
at one-second intervals until either a response is received,
or until ten requests have gone unanswered.
After a response is received,
.Nm
will wait one more second listening for additional responses.
.Sh OPTIONS
.Bl -tag -width "-m magic_number"
.It Fl f Ar bootfile
Fill in the boot file field of the request with
.Ar bootfile .
.It Fl h
Use the hardware (Ethernet) address to identify the client.
By default, the IP address is copied into the request
indicating that this client already knows its IP address.
.It Fl m Ar magic_number
Initialize the first word of the vendor options field with
.Ar magic_number .
.El
.Pp
A
.Ar template-file
may be specified, in which case
.Nm
uses the (binary) contents of this file to initialize the
.Fa options
area of the request packet.
.Sh CREDITS
The bootptest program is a combination of original and derived works.
The main program module (bootptest.c) is original work by
Gordon W. Ross <gwr@mc.com>.
The packet printing module (print-bootp.c) is a slightly modified
version of a file from the BSD tcpdump program.
.Pp
This program includes software developed by the University of
California, Lawrence Berkeley Laboratory and its contributors.
(See the copyright notice in print-bootp.c)
.Sh SEE ALSO
.Xr bootpd 8
.Pp
.Bl -tag -width "RFC 2132" -compact
.It Tn RFC 951
Bootstrap Protocol (BOOTP)
.It RFC 2132
DHCP Options and BOOTP Vendor Extensions
.El
|