]> git.ipfire.org Git - thirdparty/dhcpcd.git/log
thirdparty/dhcpcd.git
17 years agoMove the dhcp_ops structure off bss.
Roy Marples [Wed, 14 May 2008 09:21:26 +0000 (09:21 +0000)] 
Move the dhcp_ops structure off bss.

17 years agoIf we have space, ensure our packet options are correctly terminated.
Roy Marples [Wed, 14 May 2008 09:07:54 +0000 (09:07 +0000)] 
If we have space, ensure our packet options are correctly terminated.

17 years agoUse better error messages.
Roy Marples [Tue, 13 May 2008 20:25:22 +0000 (20:25 +0000)] 
Use better error messages.

17 years agoFree buffer at exit.
Roy Marples [Tue, 13 May 2008 20:24:54 +0000 (20:24 +0000)] 
Free buffer at exit.

17 years agoMove the static buffer off bss.
Roy Marples [Tue, 13 May 2008 18:39:18 +0000 (18:39 +0000)] 
Move the static buffer off bss.

17 years agoFix a segfault and lease issue for no fork users.
Roy Marples [Tue, 13 May 2008 14:37:01 +0000 (14:37 +0000)] 
Fix a segfault and lease issue for no fork users.

17 years agoInclude ctype for non fork systems.
Roy Marples [Tue, 13 May 2008 14:23:01 +0000 (14:23 +0000)] 
Include ctype for non fork systems.

17 years agodhcpcd-4.0.0-beta3
Roy Marples [Tue, 13 May 2008 14:18:15 +0000 (14:18 +0000)] 
dhcpcd-4.0.0-beta3

17 years agoMan page now states we support RFC 3396.
Roy Marples [Tue, 13 May 2008 13:34:05 +0000 (13:34 +0000)] 
Man page now states we support RFC 3396.

17 years agoSupport RFC3996, Encoding Long Options.
Roy Marples [Tue, 13 May 2008 13:32:37 +0000 (13:32 +0000)] 
Support RFC3996, Encoding Long Options.

17 years agoClean up some valgrind errors.
Roy Marples [Tue, 13 May 2008 11:47:08 +0000 (11:47 +0000)] 
Clean up some valgrind errors.

17 years agoWe shouldn't stamp on the dhcp message when checking overloads.
Roy Marples [Tue, 13 May 2008 11:24:16 +0000 (11:24 +0000)] 
We shouldn't stamp on the dhcp message when checking overloads.

17 years agoWe should make our own env instead of using setenv/unsetenv so we work better with...
Roy Marples [Tue, 13 May 2008 11:21:19 +0000 (11:21 +0000)] 
We should make our own env instead of using setenv/unsetenv so we work better with vfork systems.

17 years agoDon't encode the hostname as a FQDN by default as not all DHCP servers support this.
Roy Marples [Mon, 12 May 2008 21:03:38 +0000 (21:03 +0000)] 
Don't encode the hostname as a FQDN by default as not all DHCP servers support this.

17 years agoRemove silly #
Roy Marples [Mon, 12 May 2008 14:53:46 +0000 (14:53 +0000)] 
Remove silly #

17 years agoMake the man pages by default.
Roy Marples [Mon, 12 May 2008 14:23:29 +0000 (14:23 +0000)] 
Make the man pages by default.

17 years agonis_server -> nis_servers
Roy Marples [Sat, 10 May 2008 12:11:47 +0000 (12:11 +0000)] 
nis_server -> nis_servers

17 years agodhcpcd-4.0.0_beta2
Roy Marples [Thu, 8 May 2008 19:52:32 +0000 (19:52 +0000)] 
dhcpcd-4.0.0_beta2

17 years agoFix infinite timeouts.
Roy Marples [Thu, 8 May 2008 11:00:15 +0000 (11:00 +0000)] 
Fix infinite timeouts.

17 years agodhcpcd doesn't really care about script exist status or if it was signalled, so save...
Roy Marples [Wed, 7 May 2008 09:39:17 +0000 (09:39 +0000)] 
dhcpcd doesn't really care about script exist status or if it was signalled, so save a few more bytes.

17 years agoClarify comment about DUID usage.
Roy Marples [Wed, 7 May 2008 09:10:19 +0000 (09:10 +0000)] 
Clarify comment about DUID usage.

