Commit Graph

43 Commits

Author SHA1 Message Date
Roy Marples
b953fded8b Remove ENABLE_DUID and introduce MINIMAL, which removes all non essential userland options, knocking around 6k off the binary size. 2008-07-04 13:02:33 +00:00
Roy Marples
261eb2d41f Remove previous toggles for classid, clientid, userclass and vendor - they call *could* be required for DHCP. Add a string parser and process all user strings through it. 2008-07-02 17:05:41 +00:00
Roy Marples
d65fd32df0 Allow ClassID to be configured. 2008-06-30 16:35:41 +00:00
Roy Marples
413724d05e Allow clientid to be configured. 2008-06-30 16:27:15 +00:00
Roy Marples
79f58b5d88 Allow userclass to be compiled out. 2008-06-30 16:15:29 +00:00
Roy Marples
757520c586 Add support for vendor encapsulated options. Also, MINIAL define now disables all configurable options. 2008-06-30 16:02:56 +00:00
Roy Marples
8094302cf1 beta7 2008-06-20 06:56:31 +00:00
Roy Marples
fd34289e21 Bump to beta6 for internal testing and move UNCONST to common.h 2008-06-07 00:15:14 +00:00
Roy Marples
26b48f9559 DISABLE_FEATURE defines now don't enable automatic ENABLE_FEATURE defines. 2008-05-29 08:26:57 +00:00
Roy Marples
98335969de dhcpcd-4.0.0-beta5 2008-05-24 17:47:44 +00:00
Roy Marples
ee4e620abb Move dhcpcd.sh to dhcpcd-run-hooks and remove .sh suffixes 2008-05-24 17:15:14 +00:00
Roy Marples
9f1fea6b03 Just use /etc. 2008-05-22 21:41:40 +00:00
Roy Marples
0aeb350cfa Install dhcpcd.sh and hooks into /libexec by default. dhcpcd.conf, dhcpcd.duid and dhcpcd.hook are now in /etc. 2008-05-20 12:23:29 +00:00
Roy Marples
8a5b130746 Style 2008-05-19 14:47:37 +00:00
Roy Marples
9934ead60e Trap some config.h defines if they're in CFLAGS. 2008-05-19 14:45:05 +00:00
Roy Marples
7b15d336d9 Move VERSION from Makefile to config.h so that other Makefiles can be used instead of our own. 2008-05-19 13:36:06 +00:00
Roy Marples
343c1ae641 Prettify code a little. 2008-05-14 12:19:05 +00:00
Roy Marples
d7698d1c90 Clarify comment about DUID usage. 2008-05-07 09:10:19 +00:00
Roy Marples
833f739efa Don't explicity create an IPV4LL route if we have a routeable address - the host system should make this choice. 2008-05-07 09:07:28 +00:00
Roy Marples
1410db936a Fix compile with commandline compat. 2008-04-25 11:01:02 +00:00
Roy Marples
25d71b6065 Allow a config file to be specified on the command line. 2008-04-24 13:18:59 +00:00
Roy Marples
ba9dfb7aae dhcpcd can now read a basic config file! Add a default dhcpcd.conf and matching man page. Add dhcpcd.sh man page. dhcpcd can now report variables it can send to dhcpcd.sh as well. 2008-04-18 23:12:44 +00:00
Roy Marples
7eb93bd9e4 Move the duid file to /etc/dhcpcd as it's really a config file. Also, rename hook dirs to dhcpcd- so they could be installed into /etc and not just /etc/dhcpcd. 2008-04-17 21:18:20 +00:00
Roy Marples
dcab79de5e Remove the .info file and now set environment vars in the same vein as dhclient. This allows similar scripts to be used. 2008-04-16 09:51:20 +00:00
Roy Marples
c46c624e7f Change a few build/install knobs. 2008-04-14 13:09:44 +00:00
Roy Marples
5a98646f72 Move configuration file setup to dhcpcd.sh so that it's possible for the user to change more easily. We now have enter/exit hooks similar to dhclient to make things even easier for the user. At this time, we are still 100% commandline compatible. However, we have lost the feature to lookup hostnames. 2008-04-12 23:00:23 +00:00
Roy Marples
1a60d14fa2 Normally I hate massive code drops, but heh.
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.
2008-04-11 16:14:55 +00:00
Roy Marples
a9819bfb1f Split interface and socket out into OS bpf, if-bsd and if-linux. 2008-03-24 01:29:33 +00:00
Roy Marples
dc9be8a47f Quiet some lint warnings. 2008-01-21 21:19:53 +00:00
Roy Marples
fc367a018f Add correct license 2008-01-16 15:59:14 +00:00
Roy Marples
1fe2d190cf We now work with C90 compilers, so no need to enforce C99. 2008-01-16 14:32:35 +00:00
Roy Marples
782830eb5d Belatedly into 2008 :) 2008-01-08 09:51:23 +00:00
Roy Marples
9868f79cb4 Detect Slackware RC. Also rename ORC to OPENRC and BRC to BSDRC. 2007-11-15 23:58:16 +00:00
Roy Marples
d9953ffbac Allow INFODIR to control where we keep our info files.
Respect MANPREFIX.
2007-11-14 12:53:21 +00:00
Roy Marples
816ad2eab1 Add knobs to work with RedHat, Slackware and generic SYSV init scripts 2007-11-09 20:48:51 +00:00
Roy Marples
2669c8a63b RC -> BRC 2007-11-09 17:02:38 +00:00
Roy Marples
a10f57d079 Work with the BSD RC system too. 2007-11-08 10:37:52 +00:00
Roy Marples
1f8f3dbdc1 Reword the headers to just say we use the GPLv2. 2007-11-07 16:26:41 +00:00
Roy Marples
cfe160119d Update my e-mail address as I have retired from Gentoo. 2007-11-06 15:03:38 +00:00
Roy Marples
3e120d46a8 Many thanks to Michael Durrant for testing the below changes.
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.
2007-09-04 12:48:40 +00:00
Roy Marples
bae37b081b Use --nodeps when restarting services 2007-07-30 12:45:31 +00:00
Roy Marples
77659ce035 We now do ARP checking by default as recommended by RFC 2131.
Add RFC 3927 (aka IPV4LL aka APIPA) support by default.
2007-07-18 11:26:59 +00:00
Roy Marples
c3d07f4c70 Add support for RFC 4361 2007-05-10 16:08:49 +00:00