Roy Marples
1031ae2305
Fix valid length checks for single ipv4 addresses
2012-04-21 11:59:24 +00:00
Roy Marples
058a6a5893
Remove a needless set and fix length check of an array of IPv4 addresss.
2012-04-04 23:09:48 +00:00
Roy Marples
248cf0d859
Remove unused variables
2012-04-01 07:38:52 +00:00
Roy Marples
c1412cc52a
If the CSR decode fails to return any routes, then use the older DHCP
...
routing options if available.
2012-03-20 14:11:41 +00:00
Roy Marples
cbcc6643e1
Fix an issue where we would only use a CSR if we had not warned about using it.
2012-03-20 13:59:41 +00:00
Roy Marples
61dd6cf9ab
Add an option to control dhcpcd forking or not if the RA does not contain
...
a RDNSS option.
This involves changing our options to an unsigned long long so we can use
more than 32 bits.
2012-03-07 10:06:45 +00:00
Roy Marples
7ae411d942
Fix more copyright
2012-01-31 09:51:12 +00:00
Roy Marples
e0c4d1587d
Allow dhcpcd to run on a read-only filesystem.
...
You'll get a lot of errors, but you will get a working address and routing.
2012-01-29 17:28:05 +00:00
Roy Marples
91cd732493
Add an implementation of an IPv6 Router Solicitor as specified in
...
RFC6016 with regards to RDNSS and DNSSL.
2011-12-15 02:35:47 +00:00
Roy Marples
1011354f32
Fix a potential error if we need to alter the sip server string.
2011-12-14 09:57:56 +00:00
Roy Marples
c3fbbde164
Fix SIP server support, RFC 3361 which has been broken since dhcpcd-3.3.
...
Thanks to Egil Hjelmeland.
2011-12-09 19:40:05 +00:00
Roy Marples
59800a97c7
Add SixRD support, RFC5969.
...
Thanks to Jeroen Vreeken.
2011-12-09 19:09:55 +00:00
Roy Marples
75092c2373
Optimize bitwise useage a little.
2011-11-23 11:59:53 +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
5b39d8f59c
Fix -r, --request address option
2010-12-23 22:18:56 +00:00
Roy Marples
dc60cba4ed
-U, --dumplease now dumps the lease for the specified interface
...
dhcpcd does not have to be running for this to work
2010-08-24 09:16:07 +00:00
Roy Marples
2197cff1ae
We should not set a maximum message size bigger than what we can
...
actually handle.
2010-03-06 17:46:01 +00:00
Roy Marples
42bee7f185
Fix a crash when server sends more than one of the same option.
...
Thanks to Xia Weizhong.
2010-02-25 09:22:30 +00:00
Roy Marples
1cc00d8a7c
Allow IPv4LL address range to be configured by DHCP.
...
We now check the message for a DHCP cookie instead of the address
assigned to test for local link.
2010-02-17 22:23:17 +00:00
Roy Marples
900b3da40e
-J, --broadcast now sets the broadcast flag in DHCP messages.
2010-01-28 20:12:54 +00:00
Roy Marples
87b266d2d4
Spelling corrections.
...
Thanks to Soren Jacobsen.
2010-01-24 21:01:59 +00:00
Roy Marples
e90c590913
Only warn about CSR when binding.
2009-12-23 07:18:22 +00:00
Roy Marples
9ca488bb6d
Small code optimisation.
2009-11-20 14:35:36 +00:00
Roy Marples
446564046d
Style.
2009-10-25 23:21:21 +00:00
Roy Marples
ae92a9b5bb
Don't always request classless_static_routes, instead add it to dhcpcd.conf
...
as a default option. Add a debug message when adding classless_static_routes.
This is because some DHCP servers have this option badly setup and it could
not be otherwise disabled.
2009-10-17 15:31:39 +00:00
Roy Marples
1e11fce587
Add some logging for errors reading/writing the leasefile.
2009-07-12 15:10:16 +00:00
Roy Marples
9578248878
Change get_option_addr to accept struct in_addr * instead of uint32_t *
...
to fix an alignment issue on SGI MIPS.
2009-07-08 17:01:38 +00:00
Roy Marples
601fb3d500
Add (c) to Copyright
2009-05-01 13:57:45 +00:00
Roy Marples
075c987282
Typo
2009-04-24 16:51:00 +00:00
Roy Marples
79262fbb6d
dhcpcd -V now shows all variables we set, even without an option.
2009-04-24 16:48:35 +00:00
Roy Marples
4a4bcf7cf5
Improve PTP INFORM support some more.
2009-03-23 22:02:37 +00:00
Roy Marples
263e8fdd42
Move dhcpf.h into dhcp.h were it belongs
2009-03-19 22:45:57 +00:00
Roy Marples
1abffd5ba5
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 .
2009-03-19 17:52:12 +00:00
Roy Marples
7dcb2e0b72
Gah, remove some debug
2009-02-25 07:52:47 +00:00
Roy Marples
e59105abf0
Don't timeout if we're daemonised.
2009-02-25 07:52:07 +00:00
Roy Marples
eab2229cfa
Enforce NetBSD KNF style more
2009-02-11 17:56:22 +00:00
Roy Marples
ed913a5977
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.
2009-01-29 11:21:16 +00:00
Roy Marples
39f5c665ce
while -> for
2009-01-26 12:56:38 +00:00
Roy Marples
cb69faa640
Optimize code around NULL terminated hostname.
2009-01-26 12:49:12 +00:00
Roy Marples
9d9af32de8
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.
2009-01-26 12:00:01 +00:00
Roy Marples
7816f16c9f
Copyright
2009-01-12 16:31:13 +00:00
Roy Marples
6de60e015b
set broadcast_address correctly.
2009-01-12 16:30:26 +00:00
Roy Marples
9c30ffcfd6
Re work the route management so we deal with a changed route table in a renewal/rebind correctly.
2008-12-16 13:28:42 +00:00
Roy Marples
1200b7e965
CSR should come before other route options according to RFC 3442.
2008-11-25 12:57:48 +00:00
Roy Marples
a2328d2ddd
BOOTP fixes. Also, we don't write a BOOTP lease file.
2008-11-20 09:57:46 +00:00
Roy Marples
299662da4f
We are now a BOOTP client also :)
2008-11-19 15:48:18 +00:00
Roy Marples
ea7071e5c9
If no lease time is supplied, assume it's infinite.
2008-11-19 14:58:17 +00:00
Roy Marples
10bcbb5d6b
When declining a DHCP lease and we have an IPv4LL one, don't re announce our IPv4LL lease.
2008-11-14 09:39:09 +00:00
Roy Marples
4c240a4a92
Trim trailing NULLs from string options, #120 .
2008-11-04 10:04:25 +00:00
Roy Marples
b85bcbf82d
~0U is better than just ~0 for this.
2008-10-29 08:13:15 +00:00