summaryrefslogtreecommitdiff
path: root/sbin/dhclient/options.c
AgeCommit message (Expand)Author
2015-10-26Give dhclient(8) the ability to use option 119, a.k.a. "DomainKenneth R Westerback
2014-10-27Nuke getLong(), getShort(), getUShort(). Two line functions (memcpy();Kenneth R Westerback
2014-10-27htonl(ntohl(memcpy'd buf)) seems like the long way around to copyKenneth R Westerback
2014-10-27Zap extraneous whitespace and a stuttered extra 'break;'.Kenneth R Westerback
2014-07-28Fix memory exhaustion occurring on DHCP options with 0 length.Tobias Stoeckmann
2014-07-09Special case pretty printing of DHO_CLASSLESS_STATIC_ROUTES andKenneth R Westerback
2014-05-05Zap trailing whitespace. Started by pointed comments from andre@.Kenneth R Westerback
2014-01-21Add parsing for options 121 (classless-static-routes) and 249Kenneth R Westerback
2014-01-19We don't have any (and I can't find elsewhere) signed 16 bit orKenneth R Westerback
2013-12-30Replace yet another hand-rolled list with a TAILQ. reject_list thisKenneth R Westerback
2013-12-22Setting format id to 't' when it's already 't' is a waste ofKenneth R Westerback
2013-12-22No need to change format id 'X' (ascii or hex) to 'x' (hex) whileKenneth R Westerback
2013-12-21Introduce pretty_print_string() and use for printing both textKenneth R Westerback
2013-12-18Code existed to print non-printable characters in strings writtenKenneth R Westerback
2013-12-14Start cleanup/fixup of pretty printing of option data. Use snprintf()Kenneth R Westerback
2013-12-12Delete spurious blank line.Kenneth R Westerback
2013-12-12Eliminate (most) double decrements of remaining space in the prettyKenneth R Westerback
2013-12-06Having stopped pretending we handle anything but ethernet packets,Kenneth R Westerback
2013-07-11Put more debug verbiage under DEBUG. Add a few more debug messages.Kenneth R Westerback
2013-07-07Remove erroneous warnings -- we do not reject offers just because theKenneth R Westerback
2013-07-06Fix a lie in one comment and zap a pointless sentence in another.Kenneth R Westerback
2013-05-02Bunch of comment/whitespace cleanup. Eliminate some misleading orKenneth R Westerback
2013-04-05Nuke parameter to do_packet() not used since 2006. From dhill.Kenneth R Westerback
2013-02-14Don't rely on the packet buffer (client->packet) being preserved betweenKenneth R Westerback
2013-01-16Unrevert last reversion. otto@ pointed out that it wasn't asprintf()Kenneth R Westerback
2013-01-16Revert last. asprintf() breaks something.Kenneth R Westerback
2013-01-16Use the magic of asprintf() to produce more informative errorKenneth R Westerback
2013-01-13More informative error message.Kenneth R Westerback
2013-01-13Make pretty_print_option() return "" rather than "<fmt error>" whenKenneth R Westerback
2012-11-15Shuffle #include's to use the majority idiom everywhere - i.e. useKenneth R Westerback
2012-11-08Remove confusing extra address abstraction 'struct iaddr'. Just useKenneth R Westerback
2012-11-07Use memset() consistently rather than tossing in a few bzero()'s.Kenneth R Westerback
2012-10-27Change dhclient.conf directive 'ignore' to take a list of option namesKenneth R Westerback
2012-06-26Add some more paranoia and make code clearer. Check that the requiredKenneth R Westerback
2012-06-26RFC 2132 says "Options containing NVT ASCII data SHOULD NOT includeKenneth R Westerback
2011-05-11Make dhclient more friendly to sequential option processing byKenneth R Westerback
2011-04-17fix a possible division by zero if a server sends us a broken optionPeter Hessler
2009-03-10Add 6-byte MAC address to the log entries for DHCP ACK/NAK/OFFER.Kenneth R Westerback
2007-06-02safer snprintf construct with more paranoid length calculationPeter Valchev
2007-05-31fix a funny memory miscalculation bug in options parsingPeter Valchev
2007-02-14spacing and a typo that fell out of the readTheo de Raadt
2007-01-25Cleanup some more code. Eliminate dhcp(), bootp(), parse_options() byKenneth R Westerback
2007-01-16More cleanup. Eliminate 'struct packet' by cleverly passing asKenneth R Westerback
2007-01-14Don't treat any packet with an invalid option buffer or an invalidKenneth R Westerback
2007-01-11Reject all packets with an option claiming to extend past the end ofKenneth R Westerback
2007-01-06Fix options parsing. Last commit lost the proper length of theKenneth R Westerback
2007-01-04Another round of cleanup. There is only one instance of structKenneth R Westerback
2006-12-26Our dhclient only handles one interface. Simplify code by using theKenneth R Westerback
2006-12-15typo in commentKevin Steves
2005-08-22Fix problems with some Linksys DHCP servers (and probably others) byKenneth R Westerback