]> git.ipfire.org Git - thirdparty/dhcpcd.git/log
thirdparty/dhcpcd.git
16 years agoAllow testing of INFORM and REQUEST messages.
Roy Marples [Sat, 11 Jul 2009 18:54:43 +0000 (18:54 +0000)] 
Allow testing of INFORM and REQUEST messages.

16 years agoDon't alter the MTU when testing.
Roy Marples [Sat, 11 Jul 2009 15:14:54 +0000 (15:14 +0000)] 
Don't alter the MTU when testing.

16 years agoDon't print (null) when there is no NAK message.
Roy Marples [Sat, 11 Jul 2009 15:14:31 +0000 (15:14 +0000)] 
Don't print (null) when there is no NAK message.

16 years agoPromote bytes to size_t for sizeof comparison.
Roy Marples [Sat, 11 Jul 2009 15:04:13 +0000 (15:04 +0000)] 
Promote bytes to size_t for sizeof comparison.

16 years agoUse ssize_t which is a signed int and test if read() returns -1.
Roy Marples [Sat, 11 Jul 2009 07:03:23 +0000 (07:03 +0000)] 
Use ssize_t which is a signed int and test if read() returns -1.

16 years agoRelease dhcpcd-5.0.6 v5.0.6
Roy Marples [Wed, 8 Jul 2009 22:18:39 +0000 (22:18 +0000)] 
Release dhcpcd-5.0.6

16 years agoEnsure that DBDIR and RUNDIR exist if defined as /var/db/dhcpcd and/or /var/run/dhcpcd.
Roy Marples [Wed, 8 Jul 2009 19:22:31 +0000 (19:22 +0000)] 
Ensure that DBDIR and RUNDIR exist if defined as /var/db/dhcpcd and/or /var/run/dhcpcd.

16 years agoEnsure that ntp.conf exists before removing markers.
Roy Marples [Wed, 8 Jul 2009 17:05:29 +0000 (17:05 +0000)] 
Ensure that ntp.conf exists before removing markers.

16 years agoChange get_option_addr to accept struct in_addr * instead of uint32_t *
Roy Marples [Wed, 8 Jul 2009 17:01:38 +0000 (17:01 +0000)] 
Change get_option_addr to accept struct in_addr * instead of uint32_t *
to fix an alignment issue on SGI MIPS.

16 years agoAdd -W, --whitelist addr/cidr
Roy Marples [Sun, 5 Jul 2009 11:33:46 +0000 (11:33 +0000)] 
Add -W, --whitelist addr/cidr
This only allows packets from the addresses listed and overrides
blacklist if set.

16 years agoSilence more GCC warnings about unused return values.
Roy Marples [Sat, 4 Jul 2009 00:58:03 +0000 (00:58 +0000)] 
Silence more GCC warnings about unused return values.

16 years agoDocument nooption
Roy Marples [Sat, 4 Jul 2009 00:38:55 +0000 (00:38 +0000)] 
Document nooption

16 years agoWhen we get an ACK we should close DHCP sockets so we don't handle any NAKs
Roy Marples [Sat, 4 Jul 2009 00:06:25 +0000 (00:06 +0000)] 
When we get an ACK we should close DHCP sockets so we don't handle any NAKs
during ARP testing.

This is important as some broken DHCP servers NAK immediately after an ACK
in some situations.

16 years agoLog the MTU changes.
Roy Marples [Sat, 4 Jul 2009 00:03:01 +0000 (00:03 +0000)] 
Log the MTU changes.

16 years agoSave the MTU when changing it.
Roy Marples [Fri, 3 Jul 2009 23:32:30 +0000 (23:32 +0000)] 
Save the MTU when changing it.
If we enter a state without a new MTU then restore the old one.

16 years agoRelease dhcpcd-5.0.5 v5.0.5
Roy Marples [Fri, 3 Jul 2009 19:13:26 +0000 (19:13 +0000)] 
Release dhcpcd-5.0.5

16 years agoRespect the MTU by default.
Roy Marples [Fri, 3 Jul 2009 09:55:16 +0000 (09:55 +0000)] 
Respect the MTU by default.
If people have broken DHCP servers, or use an ISP with one they can
always change the setting.

16 years agoFix detecting the dstaddr at startup.
Roy Marples [Fri, 3 Jul 2009 09:52:37 +0000 (09:52 +0000)] 
Fix detecting the dstaddr at startup.

16 years agoStyle.
Roy Marples [Tue, 9 Jun 2009 19:11:33 +0000 (19:11 +0000)] 
Style.

