o Allow rarpd to accept an additional '-t directory' argument, specifying
an alternative to /tftpboot. This is useful it you're using tftpd with an alternative root (using -s), and would like rarpd to respond selectively to RARP requests using the same criteria as tftp. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
This commit is contained in:
parent
9331ef537f
commit
c3ce2b2baa
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=86460
@ -28,6 +28,7 @@
|
|||||||
.Sh SYNOPSIS
|
.Sh SYNOPSIS
|
||||||
.Nm
|
.Nm
|
||||||
.Op Fl adfsv
|
.Op Fl adfsv
|
||||||
|
.Op Fl t Ar directory
|
||||||
.Op Ar interface
|
.Op Ar interface
|
||||||
.Sh DESCRIPTION
|
.Sh DESCRIPTION
|
||||||
.Nm
|
.Nm
|
||||||
@ -93,6 +94,17 @@ Run in the foreground.
|
|||||||
Supply a response to any RARP request for which an ethernet to IP address
|
Supply a response to any RARP request for which an ethernet to IP address
|
||||||
mapping exists; do not depend on the existence of
|
mapping exists; do not depend on the existence of
|
||||||
.Pa /tftpboot/\fIipaddr\fP* .
|
.Pa /tftpboot/\fIipaddr\fP* .
|
||||||
|
.It Fl t
|
||||||
|
Supple an alternative tftp root directory to
|
||||||
|
.Pa /tftpboot ,
|
||||||
|
matching similar behavior of the
|
||||||
|
.Fl s
|
||||||
|
flag on
|
||||||
|
.Xr tftpd 8 .
|
||||||
|
This permits
|
||||||
|
.Nm
|
||||||
|
to selectively respond to RARP requests, but use an alternative directory
|
||||||
|
for IP checking.
|
||||||
.It Fl v
|
.It Fl v
|
||||||
Enable verbose sysloging.
|
Enable verbose sysloging.
|
||||||
.El
|
.El
|
||||||
|
@ -177,7 +177,7 @@ main(int argc, char *argv[])
|
|||||||
openlog(name, LOG_PID | LOG_CONS, LOG_DAEMON);
|
openlog(name, LOG_PID | LOG_CONS, LOG_DAEMON);
|
||||||
|
|
||||||
opterr = 0;
|
opterr = 0;
|
||||||
while ((op = getopt(argc, argv, "adfsv")) != -1) {
|
while ((op = getopt(argc, argv, "adfst:v")) != -1) {
|
||||||
switch (op) {
|
switch (op) {
|
||||||
case 'a':
|
case 'a':
|
||||||
++aflag;
|
++aflag;
|
||||||
@ -195,6 +195,10 @@ main(int argc, char *argv[])
|
|||||||
++sflag;
|
++sflag;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 't':
|
||||||
|
tftp_dir = optarg;
|
||||||
|
break;
|
||||||
|
|
||||||
case 'v':
|
case 'v':
|
||||||
++verbose;
|
++verbose;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user