summaryrefslogtreecommitdiff
path: root/usr.sbin/dhcpd
AgeCommit message (Collapse)Author
2007-10-21Take even more care to ensure the max message size is atKenneth R Westerback
least as large as the minimum IP MTU. ok canacar@ henning@ millert@
2007-10-21Last bit of (planned) tidy up in cons_options(). Join some lines,Kenneth R Westerback
delete some blank lines, add some other blank lines, move expressions so calculations done only once. Eliminate extraneous ++'s. No functional change.
2007-10-21Tidy up, make usual case exit faster, eliminate variable. No functionalKenneth R Westerback
change. ok beck@
2007-10-19Make sure bufix is updated after copying options into the first overflowKenneth R Westerback
buffer. Actually use the second overflow buffer now that bufix is correct and the test for remaining options will work correctly. ok beck@
2007-10-19Be a bit more paranoid and initialize all valid options buffers withKenneth R Westerback
DHO_PAD (a.k.a. 0). Eliminate manual DHO_PAD'ing after DHO_END is put into the buffer. ok beck@
2007-10-19Fix obvious typos and write DHO_PAD and DHO_END into correct options overflowKenneth R Westerback
buffer. Spotted by canacar@ and others. ok beck@
2007-10-19Correct the value returned by cons_options in the case where overload buffersKenneth R Westerback
are used. It should reflect the end of the main options buffer rather than the start of the options copied into it. ok beck@
2007-10-19Ensure that main_buffer_size is set to a value less than or equal toKenneth R Westerback
the size of the outgoing packet's options field. Spotted by canacar@. ok beck@
2007-10-09"Minimum IP MTU" means what it says. Ensure that packets returned byKenneth R Westerback
dhcpd are the minimum size or larger no matter what the client thinks the minimum allowable size is. Found by Nahuel Riva and Gera Richarte. Fix by millert@.
2007-10-06Allow the various pf table actions to operate independently. For example,Chris Kuethe
"-L leased" wouldn't work without "-A abandoned". testing help from merdely "i like" deraadt
2007-07-24use 1 vs. -1 for true; ok henning@ krw@Kevin Steves
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-15use the correct fd for poll. we're waiting on the pipe, not pfTed Unangst
ok ckuethe deraadt
2007-03-02spaces and comment to sync to dhclient dhcp.h; no binary changeKevin Steves
2007-03-02pull in spaces array overflow fixes from dhclientHenning Brauer
the code here is slightly different, but also has the overfow in both cases
2007-02-26don't leak memory, from dhclient; ok krw@Kevin Steves
2007-02-22another dead extern; Mark Lumsden <mark@cyodesigns.com>Henning Brauer
2007-02-18unused extern declHenning Brauer
From: Mark Lumsden <mark@cyodesigns.com>
2007-02-17-q flag is unused (old shared code from dhclient); spotted by mark@cyodesignsTheo de Raadt
ok krw
2007-02-17no code for -p, so remove from man page and usage();Jason McIntyre
confirmed by ckuethe; spotted by Mark Lumsden
2007-02-06spacesKevin Steves
2007-02-06remove some dangling function prototypesKevin Steves
2007-02-01Don't count ethernet as overhead for UDP packet constuction. GivesKenneth R Westerback
14 more bytes of option space! A change ISC made a long time ago. ok stevesk@ (DHCP) canacar@ (bpf)
2007-01-11remove unused #define DHCP_MIN_LENKevin Steves
2007-01-04<sys/un.h> not neededKevin Steves
2006-12-18align, no binary changeKevin Steves
2006-12-17remove one-lease-per-client parameter which was never implemented (itKevin Steves
doesn't do anything and is not documented); ok henning@
2006-12-15small KNFKevin Steves
2006-12-15typo in commentKevin Steves
2006-12-12remove unused #defines; no binary changeKevin Steves
2006-12-12<signal.h> not neededKevin Steves
2006-12-11spacesKevin Steves
2006-11-22sync dhclient and dhcpd parse.c areas where we can.Kevin Steves
mainly formatting, whitespace; ok henning@
2006-11-22small header cleanup:Kevin Steves
remove uneeded header use <foo.h> not "foo.h" for system include no binary change; ok henning@
2006-11-22fix some warning messages and comments in parse_date(); ok henning@Kevin Steves
2006-11-21remove unused #defines;Kevin Steves
remove duplicate #defines; remove DEBUG; remove useless comment; no need to #ifdef protect. no binary change; ok henning@
2006-11-21re-order includes and eliminate duplicates, no binary change; ok henning@Kevin Steves
2006-11-20KNF (no space before '['); ok henning@Kevin Steves
2006-11-08remove another irrelevant reference; ok jmc@Kevin Steves
2006-11-07remove some irrelevant references; spotted by steveskJason McIntyre
ok henning stevesk
2006-10-20indentTheo de Raadt
2006-08-09Fix a reliability issue in dhcpd where a DHCPDISCOVER packet with a 32-byteChad Loder
client identifier would cause dhcpd to mistakenly exit. From Debian bug 380273, affecting ISC dhcpd 2.x, upon which our dhcpd is based. OK beck@
2006-08-09typo in example config; ok henning@Kevin Steves
2006-06-14sort options;Jason McIntyre
2006-06-14This diff allows dhcpd to put active leases into a pf table. Dhcpd will thenChris Kuethe
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
2006-06-14Move the transmission of privsep messages into its own function. WhereverChris Kuethe
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
2006-06-14Avoid changing pf tables when table name is NULLChris Kuethe
ok henning
2006-06-13typo; from sstullJason McIntyre
ok ckuethe
2006-06-01Sort options in usage. From jmc.Chris Kuethe
ok henning@
2006-05-31Missing $OpenBSD$ tag. Spotted by Masao Uebayashi.Chris Kuethe
ok henning@