17 years agoDon't explicity create an IPV4LL route if we have a routeable address - the host...
Roy Marples [Wed, 7 May 2008 09:07:28 +0000 (09:07 +0000)] 
Don't explicity create an IPV4LL route if we have a routeable address - the host system should make this choice.

17 years agodhcpcd-4.0.0-beta1
Roy Marples [Tue, 6 May 2008 08:30:51 +0000 (08:30 +0000)] 
dhcpcd-4.0.0-beta1

17 years agoTart the man pages - Aq fails mostly so just use < .. >
Roy Marples [Fri, 2 May 2008 09:05:03 +0000 (09:05 +0000)] 
Tart the man pages - Aq fails mostly so just use  < .. >

17 years agoMove some opts to compat.
Roy Marples [Fri, 2 May 2008 08:49:23 +0000 (08:49 +0000)] 
Move some opts to compat.

17 years agoKeep parsing the duid file until we find a valid duid. This allows comments if the...
Roy Marples [Fri, 2 May 2008 08:25:54 +0000 (08:25 +0000)] 
Keep parsing the duid file until we find a valid duid. This allows comments if the user wants them.

17 years agoWe should only check duid file if duid enabled.
Roy Marples [Fri, 2 May 2008 08:25:21 +0000 (08:25 +0000)] 
We should only check duid file if duid enabled.

17 years agoFix default options and old IPV4LL leases.
Roy Marples [Thu, 1 May 2008 19:50:33 +0000 (19:50 +0000)] 
Fix default options and old IPV4LL leases.

17 years agoFix IPV4LL
Roy Marples [Thu, 1 May 2008 19:38:10 +0000 (19:38 +0000)] 
Fix IPV4LL

17 years agoFix commandline compat.
Roy Marples [Thu, 1 May 2008 19:30:11 +0000 (19:30 +0000)] 
Fix commandline compat.

17 years agoMove the compat options to the top and renable duid support IF the duid file exists...
Roy Marples [Thu, 1 May 2008 18:00:59 +0000 (18:00 +0000)] 
Move the compat options to the top and renable duid support IF the duid file exists and we're in compat mode.

17 years agoDon't use a DUID by default even though support is compiled in, #70. Also, fix some...
Roy Marples [Thu, 1 May 2008 14:47:52 +0000 (14:47 +0000)] 
Don't use a DUID by default even though support is compiled in, #70. Also, fix some man page entries a little.

17 years agoRework the ENABLE_DUID #ifdef so that redoing indents in vim works.
Roy Marples [Sat, 26 Apr 2008 07:51:32 +0000 (07:51 +0000)] 
Rework the ENABLE_DUID #ifdef so that redoing indents in vim works.

17 years agoRepair whitespace damage.
Roy Marples [Sat, 26 Apr 2008 07:39:23 +0000 (07:39 +0000)] 
Repair whitespace damage.

17 years agoAllow quotes to be used.
Roy Marples [Sat, 26 Apr 2008 07:12:46 +0000 (07:12 +0000)] 
Allow quotes to be used.

17 years agoexists -> exit
Roy Marples [Fri, 25 Apr 2008 19:06:11 +0000 (19:06 +0000)] 
exists -> exit

17 years agoInstall the right man page.
Roy Marples [Fri, 25 Apr 2008 19:00:31 +0000 (19:00 +0000)] 
Install the right man page.

17 years agoFix compile with commandline compat.
Roy Marples [Fri, 25 Apr 2008 11:01:02 +0000 (11:01 +0000)] 
Fix compile with commandline compat.

17 years agoFix compat for network_number.
Roy Marples [Thu, 24 Apr 2008 21:47:22 +0000 (21:47 +0000)] 
Fix compat for network_number.

17 years agoAdd server_name and filename env vars. Also, fix network_number to match dhclient.
Roy Marples [Thu, 24 Apr 2008 15:06:06 +0000 (15:06 +0000)] 
Add server_name and filename env vars. Also, fix network_number to match dhclient.

17 years agoFix line length
Roy Marples [Thu, 24 Apr 2008 14:50:04 +0000 (14:50 +0000)] 
Fix line length

17 years agoMan page corrections.
Roy Marples [Thu, 24 Apr 2008 14:14:20 +0000 (14:14 +0000)] 
Man page corrections.

