Roy Marples
|
91a44b91b0
|
Add a static directive that allows the configuration of variables, which
supercedes any DHCP configured variables.
If ip_address is configured then we don't bother with a DHCP
transaction.
|
2009-01-01 14:23:36 +00:00 |
|
Roy Marples
|
5f14fcaa61
|
send_request is no longer a public interface.
|
2008-12-18 10:25:52 +00:00 |
|
Roy Marples
|
8e06ab4a53
|
Add the DHS_PROBE state so that we ignore subsequent offers
whilst probing.
|
2008-12-18 10:23:40 +00:00 |
|
Roy Marples
|
95a12dde2a
|
Probably better to exit here.
|
2008-11-24 11:21:31 +00:00 |
|
Roy Marples
|
999b21a590
|
Plug a leak when rebinding interfaces via the control socket.
|
2008-11-20 10:50:46 +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
|
5f1643f584
|
Fix working with linux aliased interfaces again.
|
2008-11-17 22:50:37 +00:00 |
|
Roy Marples
|
c989b02361
|
We no longer send a ClientID by default. This is so we now mirror the kernel DHCP client and can re-use its lease by default. To retain the old behaviour, simply add clientid to dhcpcd.conf.
|
2008-11-17 17:25:54 +00:00 |
|
Roy Marples
|
228181a811
|
Whitespace.
|
2008-11-17 12:48:38 +00:00 |
|
Roy Marples
|
7b9d0731c3
|
Fork into background even with no interfaces IF we are asked to background AND have link detection.
|
2008-11-15 11:24:26 +00:00 |
|
Roy Marples
|
e6be43482d
|
Report all interfaces requested that do not exist.
|
2008-11-14 20:38:40 +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
|
3ad4d331af
|
Fix some LINT errors.
|
2008-11-10 11:15:27 +00:00 |
|
Roy Marples
|
5b7112f525
|
Test should always DISCOVER.
|
2008-11-04 10:13:07 +00:00 |
|
Roy Marples
|
6d35d0ccf9
|
Ensure inform options are terminated.
|
2008-10-18 22:57:40 +00:00 |
|
Roy Marples
|
eae4f5b472
|
Get INFORM support almost working again.
|
2008-10-18 16:41:19 +00:00 |
|
Roy Marples
|
aec7d71ddb
|
Use the existing start_reboot function instead of a start_request.
|
2008-10-18 10:52:01 +00:00 |
|
Roy Marples
|
49c0efdadb
|
Make init request for an address work off the command line again.
|
2008-10-18 10:02:36 +00:00 |
|
Roy Marples
|
35a8183fb9
|
static objects are initialized to 0 by default, so don't explicity do this.
|
2008-10-06 12:45:32 +00:00 |
|
Roy Marples
|
079649b0b1
|
We should be able to reboot interfaces we don't already know about.
|
2008-10-06 08:37:02 +00:00 |
|
Roy Marples
|
764eb12abd
|
Fix TEST.
|
2008-10-01 11:15:33 +00:00 |
|
Roy Marples
|
5c39a95174
|
Fix pointer.
|
2008-09-17 10:37:03 +00:00 |
|
Roy Marples
|
b2173751b6
|
Fix rebooting off a signal.
|
2008-09-17 08:29:56 +00:00 |
|
Roy Marples
|
2662d5195f
|
Allow the release keyword in dhcpcd.conf to release the lease on shutdown.
|
2008-09-16 13:17:23 +00:00 |
|
Roy Marples
|
4f35e21b38
|
Fix segfault when passing options in.
|
2008-09-15 16:43:57 +00:00 |
|
Roy Marples
|
a2a9a498da
|
Reboot off the last lease and use the last lease if not expired and user has asked for it. Also, add a reboot timeout toggle (default 10 seconds).
|
2008-09-15 15:23:46 +00:00 |
|
Roy Marples
|
c4f493792c
|
We need to drop config on carrier loss now.
|
2008-09-13 11:17:24 +00:00 |
|
Roy Marples
|
be070f751b
|
Drop interfaces in reverse order when stopping and handle removal of interfaces in one function.
|
2008-09-11 22:55:27 +00:00 |
|
Roy Marples
|
c4012b7e1b
|
Fix removing old config.
|
2008-09-11 15:50:19 +00:00 |
|
Roy Marples
|
ba97e49417
|
Add allowinterfaces and denyinterfaces options to dhcpcd.conf for better multiple interface support.
|
2008-09-11 09:38:02 +00:00 |
|
Roy Marples
|
03c2c87907
|
Allow quiet and nobackground to work in dhcpcd.conf
|
2008-09-11 08:28:39 +00:00 |
|
Roy Marples
|
2b60ecb71e
|
Sort interfaces according to preference and pass this to dhcpcd-run-hooks so we can prefer configs.
|
2008-09-09 17:07:48 +00:00 |
|
Roy Marples
|
c130b44207
|
Fix renewing.
|
2008-09-08 11:28:12 +00:00 |
|
Roy Marples
|
64c6e1eb18
|
Check carrier when starting reboot.
|
2008-09-06 19:41:05 +00:00 |
|
Roy Marples
|
08aa777660
|
Style.
|
2008-09-06 19:24:40 +00:00 |
|
Roy Marples
|
4521897e25
|
Should use LOG_DAEMON as we're a DHCP Client Daemon
|
2008-09-05 19:44:02 +00:00 |
|
Roy Marples
|
765fbf7db0
|
Remove logger and exclusively uses syslog instead. This saves almost 2K on NetBSD/amd64 from before changing strerror to %m.
|
2008-09-05 18:24:34 +00:00 |
|
Roy Marples
|
f25f3fb214
|
Don't spam on startup about unsupported interfaces if quiet.
|
2008-09-05 15:46:02 +00:00 |
|
Roy Marples
|
fca060b851
|
Save more memory, malloc the pidfile.
|
2008-09-05 14:16:53 +00:00 |
|
Roy Marples
|
9f7780b07b
|
Don't use a needless buffer for cffile.
|
2008-09-05 13:28:44 +00:00 |
|
Roy Marples
|
f6de5860b6
|
As our logger calls emulate syslog, we can use %m. However, this means we have to convert it for printf as POSIX does not require that printf supports it. This also means we drop -pedantic from our GCC flags.
|
2008-09-05 13:12:35 +00:00 |
|
Roy Marples
|
0ce8caf249
|
Mark functions as _noreturn.
|
2008-09-05 11:46:03 +00:00 |
|
Roy Marples
|
e7eeaf88da
|
Make TEST work once more.
|
2008-09-05 07:31:09 +00:00 |
|
Roy Marples
|
da16617840
|
Remove some ints and replace with our option mask.
|
2008-09-05 07:22:03 +00:00 |
|
Roy Marples
|
ef10669432
|
Ensure background is initialised.
|
2008-09-04 22:02:32 +00:00 |
|
Roy Marples
|
15eb50d78c
|
Make background work again.
|
2008-09-04 15:24:55 +00:00 |
|
Roy Marples
|
064dd58ee2
|
Enable detection of addition and removal of interfaces on Linux.
|
2008-09-04 14:08:14 +00:00 |
|
Roy Marples
|
96d0673a2c
|
When OS reports new and removed interfaces, dhcpcd sees this and either starts or stops watching them. BSD only, Linux to follow.
|
2008-09-04 11:30:11 +00:00 |
|
Roy Marples
|
4570862e65
|
If we fail to send a packet, remove the interface from consideration.
|
2008-09-04 09:43:52 +00:00 |
|