Commit Graph

1569 Commits

Author SHA1 Message Date
Roy Marples
59800a97c7 Add SixRD support, RFC5969.
Thanks to Jeroen Vreeken.
2011-12-09 19:09:55 +00:00
Roy Marples
cef1585bc4 Store the assigned metric against the route.
This allows us to change the route metric via dhcpcd -n --metric $val $if
2011-11-23 20:30:24 +00:00
Roy Marples
262eb08218 Don't removed interfaces anymore when sending commands to an interface.
To remove an interface, it now has to be done explicty.
2011-11-23 20:29:25 +00:00
Roy Marples
9d3af9192f Bridge interfaces set IFF_LOWER_UP when they have a valid
hardware address. To trigger a valid hardware address pickup
we need to pretend that that don't exist until they have
IFF_LOWER_UP set.
2011-11-23 13:49:44 +00:00
Roy Marples
75092c2373 Optimize bitwise useage a little. 2011-11-23 11:59:53 +00:00
Roy Marples
e896947f2c Fix bitwise logic 2011-11-23 10:53:53 +00:00
Roy Marples
5f3b570cfd Fix carrier handling on BSD 2011-11-23 09:57:34 +00:00
Roy Marples
126abb55cf Respect each kernel message on carrier change instead of checking carrier
after receiving the message as it's possible for the kernel to react faster
than dhcpcd.
2011-11-23 09:03:24 +00:00
Roy Marples
499225e43f Change default reboot timeout to 5 seconds.
When rebooting and we haven't daemonised, reduce the discover timeout
to allow for fallback or IPv4LL addresses.
2011-11-22 23:44:32 +00:00
Roy Marples
e51462158e Correctly restart ntp on Debian. 2011-06-14 08:37:06 +00:00
Roy Marples
e015c2f96c Detect ntp.conf exists before copying.
Fixes Debian #630420
2011-06-14 06:17:40 +00:00
Roy Marples
ac33483a6d Remove unknown variable 2011-06-03 20:11:53 +00:00
Roy Marples
f86a2da562 Use printf correctly 2011-06-03 20:08:28 +00:00
Roy Marples
5cbb26a03b Shell portability fixes 2011-06-01 06:28:41 +00:00
Roy Marples
d5234a51d9 Fix compile on some sytems, fixes #223. 2011-05-27 16:30:04 +00:00
Roy Marples
8d8555b6a6 Fix Arch Linux SERVICESTATUS override.
Thanks to Clemens Fischer.
2011-05-22 06:19:33 +00:00
Roy Marples
99b6985c33 Typo 2011-04-09 18:45:55 +00:00
Roy Marples
f0ffbd32f8 Release dhcpcd-5.2.12 2011-04-06 08:25:51 +00:00
Roy Marples
66fedad662 Escape | and & characters when passing to the shell.
Add functions for hooks to check validity of domain names and paths.
Ensure we set a valid hostname, DNS domain and NIS domain.
Document the need for input validation in dhcpcd-run-hooks(8).

Fixes CVE-2011-996.
Based on patches to dhcpcd-3 by Marius Tomaschewski <mt@suse.de>.
2011-04-06 08:16:32 +00:00
Roy Marples
8d796699f0 When operating on one interface only, respect the configured timeout. 2011-03-29 10:36:17 +00:00
Roy Marples
ba2c29b403 When requesting an address, note this in the broadcasting message. 2011-03-25 20:19:03 +00:00
Roy Marples
1876157a45 Update some copyrights. 2011-03-24 18:08:16 +00:00
Roy Marples
19c67b58c1 Not needed 2011-03-24 18:04:06 +00:00
Roy Marples
37eea8615a When the dhcp server is running in dom0 and the client in domU,
packets (that are not explicitely checksumed in the userspace)
sent to the another domain have partial UDP checksums (offload)
only, but are marked as such. This patch reads and checks the
mark to decide whether to verify the UDP checksum or not.
Based on the ISC dhcp patch by David Cantrell.
Thanks to Marius Tomaschewski.
2011-03-24 17:59:20 +00:00
Roy Marples
33b768dae8 When the leased address changes on the interface but existing routes
remain the same, we need to change the routes so that the source address
changes as well.
2011-03-24 17:08:31 +00:00
Roy Marples
0664205f8d Validate the IP address offered, as some faulty DHCP servers like to
give is an invalid one.
2011-03-24 01:55:06 +00:00
Roy Marples
bbaa324edc Make logger calls resemble dhcpcd calls to syslog(3). 2011-03-22 12:49:06 +00:00
Roy Marples
776961cf83 Parse subnet_mask= static option instead of deriving from ip_address= 2011-03-22 12:18:47 +00:00
Roy Marples
a7cf2dbcc0 Exclude interface specific values when dumping the lease. 2011-03-11 12:25:01 +00:00
Roy Marples
6e064e5728 Fix compile issue on RedHat 9 2011-03-08 20:38:26 +00:00
Roy Marples
3246cfaf3c Use $ifmetric instead of $metric. 2011-02-07 17:40:15 +00:00
Roy Marples
815f80c898 actual -> actually 2011-02-04 15:31:50 +00:00
Roy Marples
eb99814091 2011 and new version. 2011-02-04 14:56:03 +00:00
Roy Marples
b92c960fe0 Use RT_ROUNDUP and friends so that we work with NetBSD 64-bit routing. 2011-02-04 14:43:51 +00:00
Roy Marples
bffdfbcece Welcome to 2011! 2011-01-03 11:42:43 +00:00
Roy Marples
006894bf46 Update documentation about --request. 2011-01-03 11:41:40 +00:00
Roy Marples
6a248dab01 Release dhcpcd-5.2.10 2011-01-03 10:54:58 +00:00
Roy Marples
5b39d8f59c Fix -r, --request address option 2010-12-23 22:18:56 +00:00
Roy Marples
64bc759d08 Compile on Mac OSX 10.4.
Thanks to David Brownlee.
2010-12-06 15:01:56 +00:00
Roy Marples
712e1d1bed No need to restart twice. 2010-11-19 10:17:14 +00:00
Roy Marples
41255814df Release dhcpcd-5.2.9 2010-11-18 19:12:55 +00:00
Roy Marples
bc760dc8f4 Improve comments. 2010-11-18 19:12:22 +00:00
Roy Marples
699fee4691 Fix ypbind and remove un-needed quoting. 2010-11-18 19:09:02 +00:00
Roy Marples
9f0a88cbdb Document RELEASE reason, fixes #205. 2010-11-18 09:40:50 +00:00
Roy Marples
00de745ada No point in building handle_hwaddr if we don't have RTM_CHGADDR 2010-11-12 20:39:29 +00:00
Roy Marples
8349d72adf Support RTM_CHGADDR in NetBSD-6 for detecting link layer address changes. 2010-11-12 16:33:45 +00:00
Roy Marples
6b5542f174 Fix working out the inform address if none given. 2010-11-11 21:07:50 +00:00
Roy Marples
d8c9c2b501 Add the hwaddr to be used to debugging. 2010-11-09 00:35:40 +00:00
Roy Marples
f1422e8cd2 Don't configure the interface twice. 2010-11-09 00:34:38 +00:00
Roy Marples
65aaa72c88 Don't redefine _GNU_SOURCE. 2010-11-05 08:13:07 +00:00