]> git.ipfire.org Git - thirdparty/dhcpcd.git/log
thirdparty/dhcpcd.git
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.

16 years agoOptimize allocation a little.
Roy Marples [Wed, 25 Feb 2009 07:51:25 +0000 (07:51 +0000)] 
Optimize allocation a little.

16 years agoWhy bother with a one off array when we can use our eloop?
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?

16 years agoClose sockets better and just run the script when we're not touching the interface.
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.

16 years agoRemove debug.
Roy Marples [Tue, 24 Feb 2009 15:39:02 +0000 (15:39 +0000)] 
Remove debug.

16 years agoFix starting all ifaces.
Roy Marples [Tue, 24 Feb 2009 13:26:28 +0000 (13:26 +0000)] 
Fix starting all ifaces.

16 years agoFinally fix compile on vanilla kernel headers.
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 ....

16 years agoFix debug working in dhcpcd.conf
Roy Marples [Mon, 23 Feb 2009 23:52:21 +0000 (23:52 +0000)] 
Fix debug working in dhcpcd.conf

16 years agoWe need to include linux/wireless.h as wireless.h belongs to wireless-tools
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

16 years agoTry a new tactic to compile with old broken linux kernel headers.
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.

16 years agoIf we fail to send a packet we should still continue our code path.
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.

16 years agoWe should expire instead of stop as we will start again.
Roy Marples [Fri, 20 Feb 2009 07:29:13 +0000 (07:29 +0000)] 
We should expire instead of stop as we will start again.

16 years agoIf we fail to send a packet start over.
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.

16 years agoOnly auto background with no interfaces.
Roy Marples [Wed, 18 Feb 2009 08:07:10 +0000 (08:07 +0000)] 
Only auto background with no interfaces.

16 years agoIf running as a controlling daemon with link management, background earlier.
Roy Marples [Tue, 17 Feb 2009 23:02:09 +0000 (23:02 +0000)] 
If running as a controlling daemon with link management, background earlier.

16 years agoAllow socket to report location of the configuration file.
Roy Marples [Fri, 13 Feb 2009 15:39:34 +0000 (15:39 +0000)] 
Allow socket to report location of the configuration file.

16 years agoFix up some more formatting.
Roy Marples [Thu, 12 Feb 2009 10:07:30 +0000 (10:07 +0000)] 
Fix up some more formatting.

16 years agoMore style updates.
Roy Marples [Thu, 12 Feb 2009 01:09:37 +0000 (01:09 +0000)] 
More style updates.

16 years agoEnforce NetBSD KNF style more
Roy Marples [Wed, 11 Feb 2009 17:56:22 +0000 (17:56 +0000)] 
Enforce NetBSD KNF style more

16 years agoLog our control commands.
Roy Marples [Thu, 5 Feb 2009 21:06:57 +0000 (21:06 +0000)] 
Log our control commands.

16 years agoEnsure the buffer is NULL terminated.
Roy Marples [Thu, 5 Feb 2009 21:06:43 +0000 (21:06 +0000)] 
Ensure the buffer is NULL terminated.

16 years agoUse Aq properly.
Roy Marples [Thu, 5 Feb 2009 01:58:17 +0000 (01:58 +0000)] 
Use Aq properly.

16 years agoRelease dhcpcd-4.99.13
Roy Marples [Wed, 4 Feb 2009 20:54:55 +0000 (20:54 +0000)] 
Release dhcpcd-4.99.13

16 years agoIPV4LL addresses are not BOOTP.
Roy Marples [Sun, 1 Feb 2009 20:22:08 +0000 (20:22 +0000)] 
IPV4LL addresses are not BOOTP.

16 years agoRFC2131 implies that we should only ARP check after an offer.
Roy Marples [Sun, 1 Feb 2009 17:13:19 +0000 (17:13 +0000)] 
RFC2131 implies that we should only ARP check after an offer.

16 years agoWe should zero the entire message struct so any options don't overflow into unallocat...
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.

16 years agoCopyright
Roy Marples [Thu, 29 Jan 2009 13:56:43 +0000 (13:56 +0000)] 
Copyright

16 years agoJust terminate the DHCP message if not terminated. DHO_PAD could be valid data.
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.

