summaryrefslogtreecommitdiffstats
path: root/contrib/isc-dhcp
Commit message (Collapse)AuthorAgeFilesLines
* Remove isc-dhcp files from HEAD now that we're using the OpenBSDbrooks2005-06-29149-71890/+0
| | | | | | | dhclient. Reminded by: ru Approved by: re (blanket dhclient)
* Make 'client DNS forward update' working again which got broken in rev.mbr2004-08-161-1/+3
| | | | | | | | RC9 of dhclient 3.0.1. This fix will be part of dhclient 3.0.2. It is also part of the official redhat package. Submitted by: Jason Vas Dias <jvdias@redhat.com> Discussed on: dhcp-hackers@isc.org
* Document local changes r1.41 and r1.42 of dhclient.cmbr2004-08-161-0/+2
|
* Recommit removed Rev. 1.40. This fix does solve a FPE with negative leasembr2004-08-161-8/+23
| | | | | | | | | | | time as described in the PR below. It seems that this patch should have been part of the vendor tree but got accidently missed in the 3.0.1 final version. It will definitly be part of 3.0.2 but until then it's a long way to go. Submitted by: ISC (Vendor) PR: bin/54517
* It could happen that the renew/rebind times in the leasefile werembr2004-08-161-2/+13
| | | | | | | | | | | | | expired but the expire time itself was still valid and in the future. If this happened we ended up using the state S_RENEW with an INADDR_BROADCAST address set in the request and dhclient never got any answer back. The only workaround was to delete the lease file. Fix this case with a check for the S_RENEW and a fallback to the S_INIT state. PR: bin/69361 Submitted by: Andrew Gallatin <gallatin@cs.duke.edu>
* Sync a reverted part of dhclient.c with the vendor source. It seemsmbr2004-08-161-23/+8
| | | | that a buxfix from rc14 got backed out again. We do the same.
* Resolve conflicts from dhclient 3.0.1 final import.mbr2004-08-152-6/+4
| | | | No functional changes in this import.
* This commit was generated by cvs2svn to compensate for changes in r133783,mbr2004-08-154-11/+30
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Import ISC DHCP 3.0.1 client.mbr2004-08-157-15/+33
| |
* | Fix a number of incorrect assumptions regarding the size of time_t.des2004-07-065-7/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The code has its own TIME type, which is actually defined to time_t, but it still used u_int32_t in some places. In addition, dhclient not only had two separate global cur_time variables, one of which was defined as u_int32_t and the other as TIME, but cur_time was sometimes shadowed by local variables, leading to widespread confusion as to which of these variable was being referenced. There is a lesson in here somewhere: a decent compiler with warnings enabled should have caught all of this long before it became a problem. This patch has been submitted to the vendor, but it will likely be some time before they release a version that includes it. Approved by: mbr
* | Document the 64bit time_t fix.mbr2004-06-261-0/+2
| |
* | Use int32_t to convert the leasetime to fix support for platformsmbr2004-06-261-3/+5
| | | | | | | | | | | | where time_t is 64-bit. Submitted by: des
* | Our dhclient-script fails to update /etc/resolv.conf if no newmbr2004-06-261-1/+1
| | | | | | | | | | | | | | | | | | | | domain name is given and /etc/resolv.conf doesn't exist. Fix this by using -f (force). Assigned to ISC as ISC-Bugs #11570 PR: bin/67613 Submitted by: Nikos Ntarmos <ntarmos@ceid.upatras.gr>
* | Resolve conflicts.mbr2004-06-2616-583/+271
| |
* | This commit was generated by cvs2svn to compensate for changes in r131136,mbr2004-06-26119-2542/+2805
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Import ISC DHCP 3.0.1 RC14 client.mbr2004-06-26131-2883/+3075
| |
* | Dhclient dumps core on suspend/resume cycles. If the client isn't activembr2004-01-251-4/+9
| | | | | | | | | | | | | | | | | | then we need to go to the reboot state or in state_bound it will core on the de-reference of client -> active -> options since client -> active = NULL. While we are here, fix the indentation. Submitted by: Doug Ambrisko <ambrisko@ambrisko.com>
* | If we have a working link again after connectivity loss, or if we needmbr2004-01-192-4/+28
| | | | | | | | | | | | | | | | | | | | to renew a lease, contact the dhcp-server directly instead of using INADDR_BROADCAST all the time. This should fix some brain-dead dhcp server implementations which give you all the time a new IP if the lease has not yet expired. Instead of using ICMP to check if the server is alive, we just check the return value of sendto() and additionally have a timeout there.
* | Remove files which have been removed in the 3.01RC12 releasembr2004-01-196-931/+0
| | | | | | | | of isc-dhcpd.
* | The previous fix (rev 1.25) is only needed in the second place.mbr2003-09-151-3/+1
| |
* | Only kill the default route in the release mode if the interfacembr2003-09-151-2/+15
| | | | | | | | | | | | | | | | where the default route is bound to is the same device. Keep it working for the single user or sysinstall mode, where we just do what we did before. Suggested by: dougb
* | Restore behaviour from rev. 1.9. Only log when there is a real changembr2003-09-091-5/+0
| | | | | | | | | | | | to the configuration state. Noticed by: obrien
* | Import ISC DHCP 3.0.1 RC12 client.mbr2003-09-021-5/+7
| | | | | | | | | | - s/include/includes - remove already merged files
* | Resolve conflicts.mbr2003-09-025-686/+699
| |
* | Resolve conflicts.mbr2003-09-021-1/+1
| | | | | | | | * rev. 1.22
* | Resolve conflicts:mbr2003-09-021-13/+35
| | | | | | | | * rev. 1.33/1.25
* | This commit was generated by cvs2svn to compensate for changes in r119669,mbr2003-09-029-75/+233
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Import ISC DHCP 3.0.1 RC12 client.mbr2003-09-0216-787/+993
| |
* | Sync with ISC repo. Use SIGTERM instead of SIGKILL, make oldpid a long andmbr2003-09-021-9/+12
| | | | | | | | cast it into a pid_t.
* | Change name of state_link() to state_polling() to make itmbr2003-08-103-49/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | more clear what it does. Trim interface_active() to just do what it should do. Check if we got link or not and if the NIC supports it. No special treatment for mediachecks here anymore. Simplify the code a lot, and remove doublicated parts. Fix two minor spelling errors. Add one missing #ifdef ENABLE_POLLING_MODE Reviewed by: mdodd
* | Fix devices which do not support ifm_status. Always returnmbr2003-08-091-8/+13
| | | | | | | | | | | | | | TRUE for them. Reported by: mdodd Tested by: Craig Rodrigues <rodrigc@crodrigues.org>
* | Add all interface polling patches.mbr2003-08-071-2/+8
| |
* | Do not poll during discover. Add a polling tunable to the interfacembr2003-08-072-4/+26
| | | | | | | | | | | | struct to be able to turn polling on/off. Tested by: Larry Rosenman <ler@lerctr.org>
* | - Fix the polling code to work with media settings in dhclient.conf.mbr2003-08-072-38/+189
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Rename linkstatus to linkstate which is more correct. - Sort any leases each time we loose and regain link. With the first version we spammed the dhclient.leases file. - When there was no link on a interface, polling has been done twice. This has been fixed with a bigger sleep interval. - interface_active() now returns only a assumed state of the link. If we are using media settings, we cannot be sure that the link actually works. That means we assume that the link is working and continue to send requests as usual on the interface and loop over all possible media options. Polling is still done. If your interface gets suddenly link, dhclient will send a dhcp discover request. After all media settings have been tried a few times, dhclient will sleep. If one does change networks very often, it can help to set the "retry timeout" to a low value like 100 seconds. The default is over six minutes. Tested by: Larry Rosenman <ler@lerctr.org>, imp
* | Change ieee802 to ieee80211.mbr2003-08-062-53/+53
| | | | | | | | | | | | Add bogospaces to match the ISC style. Suggested by: eivind
* | Fix dhclient infinite loop on ro /etc/resolv.confmbr2003-07-281-5/+11
| | | | | | | | | | | | | | Submitted by: C J Michaels <cjm2@earthling.net> Reviewed by: David W. Hankins PR: 38778 ISC-Bug: 5754
* | Don't wait forever if there is no link, go to backgroundmbr2003-07-281-0/+2
| | | | | | | | after 2 x polling time.
* | Define $FreeBSD$ at the right place.mbr2003-07-282-5/+3
| |
* | Enable dhclient to poll the interface state and send onlymbr2003-07-285-6/+240
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Add notice about the local change in r1.25mbr2003-07-261-0/+1
| |
* | Tweak a couple of utilities so they compile cleanly for /rescue. Mostlygordon2003-06-291-0/+12
| | | | | | | | | | | | path fixes. Submitted by: Tim Kientzle <kientzle@acm.org>
* | Centralize _PATH_* definitions.obrien2003-05-051-1/+1
| | | | | | | | Submitted by: Tim Kientzle <kientzle@acm.org> (embellished by me)
* | We don't have cat(1) and kill(1) on the miniroot disks.mbr2003-03-231-9/+15
| | | | | | | | | | | | | | | | This fix will be committed to the ISC repo later, but for now take this file out of the vendor tree. Reviewed by: phk Approved by: murray
* | Add a -v(erbose) flag to undo our -q(uiet) default.obrien2003-03-182-0/+10
| |
* | We now include the dhcpctl subdirectory.murray2003-01-161-1/+0
| |
* | Update for the isc_dhcp_3_0_1_rc11 import.obrien2003-01-161-6/+6
| |
* | Use the stock version of this file -- all our needs have been taken care of.obrien2003-01-161-3/+2
| |
* | Make the "SEE ALSO" suitable for FreeBSD.obrien2003-01-161-2/+2
| |
* | Make isc_dhcp_3_0_1_rc11's "SEE ALSO" suitable for FreeBSD.obrien2003-01-161-2/+2
| |
* | This commit was generated by cvs2svn to compensate for changes in r109365,murray2003-01-169-0/+3116
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
OpenPOWER on IntegriCloud