FreeBSD Bugzilla – Attachment 21832 Details for
Bug 38126
[PATCH] add option to rarpd for alternate tftp directory
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 2.02 KB, created by
Josh Elsasser
on 2002-05-16 00:20:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Josh Elsasser
Created:
2002-05-16 00:20:01 UTC
Size:
2.02 KB
patch
obsolete
>--- rarpd.c.orig Sat Jul 21 14:58:09 2001 >+++ rarpd.c Wed May 15 14:29:46 2002 >@@ -33,8 +33,8 @@ > /* > * rarpd - Reverse ARP Daemon > * >- * Usage: rarpd -a [ -dfsv ] [ hostname ] >- * rarpd [ -dfsv ] interface [ hostname ] >+ * Usage: rarpd -a [ -dfsv ] [ -t directory ] [ hostname ] >+ * rarpd [ -dfsv ] [ -t directory ] interface [ hostname ] > * > * 'hostname' is optional solely for backwards compatibility with Sun's rarpd. > * Currently, the argument is ignored. >@@ -129,7 +129,7 @@ > > int verbose; /* verbose messages */ > int s; /* inet datagram socket */ >-const char *tftp_dir = TFTP_DIR; /* tftp directory */ >+char *tftp_dir = TFTP_DIR; /* tftp directory */ > > int dflag; /* messages to stdout/stderr, not syslog(3) */ > int sflag; /* ignore /tftpboot */ >@@ -164,6 +164,8 @@ > int aflag = 0; /* listen on "all" interfaces */ > int fflag = 0; /* don't fork */ > >+ extern char *optarg; >+ > if ((name = strrchr(argv[0], '/')) != NULL) > ++name; > else >@@ -177,7 +179,7 @@ > 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 +197,11 @@ > ++sflag; > break; > >+ case 't': >+ if(optarg) >+ tftp_dir = optarg; >+ break; >+ > case 'v': > ++verbose; > break; >@@ -395,7 +402,7 @@ > void > usage(void) > { >- (void)fprintf(stderr, "usage: rarpd [-adfsv] [interface]\n"); >+ (void)fprintf(stderr, "usage: rarpd [-adfsv] [-t directory] [interface]\n"); > exit(1); > } > >--- usr.sbin/rarpd/rarpd.8.orig Sat Jul 21 14:58:08 2001 >+++ usr.sbin/rarpd/rarpd.8 Wed May 15 13:36:50 2002 >@@ -28,6 +28,7 @@ > .Sh SYNOPSIS > .Nm > .Op Fl adfsv >+.Op Fl t Ar directory > .Op Ar interface > .Sh DESCRIPTION > .Nm >@@ -93,6 +94,11 @@ > 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 Ar directory >+Use >+.Pa directory >+instead of >+.Pa /tftpboot . > .It Fl v > Enable verbose sysloging. > .El
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 38126
: 21832