17 years agointerface foo in dhcpcd.conf now only applies subsequent options for interface foo.
Roy Marples [Thu, 24 Apr 2008 13:53:03 +0000 (13:53 +0000)] 
interface foo in dhcpcd.conf now only applies subsequent options for interface foo.

17 years agoAllow a config file to be specified on the command line.
Roy Marples [Thu, 24 Apr 2008 13:18:59 +0000 (13:18 +0000)] 
Allow a config file to be specified on the command line.

17 years agoAllow values to be escaped using \
Roy Marples [Thu, 24 Apr 2008 12:35:03 +0000 (12:35 +0000)] 
Allow values to be escaped using \

18 years agontp should update if no existing config.
Roy Marples [Tue, 22 Apr 2008 10:49:59 +0000 (10:49 +0000)] 
ntp should update if no existing config.

18 years agoMove looking up the hostname in DNS to a sample hook file as it's not something we...
Roy Marples [Tue, 22 Apr 2008 10:41:57 +0000 (10:41 +0000)] 
Move looking up the hostname in DNS to a sample hook file as it's not something we should really do by default. Rename our sample hooks to end with .sh so they get nice script highlights.

18 years agoMerge branch 'master' of git.marples.name:/var/git/dhcpcd
Roy Marples [Tue, 22 Apr 2008 08:13:40 +0000 (08:13 +0000)] 
Merge branch 'master' of git.marples.name:/var/git/dhcpcd

18 years agoFix host and dig erroring to stdout.
Roy Marples [Mon, 21 Apr 2008 23:11:07 +0000 (23:11 +0000)] 
Fix host and dig erroring to stdout.

18 years agoFix daemonising when on IPV4LL.
Roy Marples [Mon, 21 Apr 2008 23:08:43 +0000 (23:08 +0000)] 
Fix daemonising when on IPV4LL.

18 years agoMerge branch 'master' of git.marples.name:/var/git/dhcpcd
Roy Marples [Mon, 21 Apr 2008 10:43:08 +0000 (10:43 +0000)] 
Merge branch 'master' of git.marples.name:/var/git/dhcpcd

18 years agoTrim trailing whitespace.
Roy Marples [Mon, 21 Apr 2008 09:53:18 +0000 (09:53 +0000)] 
Trim trailing whitespace.

18 years agoWe should check for required arguments and strip leading whitespace.
Roy Marples [Mon, 21 Apr 2008 09:40:14 +0000 (09:40 +0000)] 
We should check for required arguments and strip leading whitespace.

18 years agoFix a compile warning.
Roy Marples [Mon, 21 Apr 2008 09:31:34 +0000 (09:31 +0000)] 
Fix a compile warning.

18 years agoWe should send packets to a specific IP over the udp socket so we don't broadcast...
Roy Marples [Sun, 20 Apr 2008 19:02:19 +0000 (19:02 +0000)] 
We should send packets to a specific IP over the udp socket so we don't broadcast on layer 2 and unicast on layer 3, #64.

18 years agoUse a.b.c.d/e notation as this more fully represents the data.
Roy Marples [Sun, 20 Apr 2008 09:35:47 +0000 (09:35 +0000)] 
Use a.b.c.d/e notation as this more fully represents the data.

18 years agoFix a signed issue.
Roy Marples [Sat, 19 Apr 2008 17:32:43 +0000 (17:32 +0000)] 
Fix a signed issue.

18 years agoFix rfc3397 and rfc3442 decoding for dhcpcd.sh.
Roy Marples [Sat, 19 Apr 2008 11:00:54 +0000 (11:00 +0000)] 
Fix rfc3397 and rfc3442 decoding for dhcpcd.sh.

18 years agoAdd a note about how to enable deprecated commandline options.
Roy Marples [Fri, 18 Apr 2008 23:23:00 +0000 (23:23 +0000)] 
Add a note about how to enable deprecated commandline options.

18 years agodhcpcd can now read a basic config file! Add a default dhcpcd.conf and matching man...
Roy Marples [Fri, 18 Apr 2008 23:12:44 +0000 (23:12 +0000)] 
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.

18 years agoMove the duid file to /etc/dhcpcd as it's really a config file. Also, rename hook...
Roy Marples [Thu, 17 Apr 2008 21:18:20 +0000 (21:18 +0000)] 
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.

