]>
git.ipfire.org Git - thirdparty/dhcpcd.git/log
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.
Roy Marples [Wed, 25 Feb 2009 07:51:25 +0000 (07:51 +0000)]
Optimize allocation a little.
Roy Marples [Tue, 24 Feb 2009 19:17:19 +0000 (19:17 +0000)]
Why bother with a one off array when we can use our eloop?
Roy Marples [Tue, 24 Feb 2009 15:41:15 +0000 (15:41 +0000)]
Close sockets better and just run the script when we're not touching the interface.
Roy Marples [Tue, 24 Feb 2009 15:39:02 +0000 (15:39 +0000)]
Remove debug.
Roy Marples [Tue, 24 Feb 2009 13:26:28 +0000 (13:26 +0000)]
Fix starting all ifaces.
Roy Marples [Tue, 24 Feb 2009 12:38:02 +0000 (12:38 +0000)]
Finally fix compile on vanilla kernel headers.
This is done by moving the wireless calls to a separate file that
just includes linux/wireless.h.
This is needed because linux/wireless.h includes linux/if.h which may
or may not have been fixed to co-exist with net/if.h.
Maybe one day this won't be needed ....
Roy Marples [Mon, 23 Feb 2009 23:52:21 +0000 (23:52 +0000)]
Fix debug working in dhcpcd.conf
Roy Marples [Mon, 23 Feb 2009 19:20:14 +0000 (19:20 +0000)]
We need to include linux/wireless.h as wireless.h belongs to wireless-tools
Roy Marples [Mon, 23 Feb 2009 13:40:24 +0000 (13:40 +0000)]
Try a new tactic to compile with old broken linux kernel headers.
Roy Marples [Fri, 20 Feb 2009 08:33:03 +0000 (08:33 +0000)]
If we fail to send a packet we should still continue our code path.
Existing failure timers should change it if needed.
Roy Marples [Fri, 20 Feb 2009 07:29:13 +0000 (07:29 +0000)]
We should expire instead of stop as we will start again.
Roy Marples [Thu, 19 Feb 2009 21:15:25 +0000 (21:15 +0000)]
If we fail to send a packet start over.
We should have our own array of interfaces to start, as
interface order could change or be removed during start_interface.
Roy Marples [Wed, 18 Feb 2009 08:07:10 +0000 (08:07 +0000)]
Only auto background with no interfaces.
Roy Marples [Tue, 17 Feb 2009 23:02:09 +0000 (23:02 +0000)]
If running as a controlling daemon with link management, background earlier.
Roy Marples [Fri, 13 Feb 2009 15:39:34 +0000 (15:39 +0000)]
Allow socket to report location of the configuration file.
Roy Marples [Thu, 12 Feb 2009 10:07:30 +0000 (10:07 +0000)]
Fix up some more formatting.
Roy Marples [Thu, 12 Feb 2009 01:09:37 +0000 (01:09 +0000)]
More style updates.
Roy Marples [Wed, 11 Feb 2009 17:56:22 +0000 (17:56 +0000)]
Enforce NetBSD KNF style more
Roy Marples [Thu, 5 Feb 2009 21:06:57 +0000 (21:06 +0000)]
Log our control commands.
Roy Marples [Thu, 5 Feb 2009 21:06:43 +0000 (21:06 +0000)]
Ensure the buffer is NULL terminated.
Roy Marples [Thu, 5 Feb 2009 01:58:17 +0000 (01:58 +0000)]
Use Aq properly.
Roy Marples [Wed, 4 Feb 2009 20:54:55 +0000 (20:54 +0000)]
Release dhcpcd-4.99.13
Roy Marples [Sun, 1 Feb 2009 20:22:08 +0000 (20:22 +0000)]
IPV4LL addresses are not BOOTP.
Roy Marples [Sun, 1 Feb 2009 17:13:19 +0000 (17:13 +0000)]
RFC2131 implies that we should only ARP check after an offer.
Roy Marples [Fri, 30 Jan 2009 20:18:35 +0000 (20:18 +0000)]
We should zero the entire message struct so any options don't overflow into unallocated memory when evaluating them.
Roy Marples [Thu, 29 Jan 2009 13:56:43 +0000 (13:56 +0000)]
Copyright
Roy Marples [Thu, 29 Jan 2009 13:56:23 +0000 (13:56 +0000)]
Just terminate the DHCP message if not terminated. DHO_PAD could be valid data.
Roy Marples [Thu, 29 Jan 2009 13:18:57 +0000 (13:18 +0000)]
Shorten error msg.
Roy Marples [Thu, 29 Jan 2009 13:01:29 +0000 (13:01 +0000)]
Clean up compiler warnings from overly pedantic checking.
Roy Marples [Thu, 29 Jan 2009 11:21:16 +0000 (11:21 +0000)]
dhcpcd should not send hostname by default.
However, the default config file we ship enables the sending of the hostname
by default.
This makes things more explicit I think, and also allows the FQDN to be sent
but not the hostname if someone ever needs this.
Roy Marples [Wed, 28 Jan 2009 10:29:00 +0000 (10:29 +0000)]
We updated these files this year.
Roy Marples [Tue, 27 Jan 2009 20:57:27 +0000 (20:57 +0000)]
We should state which interface we're removing the route from correctly.
Roy Marples [Tue, 27 Jan 2009 19:40:05 +0000 (19:40 +0000)]
Fix compile on BSD.
Roy Marples [Tue, 27 Jan 2009 18:09:02 +0000 (18:09 +0000)]
Add route removal detection to Linux.
This involved a rejig of the socket code so we can detect
if we removed the route or not.
Roy Marples [Mon, 26 Jan 2009 22:32:42 +0000 (22:32 +0000)]
We need to ensure that manual route deletions are deleted from our internal routing table also. Partial fix for #159.
Roy Marples [Mon, 26 Jan 2009 15:15:28 +0000 (15:15 +0000)]
We should include sys/uio.h for writev
Roy Marples [Mon, 26 Jan 2009 13:14:31 +0000 (13:14 +0000)]
Release 4.99.12
Roy Marples [Mon, 26 Jan 2009 12:56:38 +0000 (12:56 +0000)]
while -> for
Roy Marples [Mon, 26 Jan 2009 12:49:12 +0000 (12:49 +0000)]
Optimize code around NULL terminated hostname.
Roy Marples [Mon, 26 Jan 2009 12:47:38 +0000 (12:47 +0000)]
Terminate hostname
Roy Marples [Mon, 26 Jan 2009 12:23:57 +0000 (12:23 +0000)]
Stop storing length in hostname.
Roy Marples [Mon, 26 Jan 2009 12:00:01 +0000 (12:00 +0000)]
We should only send short hostnames as qualfied ones confuse ISC DHCP server. If a FQDN is required, then use that option instead of the hostname.
Roy Marples [Mon, 26 Jan 2009 09:11:38 +0000 (09:11 +0000)]
Ensure that we have enough buffer for gethostname and terminate it correctly.
Roy Marples [Fri, 23 Jan 2009 23:36:18 +0000 (23:36 +0000)]
Fix compile with crappy linux headers.
Roy Marples [Fri, 23 Jan 2009 01:31:00 +0000 (01:31 +0000)]
Release 4.99.11
Roy Marples [Fri, 23 Jan 2009 01:20:02 +0000 (01:20 +0000)]
Fix a valgrid issue and don't call getifssid unless we are wireless.
Roy Marples [Fri, 23 Jan 2009 01:19:25 +0000 (01:19 +0000)]
Report ssid for carrier events correctly.
Roy Marples [Thu, 22 Jan 2009 23:53:15 +0000 (23:53 +0000)]
nohook 20-resolv.conf should work now.
Roy Marples [Thu, 22 Jan 2009 23:52:20 +0000 (23:52 +0000)]
ssid should be old_ and new_.
Roy Marples [Thu, 22 Jan 2009 22:52:41 +0000 (22:52 +0000)]
Report the fact we're wireless and our ssid
Roy Marples [Thu, 22 Jan 2009 14:21:55 +0000 (14:21 +0000)]
Release 4.99.10
Roy Marples [Thu, 22 Jan 2009 14:16:29 +0000 (14:16 +0000)]
The lack of a rebind time should not force a default renewal time, #156.
Roy Marples [Tue, 20 Jan 2009 16:33:11 +0000 (16:33 +0000)]
Handle stopping and releasing a little better.
Roy Marples [Tue, 20 Jan 2009 16:32:42 +0000 (16:32 +0000)]
We need to handle SIGPIPE so we don't abort.