xref: /freebsd/libexec/bootpd/tools/bootptest/bootptest.8 (revision b2c76c41be32f904179efed29c0ca04d53f3996c)
1229494cbSMike Pritchard.\"
244099b7bSPaul Traina.\" bootptest.8
3bd26f2daSRuslan Ermilov.Dd June 10, 1993
4bd26f2daSRuslan Ermilov.Dt BOOTPTEST 8
5bd26f2daSRuslan Ermilov.Os
6bd26f2daSRuslan Ermilov.Sh NAME
7bd26f2daSRuslan Ermilov.Nm bootptest
8bd26f2daSRuslan Ermilov.Nd "send BOOTP queries and print responses"
9bd26f2daSRuslan Ermilov.Sh SYNOPSIS
10bd26f2daSRuslan Ermilov.Nm
11bd26f2daSRuslan Ermilov.Op Fl f Ar bootfile
12bd26f2daSRuslan Ermilov.Op Fl h
13bd26f2daSRuslan Ermilov.Op Fl m Ar magic_number
14bd26f2daSRuslan Ermilov.Ar server\-name
15bd26f2daSRuslan Ermilov.Op Ar template\-file
16bd26f2daSRuslan Ermilov.Sh DESCRIPTION
173f162cb8SPhilippe CharnierThe
18bd26f2daSRuslan Ermilov.Nm
193f162cb8SPhilippe Charnierutility sends BOOTP requests to the host specified as
20bd26f2daSRuslan Ermilov.Ar server\-name
2144099b7bSPaul Trainaat one\-second intervals until either a response is received,
2244099b7bSPaul Trainaor until ten requests have gone unanswered.
2344099b7bSPaul TrainaAfter a response is received,
24bd26f2daSRuslan Ermilov.Nm
2544099b7bSPaul Trainawill wait one more second listening for additional responses.
26bd26f2daSRuslan Ermilov.Sh OPTIONS
27bd26f2daSRuslan Ermilov.Bl -tag -width indent
28bd26f2daSRuslan Ermilov.It Fl f Ar bootfile
2944099b7bSPaul TrainaFill in the boot file field of the request with
30bd26f2daSRuslan Ermilov.Ar bootfile .
31bd26f2daSRuslan Ermilov.It Fl h
3244099b7bSPaul TrainaUse the hardware (Ethernet) address to identify the client.
3344099b7bSPaul TrainaBy default, the IP address is copied into the request
3444099b7bSPaul Trainaindicating that this client already knows its IP address.
35bd26f2daSRuslan Ermilov.It Fl m Ar magic_number
3644099b7bSPaul TrainaInitialize the first word of the vendor options field with
37bd26f2daSRuslan Ermilov.Ar magic_number .
38bd26f2daSRuslan Ermilov.El
39bd26f2daSRuslan Ermilov.Pp
4044099b7bSPaul TrainaA
41bd26f2daSRuslan Ermilov.Ar template\-file
4244099b7bSPaul Trainamay be specified, in which case
43bd26f2daSRuslan Ermilov.Nm
4444099b7bSPaul Trainauses the (binary) contents of this file to initialize the
45bd26f2daSRuslan Ermilov.Em options
4644099b7bSPaul Trainaarea of the request packet.
47a3ac07a5SRuslan Ermilov.Sh SEE ALSO
48a3ac07a5SRuslan Ermilov.Xr bootpd 8
49a3ac07a5SRuslan Ermilov.Rs
50a3ac07a5SRuslan Ermilov.%O RFC951
51a3ac07a5SRuslan Ermilov.%T "BOOTSTRAP PROTOCOL (BOOTP)"
52a3ac07a5SRuslan Ermilov.Re
53a3ac07a5SRuslan Ermilov.Rs
54a3ac07a5SRuslan Ermilov.%O RFC1048
55a3ac07a5SRuslan Ermilov.%T "BOOTP Vendor Information Extensions"
56a3ac07a5SRuslan Ermilov.Re
57bd26f2daSRuslan Ermilov.Sh AUTHORS
58bd26f2daSRuslan ErmilovThe
59bd26f2daSRuslan Ermilov.Nm
603f162cb8SPhilippe Charnierutility is a combination of original and derived works.
61bd26f2daSRuslan ErmilovThe main program module
62bd26f2daSRuslan Ermilov.Pq Pa bootptest.c
63bd26f2daSRuslan Ermilovis original work by
64*01c2b8acSBaptiste Daroussin.An Gordon W. Ross Aq Mt gwr@mc.com .
65bd26f2daSRuslan ErmilovThe packet printing module
66bd26f2daSRuslan Ermilov.Pq Pa print\-bootp.c
67bd26f2daSRuslan Ermilovis a slightly modified
68bd26f2daSRuslan Ermilovversion of a file from the
69bd26f2daSRuslan Ermilov.Bx
70bd26f2daSRuslan Ermilov.Xr tcpdump 1
71bd26f2daSRuslan Ermilovprogram.
72bd26f2daSRuslan Ermilov.Pp
7344099b7bSPaul TrainaThis program includes software developed by the University of
7444099b7bSPaul TrainaCalifornia, Lawrence Berkeley Laboratory and its contributors.
75bd26f2daSRuslan Ermilov(See the copyright notice in
76bd26f2daSRuslan Ermilov.Pa print\-bootp.c . )
77