Commit Graph

2345 Commits

Author SHA1 Message Date
Roy Marples
1eb71ae8e1 As we do now listen to the udp socket directly, delete the fd from eloop when done. 2014-03-02 13:01:34 +00:00
Roy Marples
ef3e8195fe Work better with autoconf build host 2014-03-02 08:36:19 +00:00
Roy Marples
91bf55879b Correctly delete IPv6 addresses from eloop timeouts 2014-03-01 17:59:33 +00:00
Roy Marples
7db3fbb111 Release dhcpcd-6.3.1 2014-03-01 10:57:45 +00:00
Roy Marples
5a1aace208 Fix potential memory loss. 2014-02-28 20:37:06 +00:00
Roy Marples
d90a834d88 If CC is not defined, default it to cc 2014-02-28 20:32:34 +00:00
Roy Marples
0f9e1ee7f8 Don't set CC, always let the environment choose 2014-02-28 14:53:26 +00:00
Roy Marples
7a02120fc8 Tidy some INET only and INET6 only warnings. 2014-02-28 11:02:32 +00:00
Roy Marples
831c7446c0 Fix some silly warnings. 2014-02-28 10:38:29 +00:00
Roy Marples
e0f4eba913 Fix more clang analyzer warnings. i386/NetBSD and amd64/Linux are now clear. 2014-02-28 10:34:05 +00:00
Roy Marples
d7cfde68f0 Fix more clang analyzer errors 2014-02-27 21:11:43 +00:00
Roy Marples
64a86a137f Remove dead line 2014-02-27 20:04:33 +00:00
Roy Marples
8fc52ced6f Fix all errors reported by clang static analyser. 2014-02-27 20:00:39 +00:00
Roy Marples
04a1918940 Fix some possible pointer checks. 2014-02-27 11:57:45 +00:00
Roy Marples
3e55453571 Typo 2014-02-27 10:59:04 +00:00
Roy Marples
2e0740acd3 Report interface carrier state to the dhcpcd-run-hooks as ifcarrier.
If ifcarrier is up, don't start wpa_supplicant.
2014-02-27 10:52:11 +00:00
Roy Marples
1989cad379 Don't use a variable length buffer 2014-02-25 14:11:35 +00:00
Roy Marples
db67f1e285 Release dhcpcd-6.3.0 2014-02-25 11:12:35 +00:00
Roy Marples
b6ee230e94 Document control sockets and DHCPv6 lease file. 2014-02-25 11:10:19 +00:00
Roy Marples
929895ed29 Respect initial commandline arguments when rebooting via a signal. 2014-02-25 10:24:01 +00:00
Roy Marples
658bfd5e0c Fix arping moving to the next test if we find the IP address
but do not have a profile for it.
Thanks to David McGurty for the analysis.
2014-02-24 14:40:29 +00:00
Roy Marples
6618e7ea8b Add a USE_SIGNALS define.
If we're not using signals then we also create a control socket in the
non MASTER case. We then use this to communicate instead of signals.
2014-02-21 16:10:55 +00:00
Roy Marples
11a06bb9b1 If there are no file actions or dangerous attributes then use
vfork(2) instead of fork(2) in our compat posix_spawn(3) function.
2014-02-21 15:51:42 +00:00
Roy Marples
e4197f1c3a When removing an interface we need to remove it's routes even if
we're not deleting them.
2014-02-21 14:48:58 +00:00
Roy Marples
4242c5f2b7 If the prefix is not on link, nor autoconf and we don't know about it
then just continue instead of logging a bogus error.
Thanks to David Purser.
2014-02-14 09:13:19 +00:00
Roy Marples
0d033d1791 Fix FreeBSD compile warnings. 2014-02-13 13:23:43 +00:00
Roy Marples
e0a4adaf6a Open right socket. 2014-02-13 13:14:58 +00:00
Roy Marples
bb0f6a5e58 Log why we cannot delete a route 2014-02-13 13:07:44 +00:00
Roy Marples
e8c8e9b9b2 Work without SOCK_CLOEXEC again. 2014-02-13 12:58:58 +00:00
Roy Marples
298c01136e Fix compile without INET or INET6. 2014-02-13 08:15:05 +00:00
Roy Marples
2433e54dc8 Ensure we close the contol socket if we fail to connect.
Don't crash when closing IPv6ND or DHCPv6 when not the IPv6 protocol is
not started.
2014-02-12 20:51:57 +00:00
Roy Marples
d733d75a89 No need to malloc pidfile. 2014-02-12 11:55:43 +00:00
Roy Marples
203640a63f Replace PATH_MAX with something more precise. 2014-02-12 11:27:25 +00:00
Roy Marples
1681b12609 PATH_MAX is too much, lets be more precise 2014-02-12 11:16:22 +00:00
Roy Marples
e9882fb08a Ensure we remove the socket from the eloop event queue before closing it. 2014-02-12 10:29:06 +00:00
Roy Marples
60dad20dbd Remove needless malloc 2014-02-12 10:27:29 +00:00
Roy Marples
63d4472589 Fix compile on BSD 2014-02-12 09:25:58 +00:00
Roy Marples
4eb7b4896f Move all global variables into contexts, with a small exception for
signal handling.
This allows dhcpcd to work better in a threaded environment such as rtems.
2014-02-12 00:39:46 +00:00
Roy Marples
06e4195f57 Fix a compile warning 2014-02-08 10:41:29 +00:00
Roy Marples
59a555cd3d Fix writing the pidfile and cleaning up a bit better. 2014-02-08 10:36:38 +00:00
Roy Marples
d074b2494f Move vendor out of global scope. 2014-02-08 00:29:02 +00:00
Roy Marples
c1b54b57cb get_line is now static inside of if-options.c and is a simple wrapper around getline(3). 2014-02-07 21:48:24 +00:00
Roy Marples
08e579296d Use fgets instead 2014-02-07 21:25:26 +00:00
Roy Marples
081360973e Changed in 2014 2014-02-07 21:10:46 +00:00
Roy Marples
f47e24baa7 Use fscand instead of get_line 2014-02-07 21:04:37 +00:00
Roy Marples
71ddb604c5 Ensure fscanf does not overflow. 2014-02-07 21:04:09 +00:00
Roy Marples
f2a033f589 Fix compile 2014-02-07 20:33:43 +00:00
Roy Marples
faaa132c33 Use fscanf instead of get_line when parsing /proc/cpuinfo 2014-02-07 20:31:29 +00:00
Roy Marples
cbcba92fa6 Remove some dead uses of get_monotonic 2014-02-07 19:41:35 +00:00
Roy Marples
b2e9d82c99 Move DUID_LEN to a better header. 2014-02-07 19:40:20 +00:00