summaryrefslogtreecommitdiff
path: root/usr.sbin/dhcpd/dhcp.c
AgeCommit message (Expand)Author
2017-07-11Handle DHCPINFORM from clients behind a DHCP relay.Reyk Floeter
2017-04-24Add 'echo-client-id' statment, so that RFC 6842 behaviour can beKenneth R Westerback
2017-02-13Eliminate pointless'%m' (a.k.a. hand rolled strerror()) by using fatal() andKenneth R Westerback
2017-02-13Adjust some long lines.Kenneth R Westerback
2017-02-13Switch from old errwarn.c logging to shiny new log.[ch].Kenneth R Westerback
2016-10-24Compare server-identifiers and reject packets only *after* applyingKenneth R Westerback
2016-10-12client_identifier is not a string so using strlen() on it isKenneth R Westerback
2016-10-10Stop pretending we use RFC 3046/Option 82/Relay Agent Information.Kenneth R Westerback
2016-10-06Add support for RFC 6842. RFC 2131 said the server MUST NOT echoKenneth R Westerback
2016-10-05Use consistant idiom (intermediate variable 'i' rather than repeatedKenneth R Westerback
2016-10-04Zap stray whitespace.Kenneth R Westerback
2016-08-05Don't leak the option data of non-DHCPINFORM messages received onKenneth R Westerback
2016-02-06Eliminate #include inside *.h files and include only needed headers inKenneth R Westerback
2015-12-21remove NULL-checks before free()mmcc
2015-08-20stdlib.h is in scope; do not cast malloc/calloc/realloc*Theo de Raadt
2015-04-15Avoid using inet_ntoa() twice in a single printf() parameter listKenneth R Westerback
2014-11-11Tweak the the DHCPACK to DHCPINFORM log entry so that it isKenneth R Westerback
2014-11-10Typo: consitent -> consistent.Kenneth R Westerback
2014-08-11validate len field for proper length, not just "not zero."Tobias Stoeckmann
2014-07-11Fix DHCPINFORM not to lookup the lease database, not to fill the yiaddrYASUOKA Masahiko
2014-07-11Add -u option to bind UDP port as a socket to answer DHCPINFORM fromYASUOKA Masahiko
2013-04-05send_packet() and writev() return ssize_t, not int. Use correctKenneth R Westerback
2013-03-22RFC 2131 4.3.1 seems clear that a server MUST NOT include theKenneth R Westerback
2013-03-11RFC 2131 says don't ACK any REQUEST messages that contain aKenneth R Westerback
2013-02-14Obey RFC 2131 and when the broadcast flag is set send reply backKenneth R Westerback
2010-03-29Initialize 'flags' field of tree_cache stack variables to 0. Paranoia.Kenneth R Westerback
2010-03-29Always put server id in NAK's to requests. Some router/switchesKenneth R Westerback
2010-01-02Eliminate all uses of dmalloc() where the returned pointerKenneth R Westerback
2010-01-01Eliminate all uses of dfree() where the pointer is either dereferencedKenneth R Westerback
2009-09-01Echo back the Relay Agent Information option if present (RFC 3046).Reyk Floeter
2008-07-21Initial stab at DHCPINFORM support. OK phessler@Todd C. Miller
2008-05-07Add synchronisation support for dhcpd - this allows for two dhcpd'sBob Beck
2006-12-15small KNFKevin Steves
2006-06-14Move the transmission of privsep messages into its own function. WhereverChris Kuethe
2006-05-31This diff makes dhcpd able to manipulate pf tables on certain lease events.Chris Kuethe
2006-03-16KNF. No binary change.Claudio Jeker
2006-03-13tiny bit of delinting; ok krw@Otto Moerbeek
2005-11-22fix problem of dhcp server looping with "already acking lease"Bob Beck
2005-01-31Be a bit more paranoid about leases that are currently acked. There is aClaudio Jeker
2005-01-31Simply use the ethernet source address of the request as new ethernetClaudio Jeker
2005-01-29Fix memory leak when supersede_lease() fails and it is a DHCPACKTodd C. Miller
2004-12-06Bah, unbreak. from not form. Noticed by Dan Harnett.Claudio Jeker
2004-12-06Set correct source address for relayed packets. This affects only setups thatClaudio Jeker
2004-09-16avoid aliasing with libc functions; ok henningTheo de Raadt
2004-09-16Remove the not initialized fallback_interface code and use the normal bpfClaudio Jeker
2004-05-24typo; From: Andrey Matveev <andrushock@korovino.net>Henning Brauer
2004-05-04remove DEBUG_PACKET stuff; henning okTheo de Raadt
2004-05-04remove things not used, spotted by lint mostly; ok henningTheo de Raadt
2004-04-21filter writes and lock bpf descriptor, ok henning@Can Erkin Acar
2004-04-20$OpenBSD$Henning Brauer