diff options
Diffstat (limited to 'usr.sbin/dhcrelay')
-rw-r--r-- | usr.sbin/dhcrelay/dhcrelay.8 | 10 | ||||
-rw-r--r-- | usr.sbin/dhcrelay/dhcrelay.c | 10 |
2 files changed, 4 insertions, 16 deletions
diff --git a/usr.sbin/dhcrelay/dhcrelay.8 b/usr.sbin/dhcrelay/dhcrelay.8 index 6078ab8f893..d81455d3bf7 100644 --- a/usr.sbin/dhcrelay/dhcrelay.8 +++ b/usr.sbin/dhcrelay/dhcrelay.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: dhcrelay.8,v 1.2 2004/04/13 01:17:49 henning Exp $ +.\" $OpenBSD: dhcrelay.8,v 1.3 2004/04/13 02:00:50 henning Exp $ .\" .\" Copyright (c) 1997 The Internet Software Consortium. .\" All rights reserved. @@ -45,7 +45,6 @@ .Sh SYNOPSIS .Nm .Op Fl d -.Op Fl q .Op Fl p Ar port .Fl i Ar interface .Ar server0 Op Ar ... serverN @@ -104,13 +103,6 @@ to always run as a foreground process, the .Fl d flag should be specified. .Pp -.Nm -will normally print its network configuration on startup. -This can be annoying in a system startup script \- to disable this -behaviour, specify the -.Fl q -flag. -.Pp The name of at least one DHCP server to which DHCP and BOOTP requests should be relayed must be specified on the command line. .Sh SEE ALSO diff --git a/usr.sbin/dhcrelay/dhcrelay.c b/usr.sbin/dhcrelay/dhcrelay.c index 548ae897650..0f12d3c7871 100644 --- a/usr.sbin/dhcrelay/dhcrelay.c +++ b/usr.sbin/dhcrelay/dhcrelay.c @@ -64,7 +64,7 @@ struct server_list { int main(int argc, char *argv[]) { - int ch, quiet = 0, no_daemon = 0; + int ch, no_daemon = 0; extern char *__progname; struct servent *ent; struct server_list *sp = NULL; @@ -74,7 +74,7 @@ main(int argc, char *argv[]) openlog(__progname, LOG_NDELAY, DHCPD_LOG_FACILITY); setlogmask(LOG_UPTO(LOG_INFO)); - while ((ch = getopt(argc, argv, "di:p:q")) != -1) { + while ((ch = getopt(argc, argv, "di:p:")) != -1) { switch (ch) { case 'd': no_daemon = 1; @@ -91,9 +91,6 @@ main(int argc, char *argv[]) case 'p': local_port = htons(atoi(optarg)); break; - case 'q': - quiet = 1; - break; default: usage(); /* not reached */ @@ -130,8 +127,7 @@ main(int argc, char *argv[]) argv++; } - if (!quiet) - log_perror = 0; + log_perror = 0; if (interfaces == NULL) error("no interface given"); |