]> git.ipfire.org Git - thirdparty/dhcpcd.git/log
thirdparty/dhcpcd.git
18 years agoAdd a -C, --nohook option to skip the running of hook scripts. Makes it easier to...
Roy Marples [Tue, 20 May 2008 16:05:15 +0000 (16:05 +0000)] 
Add a -C, --nohook option to skip the running of hook scripts. Makes it easier to just not do any configuring of resolv.conf

18 years agoDon't set CONFIG in the Makefile.
Roy Marples [Tue, 20 May 2008 14:10:21 +0000 (14:10 +0000)] 
Don't set CONFIG in the Makefile.

18 years agoFix ipv4ll support.
Roy Marples [Tue, 20 May 2008 13:51:44 +0000 (13:51 +0000)] 
Fix ipv4ll support.

18 years agoDocument dhcpcd.conf in FILES.
Roy Marples [Tue, 20 May 2008 12:55:29 +0000 (12:55 +0000)] 
Document dhcpcd.conf in FILES.

18 years agoDon't prefix functions with _
Roy Marples [Tue, 20 May 2008 12:47:16 +0000 (12:47 +0000)] 
Don't prefix functions with _

18 years agoOne sentence per line.
Roy Marples [Tue, 20 May 2008 12:33:04 +0000 (12:33 +0000)] 
One sentence per line.

18 years agoFix readme
Roy Marples [Tue, 20 May 2008 12:24:39 +0000 (12:24 +0000)] 
Fix readme

18 years agoInstall dhcpcd.sh and hooks into /libexec by default. dhcpcd.conf, dhcpcd.duid and...
Roy Marples [Tue, 20 May 2008 12:23:29 +0000 (12:23 +0000)] 
Install dhcpcd.sh and hooks into /libexec by default. dhcpcd.conf, dhcpcd.duid and dhcpcd.hook are now in /etc.

18 years agoSplit dhcpcd.sh into smaller hook scripts, so that dhcpcd.sh just provide some handy...
Roy Marples [Tue, 20 May 2008 10:55:25 +0000 (10:55 +0000)] 
Split dhcpcd.sh into smaller hook scripts, so that dhcpcd.sh just provide some handy functions and runs the hooks. We now only have one hook, instead of enter/exit.

18 years agoUse CPPFLAGS as FreeBSD make doesn't.
Roy Marples [Tue, 20 May 2008 08:30:08 +0000 (08:30 +0000)] 
Use CPPFLAGS as FreeBSD make doesn't.

18 years agoWe should really be using CPPFLAGS.
Roy Marples [Tue, 20 May 2008 05:57:35 +0000 (05:57 +0000)] 
We should really be using CPPFLAGS.

18 years agoMove the SUFFIXES to them.
Roy Marples [Mon, 19 May 2008 23:22:44 +0000 (23:22 +0000)] 
Move the SUFFIXES to them.

18 years agoFix csr's, #81.
Roy Marples [Mon, 19 May 2008 22:37:48 +0000 (22:37 +0000)] 
Fix csr's, #81.

18 years agoChange our Makefile vars to be more like NetBSD.
Roy Marples [Mon, 19 May 2008 15:50:50 +0000 (15:50 +0000)] 
Change our Makefile vars to be more like NetBSD.

18 years agoStyle
Roy Marples [Mon, 19 May 2008 14:47:37 +0000 (14:47 +0000)] 
Style

18 years agoTrap some config.h defines if they're in CFLAGS.
Roy Marples [Mon, 19 May 2008 14:45:05 +0000 (14:45 +0000)] 
Trap some config.h defines if they're in CFLAGS.

18 years agorealloc -> xrealloc
Roy Marples [Mon, 19 May 2008 13:40:39 +0000 (13:40 +0000)] 
realloc -> xrealloc

18 years agoMove VERSION from Makefile to config.h so that other Makefiles can be used instead...
Roy Marples [Mon, 19 May 2008 13:36:06 +0000 (13:36 +0000)] 
Move VERSION from Makefile to config.h so that other Makefiles can be used instead of our own.

