]> git.ipfire.org Git - thirdparty/dhcpcd.git/log
thirdparty/dhcpcd.git
17 years agoBack off IPv4LL detection after MAX_CONFLICTS.
Roy Marples [Wed, 28 May 2008 12:03:03 +0000 (12:03 +0000)] 
Back off IPv4LL detection after MAX_CONFLICTS.

17 years agoWe should inspect our signal fd before processing ARP replies.
Roy Marples [Wed, 28 May 2008 12:02:04 +0000 (12:02 +0000)] 
We should inspect our signal fd before processing ARP replies.

17 years agoWhen we're persistent and using the last lease ignore expired check. This is so we...
Roy Marples [Wed, 28 May 2008 09:30:45 +0000 (09:30 +0000)] 
When we're persistent and using the last lease ignore expired check. This is so we work with NFS / and the DHCP server has been down for a while.

17 years agoPut env var back :)
Roy Marples [Wed, 28 May 2008 07:12:06 +0000 (07:12 +0000)] 
Put env var back :)

17 years agoOnly calculate strlen(oarg), saves space and fixes parsing fqdn in the config file.
Roy Marples [Wed, 28 May 2008 07:11:07 +0000 (07:11 +0000)] 
Only calculate strlen(oarg), saves space and fixes parsing fqdn in the config file.

17 years agoDocument -x
Roy Marples [Wed, 28 May 2008 06:43:32 +0000 (06:43 +0000)] 
Document -x

17 years agoFix the option to change script.
Roy Marples [Tue, 27 May 2008 20:04:15 +0000 (20:04 +0000)] 
Fix the option to change script.

17 years agoReplace the signal clear with a pipe so child can notify parent when to exit.
Roy Marples [Tue, 27 May 2008 19:06:48 +0000 (19:06 +0000)] 
Replace the signal clear with a pipe so child can notify parent when to exit.

17 years agoFix signal loop.
Roy Marples [Tue, 27 May 2008 18:47:50 +0000 (18:47 +0000)] 
Fix signal loop.

17 years agoUse new names.
Roy Marples [Tue, 27 May 2008 12:41:42 +0000 (12:41 +0000)] 
Use new names.

17 years agoMerge branch 'master' of git.marples.name:/var/git/dhcpcd
Roy Marples [Tue, 27 May 2008 12:39:00 +0000 (12:39 +0000)] 
Merge branch 'master' of git.marples.name:/var/git/dhcpcd

17 years agoUse new names.
Roy Marples [Tue, 27 May 2008 12:32:36 +0000 (12:32 +0000)] 
Use new names.

17 years agoWe source the hooks, so use FILES instead of SCRIPTS.
Roy Marples [Tue, 27 May 2008 11:26:24 +0000 (11:26 +0000)] 
We source the hooks, so use FILES instead of SCRIPTS.

17 years agoFix rc-service command.
Roy Marples [Tue, 27 May 2008 11:22:58 +0000 (11:22 +0000)] 
Fix rc-service command.

17 years agoUse the write length.
Roy Marples [Tue, 27 May 2008 09:14:33 +0000 (09:14 +0000)] 
Use the write length.

17 years agoMove NO_FORK code down so options is initialised.
Roy Marples [Tue, 27 May 2008 09:14:04 +0000 (09:14 +0000)] 
Move NO_FORK code down so options is initialised.

17 years agoFix pointer.
Roy Marples [Mon, 26 May 2008 20:43:34 +0000 (20:43 +0000)] 
Fix pointer.

17 years agoFix compile.
Roy Marples [Mon, 26 May 2008 19:48:46 +0000 (19:48 +0000)] 
Fix compile.

17 years agoFix a signal race when daemonising.
Roy Marples [Mon, 26 May 2008 19:19:11 +0000 (19:19 +0000)] 
Fix a signal race when daemonising.

17 years agoset is shell builtin, env is not
Roy Marples [Mon, 26 May 2008 16:06:35 +0000 (16:06 +0000)] 
set is shell builtin, env is not

17 years agoPull ARP replies correctly.
Roy Marples [Mon, 26 May 2008 09:58:36 +0000 (09:58 +0000)] 
Pull ARP replies correctly.

17 years agodhcpcd-4.0.0-beta5
Roy Marples [Sat, 24 May 2008 17:47:44 +0000 (17:47 +0000)] 
dhcpcd-4.0.0-beta5

17 years agoFix install.
Roy Marples [Sat, 24 May 2008 17:45:38 +0000 (17:45 +0000)] 
Fix install.

17 years agoDocument --script.
Roy Marples [Sat, 24 May 2008 17:40:38 +0000 (17:40 +0000)] 
Document --script.

17 years agoFix subdir
Roy Marples [Sat, 24 May 2008 17:37:15 +0000 (17:37 +0000)] 
Fix subdir

17 years agoStyle.
Roy Marples [Sat, 24 May 2008 17:30:00 +0000 (17:30 +0000)] 
Style.

