aboutsummaryrefslogtreecommitdiff
path: root/sbin/dhclient/tables.c
Commit message (Collapse)AuthorAgeFilesLines
* dhclient: support option 114, default-url asciiDave Cottlehuber2019-11-221-2/+3
| | | | | | | | | | | | | | | | | | | This will enable further automation of HTTP UEFI boot loader support by providing a specific option for providing the boot URL to FreeBSD. Documented in: https://www.iana.org/assignments/bootp-dhcp-parameters/bootp-dhcp-parameters.xhtml https://kb.isc.org/docs/isc-dhcp-44-manual-pages-dhcp-options https://tools.ietf.org/html/rfc3679 Approved by: emaste MFC after: 2 weeks Sponsored by: SkunkWerks, GmbH Differential Revision: https://reviews.freebsd.org/D22475 Notes: svn path=/head/; revision=355019
* dhclient: raise WARNS to 4Alan Somers2018-02-211-2/+2
| | | | | | | | | | | | | | | | Mostly const-correctness fixes. There were also some variable-shadowing, unused variable, and a couple of sockaddr type-correctness changes. I also had trouble with cast-align warnings. I was able to prove that one of them was a false positive. But ultimately I had to disable the warning program-wide to deal with the others. Reviewed by: cem MFC after: 3 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D14460 Notes: svn path=/head/; revision=329754
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-1/+3
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326025
* dhclient(8): Enable numbered user class ID optionConrad Meyer2016-09-201-0/+1
| | | | | | | | | | | | | By adding it to the option priorities table. PR: 184117 Submitted by: Lowell Gilbert <freebsd-bugs-local at be-well.ilk.org> Reported by: Tomek CEDRO <cederom at tlen.pl> Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D7911 Notes: svn path=/head/; revision=306053
* Support domain-search in dhclient(8)Jean-Sébastien Pédron2011-12-041-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | The "domain-search" option (option 119) allows a DHCP server to publish a list of implicit domain suffixes used during name lookup. This option is described in RFC 3397. For instance, if the domain-search option says: ".example.org .example.com" and one wants to resolve "foobar", the resolver will try: 1. "foobar.example.org" 2. "foobar.example.com" The file /etc/resolv.conf is updated with a "search" directive if the DHCP server provides "domain-search". A regression test suite is included in this patch under tools/regression/sbin/dhclient. PR: bin/151940 Sponsored by Yakaz (http://www.yakaz.com) Notes: svn path=/head/; revision=228259
* Support the remaining options listed in dhcp-options(5) and RFC 2132.Brooks Davis2008-10-171-5/+17
| | | | | | | | | PR: bin/127076 Submitted by: jkim MFC after: 1 week Notes: svn path=/head/; revision=183974
* Implement RFC3442, the Classless Static Route option.Ed Maste2007-02-091-2/+3
| | | | | | | | | | | | | | The original DHCP specification includes a route option but it supports only class-based routes. RFC3442 adds support for specifying the netmask width for each static route. A variable length encoding is used to minimize the size of this option. PR: bin/99534 Submitted by: Andrey V. Elsukov <bu7cher@yandex.ru> Reviewed by: brooks Notes: svn path=/head/; revision=166602
* Add __FBSDID to all .c files in dhclient to aid in determining fileBrooks Davis2005-08-231-1/+3
| | | | | | | versions when dealing with user problems. Notes: svn path=/head/; revision=149399
* Change host-name from type "X" to type "t". This allows the client toBrooks Davis2005-07-251-1/+2
| | | | | | | | | | | | | | | | | | | | accept NUL-terminated strings as required by RFC 2132. This solution is not perfect as it removes the ability to send NUL-terminated host-name options which may be required by some broken servers. Given the current lack of an existance proof of such servers and the fact that servers that send NUL-terminated domain names do exist, this seems like an acceptable compromise. A discussion of these issues can be found at: http://marc.theaimsgroup.com/?l=dhcp-client&m=96837107208382&w=2 PR: bin/83468 Reported by: Sean Winn <sean at gothic dot net dot au> MFC-after: 3 days Notes: svn path=/head/; revision=148411
* Import the OpenBSD dhclient as shipped with OpenBSD-3.7 (the tagBrooks Davis2005-06-071-0/+430
OPENBSD_3_7). Notes: svn path=/vendor/OpenBSD/dist/; revision=147072