]> git.ipfire.org Git - thirdparty/dhcpcd.git/log
thirdparty/dhcpcd.git
18 years agoOnly alloc a buffer if size is different.
Roy Marples [Thu, 15 May 2008 12:15:06 +0000 (12:15 +0000)] 
Only alloc a buffer if size is different.

18 years agoFix some valgrind errors, and work on Linux again.
Roy Marples [Thu, 15 May 2008 11:12:44 +0000 (11:12 +0000)] 
Fix some valgrind errors, and work on Linux again.

18 years agoImprove get_packet API and memcpy to structure instead of using union pointers.
Roy Marples [Thu, 15 May 2008 10:10:39 +0000 (10:10 +0000)] 
Improve get_packet API and memcpy to structure instead of using union pointers.

18 years agoWhen we explictly don't want an option, don't put it in the env.
Roy Marples [Thu, 15 May 2008 08:48:17 +0000 (08:48 +0000)] 
When we explictly don't want an option, don't put it in the env.

18 years agoPrettify code a little.
Roy Marples [Wed, 14 May 2008 12:19:05 +0000 (12:19 +0000)] 
Prettify code a little.

18 years agoPrettify code a little.
Roy Marples [Wed, 14 May 2008 12:05:04 +0000 (12:05 +0000)] 
Prettify code a little.

18 years agoBIOCIMMEDIATE isn't always available
Roy Marples [Wed, 14 May 2008 11:53:58 +0000 (11:53 +0000)] 
BIOCIMMEDIATE isn't always available

18 years agoExport the parent pid to the script.
Roy Marples [Wed, 14 May 2008 11:44:01 +0000 (11:44 +0000)] 
Export the parent pid to the script.

18 years agoFix setting a blank hostname by mistake.
Roy Marples [Wed, 14 May 2008 10:12:26 +0000 (10:12 +0000)] 
Fix setting a blank hostname by mistake.

18 years agoUse an easier looping method, and use more const.
Roy Marples [Wed, 14 May 2008 10:08:27 +0000 (10:08 +0000)] 
Use an easier looping method, and use more const.

18 years agoWe shouldn't need to declare an interface when requesting a variable list.
Roy Marples [Wed, 14 May 2008 10:07:57 +0000 (10:07 +0000)] 
We shouldn't need to declare an interface when requesting a variable list.

18 years agoDefine our own log text so we can move it off bss.
Roy Marples [Wed, 14 May 2008 09:21:46 +0000 (09:21 +0000)] 
Define our own log text so we can move it off bss.

18 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.

18 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.

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

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

18 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.

18 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.

18 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.

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

18 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.

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

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

18 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.

18 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.

18 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.

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

18 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.

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

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

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

18 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.

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

18 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.

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

18 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  < .. >

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

18 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.

18 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.

18 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.

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

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

18 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.

18 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.

18 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.

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

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

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

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

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

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

18 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.

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

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

18 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.

18 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.

18 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.