18 years agoQuiet OpenRC scripts.
Roy Marples [Thu, 17 Apr 2008 18:38:59 +0000 (18:38 +0000)] 
Quiet OpenRC scripts.

18 years agoSplit ntp and ypbind into sample hook scripts. These are not installed by default.
Roy Marples [Thu, 17 Apr 2008 16:30:30 +0000 (16:30 +0000)] 
Split ntp and ypbind into sample hook scripts. These are not installed by default.

18 years agoFix ntp and nis servers.
Roy Marples [Thu, 17 Apr 2008 16:29:22 +0000 (16:29 +0000)] 
Fix ntp and nis servers.

18 years agoSpecify char
Roy Marples [Thu, 17 Apr 2008 10:08:48 +0000 (10:08 +0000)] 
Specify char

18 years agoOur ctype calls should always use unsigned.
Roy Marples [Thu, 17 Apr 2008 09:57:19 +0000 (09:57 +0000)] 
Our ctype calls should always use unsigned.

18 years agoIf _PATH_BPF is set, open that instead of searching for a free BPF device.
Roy Marples [Thu, 17 Apr 2008 09:47:11 +0000 (09:47 +0000)] 
If _PATH_BPF is set, open that instead of searching for a free BPF device.

18 years agoChange SYSCONFDIR to /etc/dhcpcd as we'll probably be adding some kind of config...
Roy Marples [Wed, 16 Apr 2008 18:19:50 +0000 (18:19 +0000)] 
Change SYSCONFDIR to /etc/dhcpcd as we'll probably be adding some kind of config file.

18 years agoFix compat - d'oh
Roy Marples [Wed, 16 Apr 2008 13:50:44 +0000 (13:50 +0000)] 
Fix compat - d'oh

18 years agoAdd dhcpcd-compat.sh, so that distros can make available old style variables.
Roy Marples [Wed, 16 Apr 2008 13:47:39 +0000 (13:47 +0000)] 
Add dhcpcd-compat.sh, so that distros can make available old style variables.

18 years agoUse correct mtu function.
Roy Marples [Wed, 16 Apr 2008 12:25:13 +0000 (12:25 +0000)] 
Use correct mtu function.

18 years agoAdd dhcpcd.sh.in
Roy Marples [Wed, 16 Apr 2008 10:25:54 +0000 (10:25 +0000)] 
Add dhcpcd.sh.in

18 years agoFix a few compile warnings.
Roy Marples [Wed, 16 Apr 2008 09:55:35 +0000 (09:55 +0000)] 
Fix a few compile warnings.

18 years agoRemove the .info file and now set environment vars in the same vein as dhclient....
Roy Marples [Wed, 16 Apr 2008 09:51:20 +0000 (09:51 +0000)] 
Remove the .info file and now set environment vars in the same vein as dhclient. This allows similar scripts to be used.

18 years agoDon't compare if file does not exist.
Roy Marples [Mon, 14 Apr 2008 19:28:28 +0000 (19:28 +0000)] 
Don't compare if file does not exist.

18 years agoSupport GNU style calling.
Roy Marples [Mon, 14 Apr 2008 19:24:23 +0000 (19:24 +0000)] 
Support GNU style calling.

18 years agoWe should ARP by default.
Roy Marples [Mon, 14 Apr 2008 18:50:48 +0000 (18:50 +0000)] 
We should ARP by default.

18 years agoReplace the clean_metas functions with a write_string function. The main difference...
Roy Marples [Mon, 14 Apr 2008 15:08:46 +0000 (15:08 +0000)] 
Replace the clean_metas functions with a write_string function. The main difference is that we escape non ascii or printable chars and avoid mallocing.

18 years agoMove MTU configuration to dhcpcd.sh. However, if the MTU is too small for dhcpcd...
Roy Marples [Mon, 14 Apr 2008 13:47:20 +0000 (13:47 +0000)] 
Move MTU configuration to dhcpcd.sh. However, if the MTU is too small for dhcpcd, dhcpcd will increase it to the minimum.

18 years agoFix type for NetBIOS scope, and escape unknown options such as vendor extended options.
Roy Marples [Mon, 14 Apr 2008 13:29:11 +0000 (13:29 +0000)] 
Fix type for NetBIOS scope, and escape unknown options such as vendor extended options.