18 years agoFix a potential segfault.
Roy Marples [Mon, 19 May 2008 13:16:03 +0000 (13:16 +0000)] 
Fix a potential segfault.

18 years agoStyle.
Roy Marples [Mon, 19 May 2008 09:18:02 +0000 (09:18 +0000)] 
Style.

18 years agoCreate a real arc4linux function so we don't have to visible seed random in dhcpcd...
Roy Marples [Mon, 19 May 2008 09:16:55 +0000 (09:16 +0000)] 
Create a real arc4linux function so we don't have to visible seed random in dhcpcd main.

18 years agoSetup our lease and state correctly when comming back as daemonised.
Roy Marples [Fri, 16 May 2008 09:08:52 +0000 (09:08 +0000)] 
Setup our lease and state correctly when comming back as daemonised.

18 years agoTry a new checksum routine.
Roy Marples [Thu, 15 May 2008 20:58:31 +0000 (20:58 +0000)] 
Try a new checksum routine.

18 years agoFix checksum on Sparc64.
Roy Marples [Thu, 15 May 2008 20:45:45 +0000 (20:45 +0000)] 
Fix checksum on Sparc64.

18 years agoFix test.
Roy Marples [Thu, 15 May 2008 19:30:21 +0000 (19:30 +0000)] 
Fix test.

18 years agoUse arc4random as everything apart from glibc seems to have it.
Roy Marples [Thu, 15 May 2008 19:21:15 +0000 (19:21 +0000)] 
Use arc4random as everything apart from glibc seems to have it.

18 years agoFix compile on Linux.
Roy Marples [Thu, 15 May 2008 16:35:41 +0000 (16:35 +0000)] 
Fix compile on Linux.

18 years agoUse paths.h when available and ensure that we can disable our glue easily.
Roy Marples [Thu, 15 May 2008 16:30:16 +0000 (16:30 +0000)] 
Use paths.h when available and ensure that we can disable our glue easily.

18 years agoCheck correct lengths and use closefrom where available.
Roy Marples [Thu, 15 May 2008 16:09:42 +0000 (16:09 +0000)] 
Check correct lengths and use closefrom where available.

18 years agoStyle.
Roy Marples [Thu, 15 May 2008 15:48:15 +0000 (15:48 +0000)] 
Style.

18 years agoNo need for this check with our non blocking sockets.
Roy Marples [Thu, 15 May 2008 14:20:01 +0000 (14:20 +0000)] 
No need for this check with our non blocking sockets.

18 years agoUse non blocking sockets so read errors with EAGAIN.
Roy Marples [Thu, 15 May 2008 14:16:47 +0000 (14:16 +0000)] 
Use non blocking sockets so read errors with EAGAIN.

18 years agoget_packet 0 means no more buffer, so loops don't need to know the bpf/socket buffering.
Roy Marples [Thu, 15 May 2008 13:34:31 +0000 (13:34 +0000)] 
get_packet 0 means no more buffer, so loops don't need to know the bpf/socket buffering.

18 years agoDon't use stdio in a vfork and fix some unconsts.
Roy Marples [Thu, 15 May 2008 12:57:31 +0000 (12:57 +0000)] 
Don't use stdio in a vfork and fix some unconsts.

18 years agoMove signal.{c,h} to signals.{c.h} so we can work better in the NetBSD source tree.
Roy Marples [Thu, 15 May 2008 12:48:01 +0000 (12:48 +0000)] 
Move signal.{c,h} to signals.{c.h} so we can work better in the NetBSD source tree.

18 years agoFix bpf for the correct position on new buffers.
Roy Marples [Thu, 15 May 2008 12:32:27 +0000 (12:32 +0000)] 
Fix bpf for the correct position on new buffers.

18 years agoLoop correctly for more packets.
Roy Marples [Thu, 15 May 2008 12:15:49 +0000 (12:15 +0000)] 
Loop correctly for more packets.

18 years agoOnly alloc the buffer once.
Roy Marples [Thu, 15 May 2008 12:15:33 +0000 (12:15 +0000)] 
Only alloc the buffer once.

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.