16 years agoRelease dhcpcd-5.0.4 v5.0.4
Roy Marples [Thu, 14 May 2009 16:19:24 +0000 (16:19 +0000)] 
Release dhcpcd-5.0.4

16 years agoAlthough RFC2131 requires a ServerID we can actually work without one.
Roy Marples [Wed, 13 May 2009 19:17:21 +0000 (19:17 +0000)] 
Although RFC2131 requires a ServerID we can actually work without one.
Some broken servers don't send a ServerID, so make the requirement optional.
We default to requiring ServerID in dhcpcd.conf though as some other broken
servers NAK incorrectly without a ServerID.

16 years agoThe smallest MTU we can work with is 576, so don't set less.
Roy Marples [Wed, 13 May 2009 18:49:49 +0000 (18:49 +0000)] 
The smallest MTU we can work with is 576, so don't set less.

16 years agoEnforce a minimum lease of 20 seconds so we can do things
Roy Marples [Wed, 13 May 2009 18:14:50 +0000 (18:14 +0000)] 
Enforce a minimum lease of 20 seconds so we can do things
like ARP check and restart services.

16 years agoRelease dhcpcd-5.0.3 v5.0.3
Roy Marples [Mon, 11 May 2009 07:18:10 +0000 (07:18 +0000)] 
Release dhcpcd-5.0.3

16 years agoifas without an ifa_addr seem to indicate a link without a hwaddr, so
Roy Marples [Mon, 11 May 2009 07:16:24 +0000 (07:16 +0000)] 
ifas without an ifa_addr seem to indicate a link without a hwaddr, so
treat them as such. This allows static and 3rdparty configuration.

16 years agoI stand corrected - ifa_addr can be NULL from getifaddrs(3)
Roy Marples [Sun, 10 May 2009 23:31:55 +0000 (23:31 +0000)] 
I stand corrected - ifa_addr can be NULL from getifaddrs(3)

16 years agoSome glibc versions have a NULL ifa_addr for the ifa from getifaddrs(3).
Roy Marples [Sun, 10 May 2009 20:20:18 +0000 (20:20 +0000)] 
Some glibc versions have a NULL ifa_addr for the ifa from getifaddrs(3).

16 years agoRelease dhcpcd-5.0.2 v5.0.2
Roy Marples [Sun, 10 May 2009 16:21:57 +0000 (16:21 +0000)] 
Release dhcpcd-5.0.2

16 years agoDon't forget to remove .gitignore
Roy Marples [Sun, 10 May 2009 16:21:56 +0000 (16:21 +0000)] 
Don't forget to remove .gitignore

16 years agoAdd a build target to prepare dhcpcd for importing into NetBSD.
Roy Marples [Sun, 10 May 2009 16:21:56 +0000 (16:21 +0000)] 
Add a build target to prepare dhcpcd for importing into NetBSD.
This should make my life a little easier :)

16 years agoDocument new behaviour re lookup-hostname
Roy Marples [Sun, 10 May 2009 00:40:13 +0000 (00:40 +0000)] 
Document new behaviour re lookup-hostname

16 years agoInstall the lookup-hostname script by default but don't run it by default.
Roy Marples [Sat, 9 May 2009 20:55:36 +0000 (20:55 +0000)] 
Install the lookup-hostname script by default but don't run it by default.

16 years agoFix dhcpcd -n $int starting a new instance of dhcpcd if not running.
Roy Marples [Sat, 9 May 2009 14:15:31 +0000 (14:15 +0000)] 
Fix dhcpcd -n $int starting a new instance of dhcpcd if not running.

16 years agoEnsure that our dirs exist in the PREINIT stage.
Roy Marples [Sun, 3 May 2009 20:07:14 +0000 (20:07 +0000)] 
Ensure that our dirs exist in the PREINIT stage.
Recent rc.d init scripts echo to stderr if not set to start, so remove
warnings.

16 years agoSome distros need additional headers to compile linux/wireless.h
Roy Marples [Sun, 3 May 2009 12:33:24 +0000 (12:33 +0000)] 
Some distros need additional headers to compile linux/wireless.h

16 years agoRelease dhcpcd-5.0.1 v5.0.1
Roy Marples [Sun, 3 May 2009 06:17:07 +0000 (06:17 +0000)] 
Release dhcpcd-5.0.1

16 years agoWe need to cast to void * to remove warnings on Sparc64
roy@ubersparc.marples.name [Sat, 2 May 2009 16:21:52 +0000 (16:21 +0000)] 
We need to cast to void * to remove warnings on Sparc64

16 years agoAdd (c) to Copyright
Roy Marples [Fri, 1 May 2009 13:57:45 +0000 (13:57 +0000)] 
Add (c) to Copyright