18 years agoChange a few build/install knobs.
Roy Marples [Mon, 14 Apr 2008 13:09:44 +0000 (13:09 +0000)] 
Change a few build/install knobs.

18 years agoImplement arrays and fix getting strings.
Roy Marples [Mon, 14 Apr 2008 12:43:52 +0000 (12:43 +0000)] 
Implement arrays and fix getting strings.

18 years agoImplement integer arrays.
Roy Marples [Mon, 14 Apr 2008 12:21:28 +0000 (12:21 +0000)] 
Implement integer arrays.

18 years agoAdd loads more DHCP options from RFC2132 to the info file, also closes #53.
Roy Marples [Mon, 14 Apr 2008 10:02:44 +0000 (10:02 +0000)] 
Add loads more DHCP options from RFC2132 to the info file, also closes #53.

18 years agoAdd more dhcp types, #53
Roy Marples [Mon, 14 Apr 2008 06:57:18 +0000 (06:57 +0000)] 
Add more dhcp types, #53

18 years agoThe H argument no means , which changes it's meaning from prior versions.
Roy Marples [Mon, 14 Apr 2008 06:35:05 +0000 (06:35 +0000)] 
The H argument no means , which changes it's meaning from prior versions.

18 years agoAdd -o opt1,opt2 and -O to disable requesting optional options. Rejig our defaults...
Roy Marples [Mon, 14 Apr 2008 03:45:54 +0000 (03:45 +0000)] 
Add -o opt1,opt2 and -O to disable requesting optional options. Rejig our defaults around this.

18 years agoWe should check the cookie on messages.
Roy Marples [Sun, 13 Apr 2008 15:33:00 +0000 (15:33 +0000)] 
We should check the cookie on messages.

18 years agoWe should end options correctly.
Roy Marples [Sun, 13 Apr 2008 15:29:09 +0000 (15:29 +0000)] 
We should end options correctly.

18 years agoWe now use either dig or host to lookup the hostname in DNS again.
Roy Marples [Sun, 13 Apr 2008 13:17:03 +0000 (13:17 +0000)] 
We now use either dig or host to lookup the hostname in DNS again.

18 years agoRemove the bit about init detection as it's no longer used.
Roy Marples [Sun, 13 Apr 2008 11:49:19 +0000 (11:49 +0000)] 
Remove the bit about init detection as it's no longer used.

18 years agoAs we're only dealing with dhcpcd.sh now, the exec_cmd function doesn't need to be...
Roy Marples [Sun, 13 Apr 2008 11:27:41 +0000 (11:27 +0000)] 
As we're only dealing with dhcpcd.sh now, the exec_cmd function doesn't need to be so complex.

18 years agoAs we're not looking up the hostname anymore, remove reference from manual.
Roy Marples [Sat, 12 Apr 2008 23:58:03 +0000 (23:58 +0000)] 
As we're not looking up the hostname anymore, remove reference from manual.

18 years agoAnd read only ;)
Roy Marples [Sat, 12 Apr 2008 23:15:22 +0000 (23:15 +0000)] 
And read only ;)

18 years agoThe lease file should only be able to be read by the user than runs dhcpcd.
Roy Marples [Sat, 12 Apr 2008 23:13:15 +0000 (23:13 +0000)] 
The lease file should only be able to be read by the user than runs dhcpcd.

18 years agoMove configuration file setup to dhcpcd.sh so that it's possible for the user to...
Roy Marples [Sat, 12 Apr 2008 23:00:23 +0000 (23:00 +0000)] 
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.

18 years agoFix INFORM support a little.
Roy Marples [Sat, 12 Apr 2008 03:54:17 +0000 (03:54 +0000)] 
Fix INFORM support a little.

18 years agoPunt unused file.
Roy Marples [Fri, 11 Apr 2008 16:23:31 +0000 (16:23 +0000)] 
Punt unused file.

18 years agoNormally I hate massive code drops, but heh.
Roy Marples [Fri, 11 Apr 2008 16:14:55 +0000 (16:14 +0000)] 
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.

18 years agoread(2) works on ssize_t so we should use this rather than size_t for our buffers...
Roy Marples [Mon, 31 Mar 2008 10:23:59 +0000 (10:23 +0000)] 
read(2) works on ssize_t so we should use this rather than size_t for our buffers. A DHCP or ARP packet still easily fits into this.