| Commit message (Collapse) | Author | Age | |
|---|---|---|---|
| * | Add (c) to Copyright | Roy Marples | 2009-05-01 |
| | | |||
| * | More style updates. | Roy Marples | 2009-02-12 |
| | | |||
| * | Work out __restrict better. | Roy Marples | 2008-11-24 |
| | | |||
| * | Fix some LINT errors. | Roy Marples | 2008-11-10 |
| | | |||
| * | get_line now uses a single buffer, strips leading space and skips comments. ↵ | Roy Marples | 2008-11-05 |
| | | | | | This reduces malloc usage slightly and gives a cleaner API at the expense of a slight bss increase. | ||
| * | Save a few bytes by moving close_fds to bind where it's really used. | Roy Marples | 2008-11-05 |
| | | |||
| * | Pack the dhcp structure. | Roy Marples | 2008-09-05 |
| | | |||
| * | Mark functions as _noreturn. | Roy Marples | 2008-09-05 |
| | | |||
| * | Add an event loop. | Roy Marples | 2008-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. | ||
| * | clock_monotonic now is 0 or 1 depending on if the clock is monotonic. Also, ↵ | Roy Marples | 2008-07-31 |
| | | | | | systems that have headers for monotonic but do not claim support now warn about this. You can build dhcpcd to force a monotonic clock. | ||
| * | Normalise tv_usecs. Also, send the fd ready back to the main loop so we ↵ | Roy Marples | 2008-07-24 |
| | | | | | don't have to re-poll each fd. Saves bytes and is more efficient. | ||
| * | get_time -> clock_monotonic to be more descriptive. | Roy Marples | 2008-07-24 |
| | | |||
| * | Better to say which OS's have closefrom. | Roy Marples | 2008-07-21 |
| | | |||
| * | Fix compile on OSX. | Roy Marples | 2008-07-21 |
| | | |||
| * | Remove the signal array stack as our pipe handling should be secure enough ↵ | Roy Marples | 2008-06-10 |
| | | | | | now. Also, move the normalize close_on_exec and setting non block. | ||
| * | Add a function to test if a fd has data to be read. | Roy Marples | 2008-06-07 |
| | | |||
| * | Create a real arc4linux function so we don't have to visible seed random in ↵ | Roy Marples | 2008-05-19 |
| | | | | | dhcpcd main. | ||
| * | Use arc4random as everything apart from glibc seems to have it. | Roy Marples | 2008-05-15 |
| | | |||
| * | Use paths.h when available and ensure that we can disable our glue easily. | Roy Marples | 2008-05-15 |
| | | |||
| * | Check correct lengths and use closefrom where available. | Roy Marples | 2008-05-15 |
| | | |||
| * | Normally I hate massive code drops, but heh. | Roy Marples | 2008-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. | ||
| * | Change code style to match the BSDs in the hope the might adpot it instead ↵ | Roy Marples | 2008-03-20 |
| | | | | | of dhclient. | ||
| * | Fix building on GNU/kFreeBSD, Debian #467005 | Roy Marples | 2008-02-22 |
| | | |||
| * | PCC compiler fixes. | Roy Marples | 2008-02-22 |
| | | |||
| * | Support the PCC compiler. | Roy Marples | 2008-02-20 |
| | | |||
| * | We should only have one bit of code to mark sockets close_on_exec. | Roy Marples | 2008-02-09 |
| | | |||
| * | Rename getline to get_line so we don't conflict with crappy GNU headers that ↵ | Roy Marples | 2008-02-06 |
| | | | | | wrongly expose getline when _GNU_SOURCE isn't set. Bug #17. | ||
| * | Introduce xzalloc, which zeros memory as well as allocates it. This makes us ↵ | Roy Marples | 2008-01-28 |
| | | | | | smaller. | ||
| * | Fix compile on Linux where. | Roy Marples | 2008-01-21 |
| | | |||
| * | uptime should return time_t | Roy Marples | 2008-01-16 |
| | | |||
| * | common.h now defines a simple define to create the function in common.c. ↵ | Roy Marples | 2008-01-09 |
| | | | | | NetBSD needs srandomdev also. | ||
| * | Belatedly into 2008 :) | Roy Marples | 2008-01-08 |
| | | |||
| * | Stop using static inflexable buffers when cleaning metas and reading files. | Roy Marples | 2008-01-07 |
| | | |||
| * | Re-license as 2-clause BSD as I've re-written everything from the old ↵ | Roy Marples | 2007-11-15 |
| | | | | | dhcpcd-2 code base now. | ||
| * | Re-add sys/time.h | Roy Marples | 2007-11-08 |
| | | |||
| * | timeval defines seconds as long, so we should use long over time_t | Roy Marples | 2007-11-07 |
| | | |||
| * | Reword the headers to just say we use the GPLv2. | Roy Marples | 2007-11-07 |
| | | |||
| * | Update my e-mail address as I have retired from Gentoo. | Roy Marples | 2007-11-06 |
| | | |||
| * | Write the pidfile before we fork so we can easily be stopped by other processes. | Roy Marples | 2007-10-20 |
| | | |||
| * | Many thanks to Michael Durrant for testing the below changes. | Roy Marples | 2007-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. | ||
| * | Suck it hard and use gettimeofday for Linux. Lets just hope that the clock ↵ | Roy Marples | 2007-08-21 |
| | | | | | works under Linux during ARP floods. | ||
| * | Rework the arp code again so that we don't link to librt on Linux. | Roy Marples | 2007-08-20 |
| | | |||
| * | Ensure ARP checking times out when there is a flood. | Roy Marples | 2007-08-09 |
| | | |||
| * | We now do ARP checking by default as recommended by RFC 2131. | Roy Marples | 2007-07-18 |
| | | | | | | Add RFC 3927 (aka IPV4LL aka APIPA) support by default. | ||
| * | Send a FQDN hostname if it contains dots, strip the domain from a looked up ↵ | Roy Marples | 2007-04-26 |
| | | | | | hostname if it matches our domain or search and sanitize our fd's a little better. | ||
| * | string.h pulls in features.h | Roy Marples | 2007-04-05 |
| | | |||
| * | Use libc strlcpy for uclibc and dietlibc | Roy Marples | 2007-04-05 |
| | | |||
| * | Use strlcpy if available, if not define our own. | Roy Marples | 2007-04-05 |
| | | |||
| * | Add safe_strncpy function to ensure everything is NULL terminated | Roy Marples | 2007-04-05 |
| | | |||
| * | For infinite timeout, we now resent the last request at TIMEOUT_MINI | Roy Marples | 2007-01-16 |
| | | | | | | | | | | 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. | ||
