]>
git.ipfire.org Git - thirdparty/dhcpcd.git/log
Roy Marples [Sat, 11 Jul 2009 18:54:43 +0000 (18:54 +0000)]
Allow testing of INFORM and REQUEST messages.
Roy Marples [Sat, 11 Jul 2009 15:14:54 +0000 (15:14 +0000)]
Don't alter the MTU when testing.
Roy Marples [Sat, 11 Jul 2009 15:14:31 +0000 (15:14 +0000)]
Don't print (null) when there is no NAK message.
Roy Marples [Sat, 11 Jul 2009 15:04:13 +0000 (15:04 +0000)]
Promote bytes to size_t for sizeof comparison.
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.
Roy Marples [Wed, 8 Jul 2009 22:18:39 +0000 (22:18 +0000)]
Release dhcpcd-5.0.6
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.
Roy Marples [Wed, 8 Jul 2009 17:05:29 +0000 (17:05 +0000)]
Ensure that ntp.conf exists before removing markers.
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.
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.
Roy Marples [Sat, 4 Jul 2009 00:58:03 +0000 (00:58 +0000)]
Silence more GCC warnings about unused return values.
Roy Marples [Sat, 4 Jul 2009 00:38:55 +0000 (00:38 +0000)]
Document nooption
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.
Roy Marples [Sat, 4 Jul 2009 00:03:01 +0000 (00:03 +0000)]
Log the MTU changes.
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.
Roy Marples [Fri, 3 Jul 2009 19:13:26 +0000 (19:13 +0000)]
Release dhcpcd-5.0.5
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.
Roy Marples [Fri, 3 Jul 2009 09:52:37 +0000 (09:52 +0000)]
Fix detecting the dstaddr at startup.
Roy Marples [Tue, 9 Jun 2009 19:11:33 +0000 (19:11 +0000)]
Style.
Roy Marples [Thu, 14 May 2009 16:19:24 +0000 (16:19 +0000)]
Release dhcpcd-5.0.4
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.
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.
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.
Roy Marples [Mon, 11 May 2009 07:18:10 +0000 (07:18 +0000)]
Release dhcpcd-5.0.3
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.
Roy Marples [Sun, 10 May 2009 23:31:55 +0000 (23:31 +0000)]
I stand corrected - ifa_addr can be NULL 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).
Roy Marples [Sun, 10 May 2009 16:21:57 +0000 (16:21 +0000)]
Release dhcpcd-5.0.2
Roy Marples [Sun, 10 May 2009 16:21:56 +0000 (16:21 +0000)]
Don't forget to remove .gitignore
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 :)
Roy Marples [Sun, 10 May 2009 00:40:13 +0000 (00:40 +0000)]
Document new behaviour re lookup-hostname
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.
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.
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.
Roy Marples [Sun, 3 May 2009 12:33:24 +0000 (12:33 +0000)]
Some distros need additional headers to compile linux/wireless.h
Roy Marples [Sun, 3 May 2009 06:17:07 +0000 (06:17 +0000)]
Release dhcpcd-5.0.1
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
Roy Marples [Fri, 1 May 2009 13:57:45 +0000 (13:57 +0000)]
Add (c) to Copyright
Roy Marples [Thu, 30 Apr 2009 15:30:29 +0000 (15:30 +0000)]
Go back to using git
Roy Marples [Tue, 28 Apr 2009 20:57:12 +0000 (20:57 +0000)]
Release dhcpcd-5.0.0
Roy Marples [Mon, 27 Apr 2009 14:00:39 +0000 (14:00 +0000)]
Fix existing address detection.
Roy Marples [Fri, 24 Apr 2009 16:51:00 +0000 (16:51 +0000)]
Typo
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.
Roy Marples [Fri, 24 Apr 2009 08:33:48 +0000 (08:33 +0000)]
Remove .depend before creating it.
Roy Marples [Mon, 20 Apr 2009 19:40:09 +0000 (19:40 +0000)]
Only allow lo0 through allow
Roy Marples [Mon, 20 Apr 2009 13:47:27 +0000 (13:47 +0000)]
No need for this.
Roy Marples [Mon, 20 Apr 2009 12:34:08 +0000 (12:34 +0000)]
Fix quoting
Roy Marples [Mon, 20 Apr 2009 10:08:12 +0000 (10:08 +0000)]
No need to quote here.
Roy Marples [Mon, 20 Apr 2009 10:02:17 +0000 (10:02 +0000)]
Revert iforder -> interface_order
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.
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'.
Roy Marples [Sun, 19 Apr 2009 19:43:10 +0000 (19:43 +0000)]
Release .18
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.
Roy Marples [Sun, 19 Apr 2009 18:23:47 +0000 (18:23 +0000)]
Release dhcpcd-4.99.17
Roy Marples [Sat, 18 Apr 2009 21:43:23 +0000 (21:43 +0000)]
Add an option to fallback to a profile when DHCP fails.
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
Roy Marples [Fri, 17 Apr 2009 13:42:44 +0000 (13:42 +0000)]
Fix compile on FreeBSD.
Roy Marples [Fri, 17 Apr 2009 13:31:41 +0000 (13:31 +0000)]
Fix compile on NetBSD
Roy Marples [Fri, 17 Apr 2009 13:31:08 +0000 (13:31 +0000)]
We need to move allow/deny back to options
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.
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.
Roy Marples [Wed, 15 Apr 2009 09:01:02 +0000 (09:01 +0000)]
Fix crash at end of arping list
Roy Marples [Sun, 12 Apr 2009 19:16:57 +0000 (19:16 +0000)]
We should ignore DHCP messages without a ServerID, #166.
Roy Marples [Thu, 2 Apr 2009 09:32:54 +0000 (09:32 +0000)]
Release dhcpcd-4.99.16
Roy Marples [Tue, 31 Mar 2009 11:01:25 +0000 (11:01 +0000)]
We need a bit more space for the profile name.
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.
Roy Marples [Mon, 23 Mar 2009 22:02:37 +0000 (22:02 +0000)]
Improve PTP INFORM support some more.
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.
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.
Roy Marples [Mon, 23 Mar 2009 12:56:33 +0000 (12:56 +0000)]
Export interface flags.
Roy Marples [Mon, 23 Mar 2009 11:15:35 +0000 (11:15 +0000)]
Fail the interface when we need a clientid.
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.
Roy Marples [Mon, 23 Mar 2009 07:43:31 +0000 (07:43 +0000)]
We should not work with lo by default.
Roy Marples [Fri, 20 Mar 2009 15:37:19 +0000 (15:37 +0000)]
Release dhcpcd-4.99.15
Roy Marples [Fri, 20 Mar 2009 15:33:31 +0000 (15:33 +0000)]
Clarify reconfigure regarding the configuration file.
Roy Marples [Fri, 20 Mar 2009 15:26:46 +0000 (15:26 +0000)]
Allow dhcpcd to run on loopback interfaces if specified.
Roy Marples [Fri, 20 Mar 2009 10:33:09 +0000 (10:33 +0000)]
We should handle SIGUSR1 correctly.
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.
Roy Marples [Thu, 19 Mar 2009 22:45:57 +0000 (22:45 +0000)]
Move dhcpf.h into dhcp.h were it belongs
Roy Marples [Thu, 19 Mar 2009 22:27:13 +0000 (22:27 +0000)]
Linux can now detect address addition and removal too.
Roy Marples [Thu, 19 Mar 2009 19:17:34 +0000 (19:17 +0000)]
Fix compile on Linux.
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.
Roy Marples [Wed, 18 Mar 2009 21:16:33 +0000 (21:16 +0000)]
Fix compile on DragonFly.
Thanks to Hasso Tepper.
Roy Marples [Wed, 11 Mar 2009 17:57:10 +0000 (17:57 +0000)]
mandoc mandates the presence of .Os
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.
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.
Roy Marples [Thu, 5 Mar 2009 23:13:01 +0000 (23:13 +0000)]
Release dhcpcd-4.99.14
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.
Roy Marples [Thu, 5 Mar 2009 16:31:44 +0000 (16:31 +0000)]
0 is not a valid CIDR
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.
Roy Marples [Tue, 3 Mar 2009 23:41:53 +0000 (23:41 +0000)]
If we reboot an IPv4LL address, start DHCP negotiation right away.
Roy Marples [Mon, 2 Mar 2009 23:24:34 +0000 (23:24 +0000)]
Set the interval to 0 when carrier comes up.
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.
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.
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.
Roy Marples [Thu, 26 Feb 2009 16:16:57 +0000 (16:16 +0000)]
Typo
Roy Marples [Thu, 26 Feb 2009 11:12:23 +0000 (11:12 +0000)]
Remove compile warnings on Sparc64
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.
Roy Marples [Wed, 25 Feb 2009 07:52:47 +0000 (07:52 +0000)]
Gah, remove some debug
Roy Marples [Wed, 25 Feb 2009 07:52:07 +0000 (07:52 +0000)]
Don't timeout if we're daemonised.