diff options
author | rwatson <rwatson@FreeBSD.org> | 2001-11-16 16:49:21 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2001-11-16 16:49:21 +0000 |
commit | 6c8cb0765b85c0ddd7275430b9e023ed33d466ed (patch) | |
tree | e02d9932a1e32fea832896bb99b2d2b555d91be2 /usr.sbin/rarpd/rarpd.c | |
parent | cb22385a83069e10ef7f3b9564c98f68f5044315 (diff) | |
download | FreeBSD-src-6c8cb0765b85c0ddd7275430b9e023ed33d466ed.zip FreeBSD-src-6c8cb0765b85c0ddd7275430b9e023ed33d466ed.tar.gz |
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
Diffstat (limited to 'usr.sbin/rarpd/rarpd.c')
-rw-r--r-- | usr.sbin/rarpd/rarpd.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/rarpd/rarpd.c b/usr.sbin/rarpd/rarpd.c index b0d999e..67e2dee 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; |