16 years agoGo back to using git
Roy Marples [Thu, 30 Apr 2009 15:30:29 +0000 (15:30 +0000)] 
Go back to using git

16 years agoRelease dhcpcd-5.0.0
Roy Marples [Tue, 28 Apr 2009 20:57:12 +0000 (20:57 +0000)] 
Release dhcpcd-5.0.0

16 years agoFix existing address detection.
Roy Marples [Mon, 27 Apr 2009 14:00:39 +0000 (14:00 +0000)] 
Fix existing address detection.

16 years agoTypo
Roy Marples [Fri, 24 Apr 2009 16:51:00 +0000 (16:51 +0000)] 
Typo

16 years agodhcpcd -V now shows all variables we set, even without an option.
Roy Marples [Fri, 24 Apr 2009 16:48:35 +0000 (16:48 +0000)] 
dhcpcd -V now shows all variables we set, even without an option.

16 years agoRemove .depend before creating it.
Roy Marples [Fri, 24 Apr 2009 08:33:48 +0000 (08:33 +0000)] 
Remove .depend before creating it.

16 years agoOnly allow lo0 through allow
Roy Marples [Mon, 20 Apr 2009 19:40:09 +0000 (19:40 +0000)] 
Only allow lo0 through allow

16 years agoNo need for this.
Roy Marples [Mon, 20 Apr 2009 13:47:27 +0000 (13:47 +0000)] 
No need for this.

16 years agoFix quoting
Roy Marples [Mon, 20 Apr 2009 12:34:08 +0000 (12:34 +0000)] 
Fix quoting

16 years agoNo need to quote here.
Roy Marples [Mon, 20 Apr 2009 10:08:12 +0000 (10:08 +0000)] 
No need to quote here.

16 years agoRevert iforder -> interface_order
Roy Marples [Mon, 20 Apr 2009 10:02:17 +0000 (10:02 +0000)] 
Revert iforder -> interface_order

16 years agoRemove old NetworkManager script - it's useless these days.
Roy Marples [Mon, 20 Apr 2009 09:38:08 +0000 (09:38 +0000)] 
Remove old NetworkManager script - it's useless these days.
Remove gratuitous usage of {} in variables.

16 years agoPrefix interface vars with if so we don't stamp on generic names like 'flags'.
Roy Marples [Mon, 20 Apr 2009 09:37:11 +0000 (09:37 +0000)] 
Prefix interface vars with if so we don't stamp on generic names like 'flags'.

16 years agoRelease .18
Roy Marples [Sun, 19 Apr 2009 19:43:10 +0000 (19:43 +0000)] 
Release .18

16 years agoBlank memory correctly so we pickup address and route addition/deletion better.
Roy Marples [Sun, 19 Apr 2009 19:40:13 +0000 (19:40 +0000)] 
Blank memory correctly so we pickup address and route addition/deletion better.

16 years agoRelease dhcpcd-4.99.17
Roy Marples [Sun, 19 Apr 2009 18:23:47 +0000 (18:23 +0000)] 
Release dhcpcd-4.99.17

16 years agoAdd an option to fallback to a profile when DHCP fails.
Roy Marples [Sat, 18 Apr 2009 21:43:23 +0000 (21:43 +0000)] 
Add an option to fallback to a profile when DHCP fails.

16 years agoNetBSD-5.0RC4 has a kernel error causing an AF_LINK to be reported twice. A patch...
Roy Marples [Fri, 17 Apr 2009 19:15:42 +0000 (19:15 +0000)] 
NetBSD-5.0RC4 has a kernel error causing an AF_LINK to be reported twice. A patch has been submitted, hopefully included in NetBSD-5.0

16 years agoFix compile on FreeBSD.
Roy Marples [Fri, 17 Apr 2009 13:42:44 +0000 (13:42 +0000)] 
Fix compile on FreeBSD.

16 years agoFix compile on NetBSD
Roy Marples [Fri, 17 Apr 2009 13:31:41 +0000 (13:31 +0000)] 
Fix compile on NetBSD

16 years agoWe need to move allow/deny back to options
Roy Marples [Fri, 17 Apr 2009 13:31:08 +0000 (13:31 +0000)] 
We need to move allow/deny back to options

16 years agodiscover_interfaces now uses getifaddrs instead of OS specific implementation.
Roy Marples [Fri, 17 Apr 2009 12:49:25 +0000 (12:49 +0000)] 
discover_interfaces now uses getifaddrs instead of OS specific implementation.
do_interface then becomes do_address and also uses getifaddrs.

Binary size is a little smaller, code size is now a lot smaller.

