Commit Graph

1080 Commits

Author SHA1 Message Date
Roy Marples
9928a3bb97 Save a malloc 2008-12-02 14:18:37 +00:00
Roy Marples
38d187ed86 Ensure we de-reference the old pointer from the open routes correctly when building lists. 2008-12-02 00:24:25 +00:00
Roy Marples
a4d0de41b3 Don't delete static ARP entries 2008-12-01 20:18:02 +00:00
Roy Marples
399b1c0151 Save a few more bytes. 2008-12-01 18:03:20 +00:00
Roy Marples
a6fc352dde Ensure host routes and subnet routes are added correctly. 2008-12-01 16:58:10 +00:00
Roy Marples
fb10befc1c Add desc_route to save some bytes. 2008-12-01 16:56:56 +00:00
Roy Marples
b96011558a Ensure that we add the src pref address. 2008-11-27 16:16:32 +00:00
Roy Marples
fb5c66b68d Describe the blacklist option. 2008-11-27 10:37:02 +00:00
Roy Marples
a4398c7a4b Fix warning of monotonic clock existence. 2008-11-27 09:45:13 +00:00
Roy Marples
ddeace4bd4 Release 4.99.6 2008-11-25 21:00:46 +00:00
Roy Marples
399004f724 Fix adding of host routes. 2008-11-25 13:12:20 +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
6abfc8ec05 Style 2008-11-25 11:39:09 +00:00
Roy Marples
3a3c791b7a Don't manipulate subnet routes when they are INADDR_BROADCAST as they don't exist. 2008-11-24 22:30:41 +00:00
Roy Marples
95a12dde2a Probably better to exit here. 2008-11-24 11:21:31 +00:00
Roy Marples
74d4842174 Work out __restrict better. 2008-11-24 11:21:11 +00:00
Roy Marples
7ba2eab95d Remove the S option from the command line description, #121 2008-11-21 20:00:26 +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
0b10229bc6 Zeroing each field is cheaper than using memset/memcpy. 2008-11-19 15:01:20 +00:00
Roy Marples
c5cf49e71a If no lease time is supplied, assume it's infinite. 2008-11-19 14:58:24 +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
991e950618 Adjust lengths to fit MTU. 2008-11-19 14:53:56 +00:00
Roy Marples
3faba9e651 Clarify the clientid option. 2008-11-19 12:50:49 +00:00
Roy Marples
55a303e7bf If we are asked to ARP and we don't have an offer then we are testing our current address. 2008-11-19 09:48:11 +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
4ad77cd737 NetBSD sh needs eval here. 2008-11-14 19:18:57 +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
6b9750ea05 Don't restart ntpd if it's not already running. 2008-11-11 09:28:17 +00:00
Roy Marples
3ad4d331af Fix some LINT errors. 2008-11-10 11:15:27 +00:00
Roy Marples
eee1b3eed9 Fix changing routes on BSD. 2008-11-10 08:31:33 +00:00
Roy Marples
8109d29524 Default to -O2. 2008-11-05 15:59:36 +00:00
Roy Marples
40494f78e8 Parens. 2008-11-05 14:36:23 +00:00
Roy Marples
e1caa8dbad get_line now uses a single buffer, strips leading space and skips comments. This reduces malloc usage slightly and gives a cleaner API at the expense of a slight bss increase. 2008-11-05 13:57:54 +00:00
Roy Marples
9783ceb17a Close fd's in the child. 2008-11-05 13:56:00 +00:00
Roy Marples
c93e8528e0 Save a few bytes by moving close_fds to bind where it's really used. 2008-11-05 13:09:18 +00:00
Roy Marples
5b7112f525 Test should always DISCOVER. 2008-11-04 10:13:07 +00:00
Roy Marples
4c240a4a92 Trim trailing NULLs from string options, #120. 2008-11-04 10:04:25 +00:00
Roy Marples
459f34f308 Release 4.99.3 2008-10-29 13:02:41 +00:00
Roy Marples
b85bcbf82d ~0U is better than just ~0 for this. 2008-10-29 08:13:15 +00:00
Roy Marples
29a4a20411 Re-create the old .info file for applications that parse it. 2008-10-28 09:28:55 +00:00
Roy Marples
503f4fe18e Explain why we decline the address in a message. 2008-10-28 09:24:23 +00:00
Roy Marples
3179cfaac7 Allow ntp.conf location to be tunable, #119 2008-10-27 12:39:32 +00:00
Roy Marples
d25b56c354 Update change log location 2008-10-22 08:29:53 +00:00
Roy Marples
75fafed825 We should erase the lease file when we get an ARP conflict on rebinding from it. 2008-10-21 15:34:52 +00:00