summaryrefslogtreecommitdiff
path: root/usr.sbin/rarpd
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2001-11-16 16:49:21 +0000
committerRobert Watson <rwatson@FreeBSD.org>2001-11-16 16:49:21 +0000
commitc3ce2b2baa7a388d6909ffc8e70dfc2e79944621 (patch)
treee02d9932a1e32fea832896bb99b2d2b555d91be2 /usr.sbin/rarpd
parent9331ef537f86460f58af539e32a5baee3b80611d (diff)
downloadsrc-test2-c3ce2b2baa7a388d6909ffc8e70dfc2e79944621.tar.gz
src-test2-c3ce2b2baa7a388d6909ffc8e70dfc2e79944621.zip
Notes
Diffstat (limited to 'usr.sbin/rarpd')
-rw-r--r--usr.sbin/rarpd/rarpd.812
-rw-r--r--usr.sbin/rarpd/rarpd.c6
2 files changed, 17 insertions, 1 deletions
diff --git a/usr.sbin/rarpd/rarpd.8 b/usr.sbin/rarpd/rarpd.8
index 6c3605785879..07c393b476ae 100644
--- a/usr.sbin/rarpd/rarpd.8
+++ b/usr.sbin/rarpd/rarpd.8
@@ -28,6 +28,7 @@
.Sh SYNOPSIS
.Nm
.Op Fl adfsv
+.Op Fl t Ar directory
.Op Ar interface
.Sh DESCRIPTION
.Nm
@@ -93,6 +94,17 @@ Run in the foreground.
Supply a response to any RARP request for which an ethernet to IP address
mapping exists; do not depend on the existence of
.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
Enable verbose sysloging.
.El
diff --git a/usr.sbin/rarpd/rarpd.c b/usr.sbin/rarpd/rarpd.c
index b0d999eae694..67e2deee3221 100644
--- a/usr.sbin/rarpd/rarpd.c
+++ b/usr.sbin/rarpd/rarpd.c
@@ -177,7 +177,7 @@ main(int argc, char *argv[])
openlog(name, LOG_PID | LOG_CONS, LOG_DAEMON);
opterr = 0;
- while ((op = getopt(argc, argv, "adfsv")) != -1) {
+ while ((op = getopt(argc, argv, "adfst:v")) != -1) {
switch (op) {
case 'a':
++aflag;
@@ -195,6 +195,10 @@ main(int argc, char *argv[])
++sflag;
break;
+ case 't':
+ tftp_dir = optarg;
+ break;
+
case 'v':
++verbose;
break;