16 years agoSome option only make sense in the configuration file, so remove short
Roy Marples [Wed, 15 Apr 2009 09:15:53 +0000 (09:15 +0000)] 
Some option only make sense in the configuration file, so remove short
options for them for future reuse.

16 years agoFix crash at end of arping list
Roy Marples [Wed, 15 Apr 2009 09:01:02 +0000 (09:01 +0000)] 
Fix crash at end of arping list

16 years agoWe should ignore DHCP messages without a ServerID, #166.
Roy Marples [Sun, 12 Apr 2009 19:16:57 +0000 (19:16 +0000)] 
We should ignore DHCP messages without a ServerID, #166.

16 years agoRelease dhcpcd-4.99.16
Roy Marples [Thu, 2 Apr 2009 09:32:54 +0000 (09:32 +0000)] 
Release dhcpcd-4.99.16

16 years agoWe need a bit more space for the profile name.
Roy Marples [Tue, 31 Mar 2009 11:01:25 +0000 (11:01 +0000)] 
We need a bit more space for the profile name.

16 years agoAdd the ability to arping an address and select a profile based on the
Roy Marples [Tue, 31 Mar 2009 08:35:38 +0000 (08:35 +0000)] 
Add the ability to arping an address and select a profile based on the
hardware address replied with or the ip address.

16 years agoImprove PTP INFORM support some more.
Roy Marples [Mon, 23 Mar 2009 22:02:37 +0000 (22:02 +0000)] 
Improve PTP INFORM support some more.

16 years agoDefault point to point interfaces to static if not inform.
Roy Marples [Mon, 23 Mar 2009 20:10:02 +0000 (20:10 +0000)] 
Default point to point interfaces to static if not inform.
Only accept inform replies from our destination address.

16 years agoIf we define a static address, we are not informing and vice versa.
Roy Marples [Mon, 23 Mar 2009 14:05:51 +0000 (14:05 +0000)] 
If we define a static address, we are not informing and vice versa.

16 years agoExport interface flags.
Roy Marples [Mon, 23 Mar 2009 12:56:33 +0000 (12:56 +0000)] 
Export interface flags.

16 years agoFail the interface when we need a clientid.
Roy Marples [Mon, 23 Mar 2009 11:15:35 +0000 (11:15 +0000)] 
Fail the interface when we need a clientid.

16 years agodhcpcd CAN work on IEEE FireWire interfaces.
Roy Marples [Mon, 23 Mar 2009 10:09:10 +0000 (10:09 +0000)] 
dhcpcd CAN work on IEEE FireWire interfaces.
However, BPF does not appear to operate on these, so we report the error
and continue.
When BPF supports FireWire for DHCP, dhcpcd will magically start to work.

16 years agoWe should not work with lo by default.
Roy Marples [Mon, 23 Mar 2009 07:43:31 +0000 (07:43 +0000)] 
We should not work with lo by default.

16 years agoRelease dhcpcd-4.99.15
Roy Marples [Fri, 20 Mar 2009 15:37:19 +0000 (15:37 +0000)] 
Release dhcpcd-4.99.15

16 years agoClarify reconfigure regarding the configuration file.
Roy Marples [Fri, 20 Mar 2009 15:33:31 +0000 (15:33 +0000)] 
Clarify reconfigure regarding the configuration file.

16 years agoAllow dhcpcd to run on loopback interfaces if specified.
Roy Marples [Fri, 20 Mar 2009 15:26:46 +0000 (15:26 +0000)] 
Allow dhcpcd to run on loopback interfaces if specified.

16 years agoWe should handle SIGUSR1 correctly.
Roy Marples [Fri, 20 Mar 2009 10:33:09 +0000 (10:33 +0000)] 
We should handle SIGUSR1 correctly.

16 years agoAdd an option to reconfigure dhcpcd without rebinding.
Roy Marples [Fri, 20 Mar 2009 10:21:12 +0000 (10:21 +0000)] 
Add an option to reconfigure dhcpcd without rebinding.
This is primarily for interaction with 3rd party link management, such as PPP.
More work on #159.

16 years agoMove dhcpf.h into dhcp.h were it belongs
Roy Marples [Thu, 19 Mar 2009 22:45:57 +0000 (22:45 +0000)] 
Move dhcpf.h into dhcp.h were it belongs

16 years agoLinux can now detect address addition and removal too.
Roy Marples [Thu, 19 Mar 2009 22:27:13 +0000 (22:27 +0000)] 
Linux can now detect address addition and removal too.

16 years agoFix compile on Linux.
Roy Marples [Thu, 19 Mar 2009 19:17:34 +0000 (19:17 +0000)] 
Fix compile on Linux.

