summaryrefslogtreecommitdiffstats
path: root/usr.sbin/dhcpd/pfutils.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Replace bzero(3) with memset(3)mestre2016-11-151-7/+7
| | | | "Looks good" to deraadt@
* Eliminate #include inside *.h files and include only needed headers inkrw2016-02-061-5/+4
| | | | | | | each *.c file. Inspired by mention of header silliness by Edgar Pettijohn and mmcc@ on tech@.
* The pf table process should die if the pipe to the dhcpd process iskrw2015-02-051-1/+4
| | | | | | closed. e.g. dhcpd has been killed. ok henning@
* Include <netinet/in.h> before <net/pfvar.h>. In a future change whenderaadt2015-01-211-2/+3
| | | | ports is ready, <net/pfvar.h> will stop including a pile of balony.
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-161-2/+1
| | | | | | | | | 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)
* Scattering a few bcopy()'s around source using mostly memcpy() is justkrw2013-10-181-6/+6
| | | | asking for confusion. Replace bcopy()'s with memcpy()'s.
* remove double word in comment;jmc2007-12-231-2/+2
|
* Allow the various pf table actions to operate independently. For example,ckuethe2007-10-061-16/+6
| | | | | | "-L leased" wouldn't work without "-A abandoned". testing help from merdely "i like" deraadt
* use the correct fd for poll. we're waiting on the pipe, not pftedu2007-05-151-2/+2
| | | | ok ckuethe deraadt
* indentderaadt2006-10-201-18/+18
|
* This diff allows dhcpd to put active leases into a pf table. Dhcpd will thenckuethe2006-06-141-11/+45
| | | | | | | | 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
* Move the transmission of privsep messages into its own function. Whereverckuethe2006-06-141-1/+40
| | | | | | | we might have conditionally sent a message, we now just call the pfmsg() function, and let it figure out whether the message should be sent or not. ok henning
* Avoid changing pf tables when table name is NULLckuethe2006-06-141-1/+4
| | | | ok henning
* Missing $OpenBSD$ tag. Spotted by Masao Uebayashi.ckuethe2006-05-311-0/+1
| | | | ok henning@
* This diff makes dhcpd able to manipulate pf tables on certain lease events.ckuethe2006-05-311-0/+182
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