diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2006-06-14 20:19:21 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2006-06-14 20:19:21 +0000 |
commit | c4bcae414f07fbfcf647eae8a18d4c61984917e3 (patch) | |
tree | d2c1f9e7024d2cd6052dfafd7044b14c52f53eae /usr.sbin/dhcpd | |
parent | 0cd791c913e2bef4d1748b8fd232a4b916f20a0d (diff) |
sort options;
Diffstat (limited to 'usr.sbin/dhcpd')
-rw-r--r-- | usr.sbin/dhcpd/dhcpd.8 | 34 | ||||
-rw-r--r-- | usr.sbin/dhcpd/dhcpd.c | 4 |
2 files changed, 19 insertions, 19 deletions
diff --git a/usr.sbin/dhcpd/dhcpd.8 b/usr.sbin/dhcpd/dhcpd.8 index 9da7203e6e3..687f6251480 100644 --- a/usr.sbin/dhcpd/dhcpd.8 +++ b/usr.sbin/dhcpd/dhcpd.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: dhcpd.8,v 1.11 2006/06/14 14:58:51 ckuethe Exp $ +.\" $OpenBSD: dhcpd.8,v 1.12 2006/06/14 20:19:20 jmc Exp $ .\" .\" Copyright (c) 1995, 1996 The Internet Software Consortium. .\" All rights reserved. @@ -48,8 +48,8 @@ .Op Fl dfn .Op Fl A Ar abandoned_ip_table .Op Fl C Ar changed_ip_table -.Op Fl L Ar leased_ip_table .Op Fl c Ar config-file +.Op Fl L Ar leased_ip_table .Op Fl l Ar lease-file .Op Fl p Ar pf-device .Op Ar if0 Op Ar ... ifN @@ -179,21 +179,6 @@ When the address is leased to a different machine, .Nm can remove the address from the overload table, thus allowing a well-behaved machine to reuse the address. -.It Fl L Ar leased_ip_table -When an address is leased -.Nm -will insert it into the -.Xr pf 4 -table named -.Ar leased_ip_table . -Addresses are removed from the table when the lease expires. -Combined with the table of abandoned addresses, this can help enforce a -requirement to use DHCP on a network, or can place DHCP users in a different -class of service. -Users are cautioned against placing much trust in Ethernet or IP addresses; -.Xr ifconfig 8 -can be used to trivially change the interface's address, and on a busy DHCP -network, IP addresses will likely be quickly recycled. .It Fl c Ar config-file Use an alternate configuration file, .Ar config-file . @@ -226,6 +211,21 @@ background. This is useful when running .Nm under a debugger, or when running it out of inittab on System V systems. +.It Fl L Ar leased_ip_table +When an address is leased +.Nm +will insert it into the +.Xr pf 4 +table named +.Ar leased_ip_table . +Addresses are removed from the table when the lease expires. +Combined with the table of abandoned addresses, this can help enforce a +requirement to use DHCP on a network, or can place DHCP users in a different +class of service. +Users are cautioned against placing much trust in Ethernet or IP addresses; +.Xr ifconfig 8 +can be used to trivially change the interface's address, and on a busy DHCP +network, IP addresses will likely be quickly recycled. .It Fl l Ar lease-file Use an alternate lease file, .Ar lease-file . diff --git a/usr.sbin/dhcpd/dhcpd.c b/usr.sbin/dhcpd/dhcpd.c index 504cbbbe814..be6d433f52a 100644 --- a/usr.sbin/dhcpd/dhcpd.c +++ b/usr.sbin/dhcpd/dhcpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhcpd.c,v 1.28 2006/06/14 14:58:52 ckuethe Exp $ */ +/* $OpenBSD: dhcpd.c,v 1.29 2006/06/14 20:19:20 jmc Exp $ */ /* * Copyright (c) 2004 Henning Brauer <henning@cvs.openbsd.org> @@ -190,7 +190,7 @@ usage(void) fprintf(stderr, "usage: %s [-dfn] [-A abandoned_ip_table]", __progname); fprintf(stderr, " [-C changed_ip_table]\n"); - fprintf(stderr, "\t[-L leased_ip_table] [-c config-file]"); + fprintf(stderr, "\t[-c config-file] [-L leased_ip_table]"); fprintf(stderr, " [-l lease-file]\n"); fprintf(stderr, "\t[-p pf-device] [if0 [...ifN]]\n"); exit(1); |