summaryrefslogtreecommitdiffstats
path: root/duid.c
Commit message (Collapse)AuthorAge
* Add (c) to CopyrightRoy Marples2009-05-01
|
* get_line now uses a single buffer, strips leading space and skips comments. ↵Roy Marples2008-11-05
| | | | This reduces malloc usage slightly and gives a cleaner API at the expense of a slight bss increase.
* Add an event loop.Roy Marples2008-09-02
| | | | | | | | 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.
* Normally I hate massive code drops, but heh.Roy Marples2008-04-11
| | | | | | | | | | 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.
* Rework our error handling code a little to save ~5k on x86_64Roy Marples2008-03-29
|
* Change code style to match the BSDs in the hope the might adpot it instead ↵Roy Marples2008-03-20
| | | | of dhclient.
* Rename getline to get_line so we don't conflict with crappy GNU headers that ↵Roy Marples2008-02-06
| | | | wrongly expose getline when _GNU_SOURCE isn't set. Bug #17.
* Move clientid generation to client.c and put it on the interface object ↵Roy Marples2008-01-31
| | | | inplace of duid. Always save the ClientID as a hex string. This reduces our binary size.
* Store and validate the duid using our generic hwaddr_ callsRoy Marples2008-01-25
|
* Quiet some lint warnings.Roy Marples2008-01-21
|
* Re format for standard tabs.Roy Marples2008-01-16
|
* Belatedly into 2008 :)Roy Marples2008-01-08
|
* Re-license as 2-clause BSD as I've re-written everything from the old ↵Roy Marples2007-11-15
| | | | dhcpcd-2 code base now.
* Reword the headers to just say we use the GPLv2.Roy Marples2007-11-07
|
* Update my e-mail address as I have retired from Gentoo.Roy Marples2007-11-06
|
* Don't malloc pointer size when we mean data sizeRoy Marples2007-10-11
|
* Many thanks to Michael Durrant for testing the below changes.Roy Marples2007-09-04
| | | | | | | | | Compile and work on OSX/Darwin. If we have no fork then we re-exec ourselves with --daemonised. Improved the build system so we automatically detect if we need librt or libresolv and if fork() works or not. Move back to using librt for clock_gettime on Linux systems.
* Remove getifaddrs code and instead just use ioctls.Roy Marples2007-07-25
|
* Allow -I to have an optional argument, when missing don't use DUID'sRoy Marples2007-05-11
|
* Add support for RFC 4361Roy Marples2007-05-10