17 years agoRename hook script to reflect the config file they are updating.
Roy Marples [Sat, 24 May 2008 17:18:07 +0000 (17:18 +0000)] 
Rename hook script to reflect the config file they are updating.

17 years agoMerge branch 'master' of git.marples.name:/var/git/dhcpcd
Roy Marples [Sat, 24 May 2008 17:15:34 +0000 (17:15 +0000)] 
Merge branch 'master' of git.marples.name:/var/git/dhcpcd

17 years agoMove dhcpcd.sh to dhcpcd-run-hooks and remove .sh suffixes
Roy Marples [Sat, 24 May 2008 17:15:14 +0000 (17:15 +0000)] 
Move dhcpcd.sh to dhcpcd-run-hooks and remove .sh suffixes

17 years agoDon't bother appending log level to stdout, save a few bytes.
Roy Marples [Fri, 23 May 2008 07:31:17 +0000 (07:31 +0000)] 
Don't bother appending log level to stdout, save a few bytes.

17 years agoFix shell logic
Roy Marples [Fri, 23 May 2008 06:36:57 +0000 (06:36 +0000)] 
Fix shell logic

17 years agoJust use /etc.
Roy Marples [Thu, 22 May 2008 21:41:40 +0000 (21:41 +0000)] 
Just use /etc.

17 years agoUse proper words.
Roy Marples [Thu, 22 May 2008 21:41:27 +0000 (21:41 +0000)] 
Use proper words.

17 years agoPut my code at the top and UNCONST filters in bpf.c
Roy Marples [Thu, 22 May 2008 18:16:22 +0000 (18:16 +0000)] 
Put my code at the top and UNCONST filters in bpf.c

17 years agoDon't echo loglevel names to stdout.
Roy Marples [Thu, 22 May 2008 16:08:22 +0000 (16:08 +0000)] 
Don't echo loglevel names to stdout.

17 years agoAdd ISC copyright to dhcp_bpf_filter.
Roy Marples [Thu, 22 May 2008 16:07:45 +0000 (16:07 +0000)] 
Add ISC copyright to dhcp_bpf_filter.

17 years agoUse constant BPF structures and defines to alter the data instead of functions. Small...
Roy Marples [Thu, 22 May 2008 13:59:33 +0000 (13:59 +0000)] 
Use constant BPF structures and defines to alter the data instead of functions. Smaller code :)

17 years agoInstalling to FHS dirs just for Linux is silly, especially as GNU autotools don't...
Roy Marples [Thu, 22 May 2008 09:23:03 +0000 (09:23 +0000)] 
Installing to FHS dirs just for Linux is silly, especially as GNU autotools don't by default. With installing to the same dirs regardless of OS it also makes my life easier.

17 years agoApparently some DHCP servers return NULL strings, Gentoo #222381.
Roy Marples [Wed, 21 May 2008 10:40:56 +0000 (10:40 +0000)] 
Apparently some DHCP servers return NULL strings, Gentoo #222381.

17 years agoImprove documentation about the hooks.
Roy Marples [Wed, 21 May 2008 09:16:24 +0000 (09:16 +0000)] 
Improve documentation about the hooks.

17 years agoStop defining the same flags twice.
Roy Marples [Wed, 21 May 2008 08:43:28 +0000 (08:43 +0000)] 
Stop defining the same flags twice.

17 years agoUse CPP flags here.
Roy Marples [Tue, 20 May 2008 23:06:15 +0000 (23:06 +0000)] 
Use CPP flags here.

17 years agoPlug some valgrind leaks.
Roy Marples [Tue, 20 May 2008 23:01:13 +0000 (23:01 +0000)] 
Plug some valgrind leaks.

17 years agoMore Typo
Roy Marples [Tue, 20 May 2008 22:53:41 +0000 (22:53 +0000)] 
More Typo

17 years agoTypo
Roy Marples [Tue, 20 May 2008 22:50:28 +0000 (22:50 +0000)] 
Typo

17 years agoTypo
Roy Marples [Tue, 20 May 2008 22:49:22 +0000 (22:49 +0000)] 
Typo

17 years agoDocument last lease and nohook.
Roy Marples [Tue, 20 May 2008 22:47:39 +0000 (22:47 +0000)] 
Document last lease and nohook.

17 years agoInstall hooks in the os specific dir.
Roy Marples [Tue, 20 May 2008 22:41:07 +0000 (22:41 +0000)] 
Install hooks in the os specific dir.

17 years agoFix install for gmake.
Roy Marples [Tue, 20 May 2008 22:29:57 +0000 (22:29 +0000)] 
Fix install for gmake.

17 years agoMove socket.c -> lpf.c. Also, default Linux to using /lib/dhcpcd rather than /libexec...
Roy Marples [Tue, 20 May 2008 22:25:20 +0000 (22:25 +0000)] 
Move socket.c -> lpf.c. Also, default Linux to using /lib/dhcpcd rather than /libexec so it fits the FHS better.

17 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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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