]> git.ipfire.org Git - thirdparty/dhcpcd.git/log
thirdparty/dhcpcd.git
14 years agoReport ClientID being used in debug. dhcpcd-5.0 origin/dhcpcd-5.0
Roy Marples [Sat, 26 Sep 2009 08:14:02 +0000 (08:14 +0000)] 
Report ClientID being used in debug.

14 years agoAdd -fno-common to debugging CFLAGS.
Roy Marples [Thu, 24 Sep 2009 21:25:54 +0000 (21:25 +0000)] 
Add -fno-common to debugging CFLAGS.
Declare udp_dhcp_len as extern.
Include common to get _packed definition.

14 years agoRelease dhcpcd-5.0.9
Roy Marples [Tue, 22 Sep 2009 06:14:38 +0000 (06:14 +0000)] 
Release dhcpcd-5.0.9

14 years agoFix various typos and grammatical errors.
Roy Marples [Sat, 19 Sep 2009 14:33:35 +0000 (14:33 +0000)] 
Fix various typos and grammatical errors.
Thanks to Stephen Borrill.

14 years agoDon't null terminate gratuitously when handling quotes.
Roy Marples [Wed, 9 Sep 2009 10:06:23 +0000 (10:06 +0000)] 
Don't null terminate gratuitously when handling quotes.

14 years agoRelease dhcpcd-5.0.8 v5.0.8
Roy Marples [Wed, 2 Sep 2009 20:19:19 +0000 (20:19 +0000)] 
Release dhcpcd-5.0.8

14 years agoRemove escapes in man pages for vendor ,"hello world"
Roy Marples [Wed, 2 Sep 2009 20:16:27 +0000 (20:16 +0000)] 
Remove escapes in man pages for vendor ,"hello world"

14 years agoAllow an un-encapsulated vendor option.
Roy Marples [Wed, 2 Sep 2009 20:16:07 +0000 (20:16 +0000)] 
Allow an un-encapsulated vendor option.

14 years agoWe should not affect other interfaces when handling new interface
Roy Marples [Wed, 2 Sep 2009 20:10:55 +0000 (20:10 +0000)] 
We should not affect other interfaces when handling new interface
notifications.

14 years agoDon't pass "dhcpcd $iface" to discover_interfaces so our
Roy Marples [Wed, 2 Sep 2009 20:10:23 +0000 (20:10 +0000)] 
Don't pass "dhcpcd $iface" to discover_interfaces so our
denyinterfaces config option works for hotplugged interfaces.

14 years agoFix parsing of escape codes.
Roy Marples [Tue, 1 Sep 2009 20:39:31 +0000 (20:39 +0000)] 
Fix parsing of escape codes.

14 years agoWhitespace.
Roy Marples [Wed, 12 Aug 2009 08:40:29 +0000 (08:40 +0000)] 
Whitespace.

14 years agoFix timeout of 0 disabling the timeout.
Roy Marples [Tue, 11 Aug 2009 20:12:46 +0000 (20:12 +0000)] 
Fix timeout of 0 disabling the timeout.

14 years agoFix persistent option.
Roy Marples [Tue, 11 Aug 2009 20:08:02 +0000 (20:08 +0000)] 
Fix persistent option.

14 years agoDon't check family on point to point interfaces as we monitor them.
Roy Marples [Wed, 5 Aug 2009 21:44:26 +0000 (21:44 +0000)] 
Don't check family on point to point interfaces as we monitor them.

14 years agoOnly allow hardware families we know we can work with by default.
Roy Marples [Wed, 5 Aug 2009 21:20:53 +0000 (21:20 +0000)] 
Only allow hardware families we know we can work with by default.
If an interface with a different hardware family is requested by the user then
emit a warning.

14 years agoInclude sys/types.h to compile on NetBSD-4
Roy Marples [Wed, 29 Jul 2009 08:59:52 +0000 (08:59 +0000)] 
Include sys/types.h to compile on NetBSD-4

14 years agoRelease dhcpcd-5.0.7 v5.0.7
Roy Marples [Tue, 28 Jul 2009 20:38:52 +0000 (20:38 +0000)] 
Release dhcpcd-5.0.7

14 years agoFix -f /path/to/config, #176.
Roy Marples [Sun, 26 Jul 2009 15:29:30 +0000 (15:29 +0000)] 
Fix -f /path/to/config, #176.
Also, warn if we cannot open the file.

14 years agoFix usage.
Roy Marples [Sat, 25 Jul 2009 23:38:51 +0000 (23:38 +0000)] 
Fix usage.

14 years ago-e, --env var=value
Roy Marples [Sat, 25 Jul 2009 23:30:08 +0000 (23:30 +0000)] 
-e, --env var=value
now pushes var=value to the environment when dhcpcd-run-hooks is run.
This allows the possibility to set env vars that hook scripts can work off.
A good example of this is 30-hostname so that force_hostname=YES can set
the hostname regardless of the current hostname.

--reconfigure now takes the short option -g.

14 years agoFix section.
Roy Marples [Sat, 25 Jul 2009 23:29:47 +0000 (23:29 +0000)] 
Fix section.

14 years agoDocumentation updates.
Roy Marples [Sat, 25 Jul 2009 17:59:38 +0000 (17:59 +0000)] 
Documentation updates.
A few minor corrections, but mainly updates the expected behaviour for the hostname being sent.

14 years agoTest for fqdn name.
Roy Marples [Tue, 21 Jul 2009 20:01:46 +0000 (20:01 +0000)] 
Test for fqdn name.

14 years agoDon't FAIL the script when testing
Roy Marples [Tue, 21 Jul 2009 20:01:42 +0000 (20:01 +0000)] 
Don't FAIL the script when testing

14 years agoAdd some logging for errors reading/writing the leasefile.
Roy Marples [Sun, 12 Jul 2009 15:10:16 +0000 (15:10 +0000)] 
Add some logging for errors reading/writing the leasefile.

14 years agoWe should remove the leasefile for IPv4LL addresses also on release.
Roy Marples [Sat, 11 Jul 2009 21:19:42 +0000 (21:19 +0000)] 
We should remove the leasefile for IPv4LL addresses also on release.

14 years agoRemove the leasefile on release.
Roy Marples [Sat, 11 Jul 2009 21:02:41 +0000 (21:02 +0000)] 
Remove the leasefile on release.

14 years agoDon't run the script with NAK when testing.
Roy Marples [Sat, 11 Jul 2009 20:00:03 +0000 (20:00 +0000)] 
Don't run the script with NAK when testing.

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

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

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

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

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

14 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

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

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

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

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

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

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

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

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

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

14 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

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

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

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

14 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

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

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

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

14 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

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

14 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)

14 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).

14 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

14 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

14 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 :)

15 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

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

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

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

15 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

15 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

15 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

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

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

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

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

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

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

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

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

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

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

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

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

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

15 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'.

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

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

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

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

15 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

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

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

15 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

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

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

15 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

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

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

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

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

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

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

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

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

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