summaryrefslogtreecommitdiffstats
path: root/sbin/dhclient
Commit message (Collapse)AuthorAgeFilesLines
* MFOpenBSD rev 1.9: fix a buffer overflow when processing config filebrooks2005-08-241-1/+1
| | | | | | | lines that are exactly 81 characters in length. Obtained from: OpenBSD MFC After: 3 days
* Add __FBSDID to all .c files in dhclient to aid in determining filebrooks2005-08-2316-4/+48
| | | | versions when dealing with user problems.
* FreeBSD unconditionally supports write filters now.csjp2005-08-231-2/+0
|
* Further fix receive_packet() by using BPF_WORDALIGN to insure the offsetbrooks2005-07-281-5/+15
| | | | | | is properly aligned when we move to the next packet. Obtained from: ISC dhclient via krw at OpenBSD
* Don't reject packets with server names containing characters that arebrooks2005-07-281-7/+6
| | | | | | | not allowed in domain names. RFC 2132 does not list valid or invalid characters and the ISC client accepts anything here. Reported by: ps
* Fix a bug in the handling of cases where we got a short (or zero)brooks2005-07-271-4/+4
| | | | | | | | capture. Zero length captures caused an infinte loop and short captures probably caused memory corruption and a crash. Reported by: many MFC After: 3 days
* s/if_defaulroute/if_defaultroute/brooks2005-07-261-1/+1
| | | | We may now handle route updates better.
* Change host-name from type "X" to type "t". This allows the client tobrooks2005-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
* treat REASSOC events just like ASSOCsam2005-07-251-0/+1
| | | | MFC after: 3 days
* Bump document date.marks2005-07-201-1/+1
| | | | Reminded by: ru
* Document -b flag of dhclient.marks2005-07-201-0/+4
| | | | | Reviewed by: ru MFC after: 3 days
* Don't complain when we receive smtp, pop, nntp, www, finger, and ircbrooks2005-06-302-0/+13
| | | | | | | server options. Reported by: Max Boyarov <max_b at tut dot by> Approved by: re (dhclient blanket)
* People like to do RFC violating things with the domain-name option andbrooks2005-06-301-1/+1
| | | | | | | | | | | | include a space seperated list of domains instead of the domain of the host. This is supported on too many platforms to break for now so, remove validation of this option for the moment. The correct solution longer term is to implement RFC 3397 support and then treat domain-name options containing space seperated lists of domains as domain-search options for backwards compatability. Approved by: re (dhclient blanket)
* Install the dhcp-options.5 manpage.ru2005-06-251-1/+2
| | | | | Timeout from: brooks Approved by: re (blanket manpages)
* Line up the markup.ru2005-06-225-137/+200
| | | | Approved by: re (blanket)
* Avoid a null pointer dereference by not expiring our lease if we don'tbrooks2005-06-131-6/+9
| | | | | | | | have an active one. Submitted by: sam Reported by: James Snow <snow at teardrop dot org> Approved by: re (dhclient blanket)
* Add support for /etc/dhclient-enter-hooks to match /etc/dhclient-exit-hooks.brooks2005-06-101-0/+11
|
* Add support for /etc/dhclient-exit-hooks file.brooks2005-06-081-3/+13
| | | | Tested by: Max Boyarov <max_b at tut dot by>
* Fix build on 64-bit platforms where time_t is 64 bit. Since wherebrooks2005-06-071-4/+5
| | | | | | | | talking about time related to leases, it should be OK to cast these to (int)s rather than using intmax_t. Submitted by: ru Pointy hat: brooks
* - Remove OpenBSD'ism (bsd.own.mk).ru2005-06-071-4/+0
| | | | - Remove redundant and harmful -Wall from CFLAGS.
* Use SCRIPTS to install dhclient-script instead of rolling our own.brooks2005-06-071-4/+1
|
* FreeBSDize the dhclient-script.brooks2005-06-071-21/+54
| | | | Submitted by: sam
* Define _PATH_VAREMPTY.brooks2005-06-071-1/+39
| | | | | | | | | Add a -b option to background immediatly. Add support for 802.11 routing messages to "instantly" renegotiate at lease when we associate with a new network. Submitted by: sam
* NULL is not a valid time_t.brooks2005-06-071-12/+13
| | | | Submitted by: sam
* We don't support BPF write filters at this time.brooks2005-06-071-0/+3
| | | | Submitted by: sam
* Take the OpenBSD version of the Makefile to resolve conflicts as the oldbrooks2005-06-071-59/+48
| | | | one is irrelevent. Add $FreeBSD.
* This commit was generated by cvs2svn to compensate for changes in r147072,brooks2005-06-0728-0/+10396
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Import the OpenBSD dhclient as shipped with OpenBSD-3.7 (the tagbrooks2005-06-0729-20/+10434
| | | | | | | | OPENBSD_3_7).
* | Remove the bits to build the isc-dhclient.brooks2005-06-079-694/+0
| |
* | Let bsd.prog.mk set SRCS and MAN to their default values.ru2005-01-281-3/+0
| |
* | Start the dreaded NOFOO -> NO_FOO conversion.ru2004-12-212-2/+2
| | | | | | | | OK'ed by: core
* | For variables that are only checked with defined(), don't provideru2004-10-245-7/+7
| | | | | | | | any fake value.
* | style.Makefile(5):johan2004-02-231-1/+1
| | | | | | | | Use WARNS?= instead of WARNS=.
* | Update maintainer line. mbr has been maintainer for at least the lastmurray2003-11-301-1/+1
| | | | | | | | | | | | 6 months. Approved by: re (murray)
* | Turn the annoying and long error message off. It was sombr2003-08-091-1/+1
| | | | | | | | | | | | long that it was even hard to find the real error cause. Requested by: rwatson
* | Enable dhclient to poll the interface state and send onlymbr2003-07-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | requests if the interface has an active link. This is a great benefit if you often change networks with your laptop and you do not like to kill/restart dhclient all the time. Changes are automatically detected and the link is refreshed. The change allows us to start dhclient in background mode Enable dhclient to poll the interface state and send only requests if the interface has an active link. This is a great benefit if you often change networks with your laptop and you do not like to kill/restart dhclient all the time. Changes are automatically detected and the link is refreshed. The change allows us to start dhclient in background mode while the network cable is not plugged in. To control the polling interval, the option -i has been introduced. It takes seconds as parameter, the minimum is one second, the default is five seconds. Polling is done in seconds, not microseconds, because dhclient does internally work with timeouts in seconds. This change will be part of the next major ISC-dhcpd release. Tested by: bms, imp, and many many others. Reviewed by: murray, eivind, dhclient folks
* | Tweak a couple of utilities so they compile cleanly for /rescue. Mostlygordon2003-06-292-2/+8
| | | | | | | | | | | | path fixes. Submitted by: Tim Kientzle <kientzle@acm.org>
* | Hook omshell(1) up to the build.mdodd2003-03-254-1/+40
| |
* | Building crunched things by hand (regenerating boot floppies for example)mdodd2003-03-251-0/+2
| | | | | | | | | | without a full make release cycle fails as the correct include path isn't setup.
* | Removed now unused INTERNALSTATICLIB.ru2002-05-134-8/+0
| | | | | | | | | | INTERNALLIB now implies NOPIC and NOPROFILE. Removed gratuitous NOMAN.
* | Do not use perl where sed is more than adequate.obrien2002-04-131-1/+4
| |
* | Fix "make release.4" breakage.matusita2002-02-282-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | src/contrib/isc-dhcp/includes/minires/resolv.h has a 'extern' definition but it makes an error when linking crunched binary just like this: dhclient.lo: In function `MRres_nquery': dhclient.lo(.text+0x2dcce): undefined reference to `__h_errno_set' dhclient.lo(.text+0x2dd5b): undefined reference to `__h_errno_set' dhclient.lo: In function `MRres_nquerydomain': dhclient.lo(.text+0x2de53): undefined reference to `__h_errno_set' The author understands this will be a problem (see comments in resolv.h). Murray said that the author will fix this, but as a temporary solution, modifying the source code and not to use __h_errno_set. BTW, I'm sorry that previous commitlog in src/sbin/dhclient/Makefile should read "Found by:" instead of "Confirmed by"; I just found that rev 1.15 has a typo so fixed. Tested on: ushi.jp.FreeBSD.org with today's 5-current source code. (belive me, "make release.4" works fine now)
* | For unbraking "make release": s/client/common/gmatusita2002-02-281-7/+7
| | | | | | | | | | | | (these files are sitting in src/contrib/isc-dhcp/common, not .../client.) Confirmed by: 5.0-CURRENT-20020228-JPSNAP at snapshots.jp.FreeBSD.org
* | Add some ifdef(RELEASE_CRUNCH) goo to explicitly list the requisitemurray2002-02-261-0/+48
| | | | | | | | | | object files for crunchgen. Without this patch, release.4 will fail to build the crunched binaries for the release floppies.
* | Neutralize bits of ns_parse.c with bad juju.obrien2002-02-201-1/+6
| |
* | Style cleanup.obrien2002-02-196-33/+24
| | | | | | | | Approved by: Murray
* | Makefile glue for DHCP v3 import.murray2002-02-197-20/+151
| |
* | If the dhcpd server doesn't provide a domain name or dns servers thenalfred2002-02-011-4/+7
| | | | | | | | | | | | | | | | | | | | don't clobber /etc/resolv.conf Add $FreeBSD. Submitted by: an j. peterson" <rbw@myplace.org> Verified fix in: dhcp-3.0.1rc6 PR: misc/34455
* | Default to WARNS=2.obrien2001-12-041-0/+1
| | | | | | | | | | | | Binary builds that cannot handle this must explicitly set WARNS=0. Reviewed by: mike
* | beforeinstall -> SCRIPTS.ru2001-04-071-5/+3
| |
OpenPOWER on IntegriCloud