16 years agoShorten error msg.
Roy Marples [Thu, 29 Jan 2009 13:18:57 +0000 (13:18 +0000)] 
Shorten error msg.

16 years agoClean up compiler warnings from overly pedantic checking.
Roy Marples [Thu, 29 Jan 2009 13:01:29 +0000 (13:01 +0000)] 
Clean up compiler warnings from overly pedantic checking.

16 years agodhcpcd should not send hostname by default.
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.

16 years agoWe updated these files this year.
Roy Marples [Wed, 28 Jan 2009 10:29:00 +0000 (10:29 +0000)] 
We updated these files this year.

16 years agoWe should state which interface we're removing the route from correctly.
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.

16 years agoFix compile on BSD.
Roy Marples [Tue, 27 Jan 2009 19:40:05 +0000 (19:40 +0000)] 
Fix compile on BSD.

16 years agoAdd route removal detection to Linux.
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.

16 years agoWe need to ensure that manual route deletions are deleted from our internal routing...
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.

16 years agoWe should include sys/uio.h for writev
Roy Marples [Mon, 26 Jan 2009 15:15:28 +0000 (15:15 +0000)] 
We should include sys/uio.h for writev

16 years agoRelease 4.99.12
Roy Marples [Mon, 26 Jan 2009 13:14:31 +0000 (13:14 +0000)] 
Release 4.99.12

16 years agowhile -> for
Roy Marples [Mon, 26 Jan 2009 12:56:38 +0000 (12:56 +0000)] 
while -> for

16 years agoOptimize code around NULL terminated hostname.
Roy Marples [Mon, 26 Jan 2009 12:49:12 +0000 (12:49 +0000)] 
Optimize code around NULL terminated hostname.

16 years agoTerminate hostname
Roy Marples [Mon, 26 Jan 2009 12:47:38 +0000 (12:47 +0000)] 
Terminate hostname

16 years agoStop storing length in hostname.
Roy Marples [Mon, 26 Jan 2009 12:23:57 +0000 (12:23 +0000)] 
Stop storing length in hostname.

16 years agoWe should only send short hostnames as qualfied ones confuse ISC DHCP server. If...
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.

16 years agoEnsure that we have enough buffer for gethostname and terminate it correctly.
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.

16 years agoFix compile with crappy linux headers.
Roy Marples [Fri, 23 Jan 2009 23:36:18 +0000 (23:36 +0000)] 
Fix compile with crappy linux headers.

16 years agoRelease 4.99.11
Roy Marples [Fri, 23 Jan 2009 01:31:00 +0000 (01:31 +0000)] 
Release 4.99.11

16 years agoFix a valgrid issue and don't call getifssid unless we are wireless.
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.

16 years agoReport ssid for carrier events correctly.
Roy Marples [Fri, 23 Jan 2009 01:19:25 +0000 (01:19 +0000)] 
Report ssid for carrier events correctly.

16 years agonohook 20-resolv.conf should work now.
Roy Marples [Thu, 22 Jan 2009 23:53:15 +0000 (23:53 +0000)] 
nohook 20-resolv.conf should work now.

16 years agossid should be old_ and new_.
Roy Marples [Thu, 22 Jan 2009 23:52:20 +0000 (23:52 +0000)] 
ssid should be old_ and new_.

16 years agoReport the fact we're wireless and our ssid
Roy Marples [Thu, 22 Jan 2009 22:52:41 +0000 (22:52 +0000)] 
Report the fact we're wireless and our ssid

16 years agoRelease 4.99.10
Roy Marples [Thu, 22 Jan 2009 14:21:55 +0000 (14:21 +0000)] 
Release 4.99.10

16 years agoThe lack of a rebind time should not force a default renewal time, #156.
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.

16 years agoHandle stopping and releasing a little better.
Roy Marples [Tue, 20 Jan 2009 16:33:11 +0000 (16:33 +0000)] 
Handle stopping and releasing a little better.

16 years agoWe need to handle SIGPIPE so we don't abort.
Roy Marples [Tue, 20 Jan 2009 16:32:42 +0000 (16:32 +0000)] 
We need to handle SIGPIPE so we don't abort.