Age | Commit message (Collapse) | Author |
|
OK claudio
|
|
|
|
behaviour in accordance with man page. Introduce '-v' option to make
output more verbose.
Do a little refactoring to make code more consistent with other daemons
like ospfd(8), httpd(8), relayd(8), etc.
Feedback from bluhm benno
ok bluhm
|
|
Brings various dhcp related daemons into line with
the common idiom.
ok florian@
|
|
placement logic from dhclient.
|
|
log_warn(). Zap a couple of explicit 'syslog()' calls.
|
|
|
|
ok benno@
|
|
timegm, and tzset
ok deraadt@
|
|
this will be forbidden. The remaining pledge(2) calls after chroot(2) are still
kept.
OK semarie@ "it is time now"
|
|
each *.c file.
Inspired by mention of header silliness by Edgar Pettijohn and mmcc@
on tech@.
|
|
Diff from Ricardo Mestre. Test report from sthen@.
|
|
ones that needed to be booted out of the pf table process. This
avoids removing the same addess over and over.
Problem report and original diff from Bertrand Provost.
|
|
does.
Pointed out by Bertrand Provost.
ok henning@
|
|
possible. Annotate <sys/param.h> lines with their current reasons. Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution. These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)
|
|
the clients on non ethernet interfaces (eg. tun(4) or pppx(4)).
input krw
ok krw
|
|
reported by Mikolaj Kucharski, thanks!
ok krw
|
|
ok krw
|
|
ok krw
|
|
both getopt calls need the same optstring or the first getopt() call
will end before parsing all arguments.
Problem found and fixed supplied by m_athias
OK millert@, deraadt@
|
|
and make it possible to bind sockets (including listening sockets!)
to rtables and not just rdomains. This changes the name of the
system calls, socket option, and ioctl. After building with this
you should remove the files /usr/share/man/cat2/[gs]etrdomain.0.
Since this removes the existing [gs]etrdomain() system calls, the
libc major is bumped.
Written by claudio@, criticized^Wcritiqued by me
|
|
domain with setrdomain(). This allows to run dhcpd on multiple rdomains.
OK krw@
|
|
|
|
sync options were specified. OK deraadt@
|
|
|
|
with the same configuration to be run on the same net and they will
keep their lease files/state in synch, and therefore allowing you to
run redundant dhcpd's. Synchronization code stolen from spamd, uses
an hmac key in /var/db/dhcpd.key if it exists.
ok krw@ deraadt@
|
|
ok jmc@
|
|
|
|
ok krw
|
|
confirmed by ckuethe;
spotted by Mark Lumsden
|
|
remove uneeded header
use <foo.h> not "foo.h" for system include
no binary change; ok henning@
|
|
|
|
periodically - based on the length of the shortest lease time - walk across
all leases searching for expired leases which are then removed from the pf
table.
ok henning
|
|
ok henning@
|
|
dhcpd is now able to place abandoned addresses into a table (to offer some
protection against machines camping on an address) and remove them from the
table if they are properly leased.
When dhcpd assigns an IP to a new hardware address, it can remove that
address from a table. This is for use with the overload table in pf; newly
arrived machines will not be punished for the actions of a machine that
went away.
beck@ and krw@ liked previous versions of this, henning@ final ok
|
|
dhcpd.interfaces then
a) don't bother looking up information on interfaces that were not
requested;
b) don't exit if a requested interface is not found, just issue a
warning message;
c) exit if none of the interfaces were found.
The command line for dhcpd shown in ps will continue to show requested
but ignored interfaces.
As usual with dhc* code, whack a bunch of unused states, constants,
flags, etc. Since we only invoke discover_interfaces() with
DISCOVER_SERVER, there is no need to keep track of other
possibilities.
|
|
|
|
|
|
and document it. cleanup some unused/unneeded variables while there.
idea & ok henning@
|
|
|
|
remove an extraneous "exiting" when there is a config file error.
OK henning@ and mcbride@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|