16 years agoWe can now detected primary addresses added or changed in BSD.
Roy Marples [Thu, 19 Mar 2009 17:52:12 +0000 (17:52 +0000)] 
We can now detected primary addresses added or changed in BSD.
As such, we can wait for a 3RDPARTY to configure the interface, such as PPP.
We can then take the destination addess and automatically give it a default
route or any other DHCP option such as DNS servers.
This addresses #159.

16 years agoFix compile on DragonFly.
Roy Marples [Wed, 18 Mar 2009 21:16:33 +0000 (21:16 +0000)] 
Fix compile on DragonFly.
Thanks to Hasso Tepper.

16 years agomandoc mandates the presence of .Os
Roy Marples [Wed, 11 Mar 2009 17:57:10 +0000 (17:57 +0000)] 
mandoc mandates the presence of .Os

16 years agoWe shouldn't need to flush arp entires ourself on BSD platforms.
Roy Marples [Wed, 11 Mar 2009 11:53:11 +0000 (11:53 +0000)] 
We shouldn't need to flush arp entires ourself on BSD platforms.

16 years agoWe need to blacklist IP addresses at the packet level
Roy Marples [Tue, 10 Mar 2009 17:28:18 +0000 (17:28 +0000)] 
We need to blacklist IP addresses at the packet level
so we can ignore NAKs from rogue servers who don't
supply a ServerID, or supply a fake one.

16 years agoRelease dhcpcd-4.99.14
Roy Marples [Thu, 5 Mar 2009 23:13:01 +0000 (23:13 +0000)] 
Release dhcpcd-4.99.14

16 years agoImprove INFORM and STATIC support.
Roy Marples [Thu, 5 Mar 2009 16:35:03 +0000 (16:35 +0000)] 
Improve INFORM and STATIC support.
It's now possible to flip between DHCP, INFORM and STATIC on already
running instances.

16 years ago0 is not a valid CIDR
Roy Marples [Thu, 5 Mar 2009 16:31:44 +0000 (16:31 +0000)] 
0 is not a valid CIDR

16 years agoDon't add subnet routes to INADDR_ANY or those without a gateway.
Roy Marples [Thu, 5 Mar 2009 16:31:05 +0000 (16:31 +0000)] 
Don't add subnet routes to INADDR_ANY or those without a gateway.

16 years agoIf we reboot an IPv4LL address, start DHCP negotiation right away.
Roy Marples [Tue, 3 Mar 2009 23:41:53 +0000 (23:41 +0000)] 
If we reboot an IPv4LL address, start DHCP negotiation right away.

16 years agoSet the interval to 0 when carrier comes up.
Roy Marples [Mon, 2 Mar 2009 23:24:34 +0000 (23:24 +0000)] 
Set the interval to 0 when carrier comes up.

16 years agoValidate UDP better by ensuring data len is not bigger than our struct
Roy Marples [Sat, 28 Feb 2009 08:59:48 +0000 (08:59 +0000)] 
Validate UDP better by ensuring data len is not bigger than our struct
and that the claimed length by the header is not greater than our length.
Thanks to Michael Olney.

16 years agoBlacklist now accepts networks as well as addresses.
Roy Marples [Fri, 27 Feb 2009 21:18:01 +0000 (21:18 +0000)] 
Blacklist now accepts networks as well as addresses.
It also matches on the address offered as well as the server address.

16 years agoUse state dir for tmp files and try to preserve orig file more.
Roy Marples [Thu, 26 Feb 2009 19:31:41 +0000 (19:31 +0000)] 
Use state dir for tmp files and try to preserve orig file more.

16 years agoTypo
Roy Marples [Thu, 26 Feb 2009 16:16:57 +0000 (16:16 +0000)] 
Typo

16 years agoRemove compile warnings on Sparc64
Roy Marples [Thu, 26 Feb 2009 11:12:23 +0000 (11:12 +0000)] 
Remove compile warnings on Sparc64

16 years agoStop enforcing a umask in dhcpcd.
Roy Marples [Wed, 25 Feb 2009 14:59:27 +0000 (14:59 +0000)] 
Stop enforcing a umask in dhcpcd.
Instead we will ensure that /etc/resolv.conf is 644.
Other config files will retain their existing umask or inherit the current one.

16 years agoGah, remove some debug
Roy Marples [Wed, 25 Feb 2009 07:52:47 +0000 (07:52 +0000)] 
Gah, remove some debug

16 years agoDon't timeout if we're daemonised.
Roy Marples [Wed, 25 Feb 2009 07:52:07 +0000 (07:52 +0000)] 
Don't timeout if we're daemonised.