| Commit message (Collapse) | Author | Age |
| | |
|
| |
|
|
|
|
|
|
| |
As such, we can wait for a 3RDPARTY to configure the interface, such as PPP.
We can then take the destination addess and automatically give it a default
route or any other DHCP option such as DNS servers.
This addresses #159.
|
| |
|
|
|
|
| |
This involved a rejig of the socket code so we can detect
if we removed the route or not.
|
| |
|
|
| |
routing table also. Partial fix for #159.
|
| | |
|
| | |
|
| |
|
|
|
| |
This enables us to query states via the control socket.
|
| |
|
|
|
|
|
|
| |
Split client.c into smaller files and functions and
recode around the event loop.
Add multiple interface support using the new event loop.
Document changes and outstanding bugs.
|
| |
|
|
| |
exec_script. This allows us to use vfork and stop gcc complaining about exec stamping on the env variable.
|
| | |
|
| |
|
|
| |
dhclient. This allows similar scripts to be used.
|
| |
|
|
| |
to be so complex.
|
| |
|
|
|
|
|
|
|
|
| |
The code has been drastically re-arranged.
Instead of populating a custom structure while parsing dhcp messages, we now pluck what we need right out of the message itself. We have custom functions and a lookup table to make this really easy.
This makes us more like dhclient and udhcpc, and will enable us to easily add (and remove!) more dhcp options without having to actually change the code (much).
We now store the real dhcp message we got in /var/db/dhcpcd-$iface.lease, the mtime of the file being used as when we got the lease. This file is read in when re-using an old lease instead of parsing the .info file.
The benefit of all of this means that we're actually ~15k smaller when compiled with the same features.
This has been tested for quite some time, and I'm pretty sure most bugs with the 3.2 branch have been fixed whilst making this. Right now, we are 99% command line compatible with the 3.2 branch.
|
| | |
|
| |
|
|
| |
of dhclient.
|
| | |
|
| |
|
|
| |
dhcpcd-2 code base now.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
| |
Added -E option, which reads the last info file and uses the information there
if we timeout and the lease is still valid, thanks to Roberto Angelino.
|
| | |
|
| |
|
|
|
|
| |
define #INFO_COMPAT if you wish your .info file to add support for some
old 1.x and 2.x structure.
|
| | |
|
| |
|
|
|
|
|
|
| |
which makes the binary a few k smaller.
Support OpenNTP as well as NTP.
Re-work the state engine a little, so we renew and rebind correctly.
Subsequent debug options stop dhcpcd from daemonising.
|
| |
|
|
|
|
|
|
|
| |
intervals like we do otherwise.
We now return a non zero exit code on SIGTERM and SIGINT if we have not
forked into the background.
When NIS and/or NTP servers are updated, we restart the service for them
if we can.
|
| | |
|
| |
|