Roy Marples
87987af44e
Not needed.
2008-09-04 09:43:33 +00:00
Roy Marples
b905fc787c
Only free the option buffer when debugging memory leaks.
2008-09-04 08:48:06 +00:00
Roy Marples
f0f4b8b6df
Use static buffers for ARP and move the send code to arp.c. Also, move the hwaddr buffer to the top of the file for clarity.
2008-09-04 08:31:00 +00:00
Roy Marples
25312cdd58
No need to be this complicated.
2008-09-04 08:27:38 +00:00
Roy Marples
f65dc4f659
Ensure that clientid is free before reallocing it.
2008-09-04 08:20:26 +00:00
Roy Marples
b332752859
Work around broken linux headers when including wireless.h
2008-09-03 23:36:46 +00:00
Roy Marples
26ab34ee20
Allow 5 control socket connections at once. Time each out after 5 minutes.
2008-09-03 19:27:47 +00:00
Roy Marples
36eb75bc7a
Merge branch 'master' of git.marples.name:/var/git/dhcpcd
2008-09-03 16:50:52 +00:00
Roy Marples
f43e585355
Add a control socket so that interfaces can be dynamically re-set.
...
This requires the event loop argument being changed to void *
so we can send arguments other than an interface.
2008-09-03 16:49:28 +00:00
Roy Marples
f0c98483e7
Clean code.
2008-09-02 18:29:49 +00:00
Roy Marples
948eea38e5
Don't need this.
2008-09-02 15:35:02 +00:00
Roy Marples
ccf0a5f559
Fix compile and wireless test on FreeBSD.
2008-09-02 15:25:14 +00:00
Roy Marples
274abdf80b
Add wireless detection to NetBSD (tested) and FreeBSD (untested).
2008-09-02 15:11:01 +00:00
Roy Marples
b24e474272
strncpy -> strlcpy.
2008-09-02 15:07:01 +00:00
Roy Marples
fd05b7dcfc
Add an event loop.
...
Split client.c into smaller files and functions and
recode around the event loop.
Add multiple interface support using the new event loop.
Document changes and outstanding bugs.
2008-09-02 13:28:11 +00:00
Roy Marples
ca07508a27
Style
2008-08-26 13:27:07 +00:00
Roy Marples
78593b95f4
Fix CMDLINE_COMPAT.
2008-08-25 07:34:10 +00:00
Roy Marples
f0c82200f2
Release dhcpcd-4.0.0 :D
2008-08-24 11:56:30 +00:00
Roy Marples
5d5323f084
Style.
2008-08-22 09:48:25 +00:00
Roy Marples
38d94a3201
Don't errors when opening a UDP socket for INADDR_ANY and soemthing else already has it open.
2008-08-22 09:44:02 +00:00
Roy Marples
0eb85def78
Always open a UDP port on the interface.
...
This stops ICMP not reachable messages when dhcpcd first starts and
the IP we get is already configured on the interface.
2008-08-21 08:52:34 +00:00
Roy Marples
0235df9d66
Move the --renew option to --rebind as it's more accurate (both are -n). Support --renew when CMDLINE_COMPAT is enabled.
2008-08-20 08:50:38 +00:00
Roy Marples
1895d36baf
Clarify that dhcpcd will not re-configure itself or use any command line arguments when signalling an existing process to renew.
2008-08-20 08:40:53 +00:00
Roy Marples
3deb5188ef
We should really enter the rebinding state on a requested renew as we're broadcasting instead of unicasting.
2008-08-19 13:31:59 +00:00
Roy Marples
9c422b680a
Don't run PREINIT when testing.
2008-08-19 10:18:31 +00:00
Roy Marples
54d4db3a26
Fix Test returning to userland.
2008-08-18 18:35:12 +00:00
Roy Marples
8ffd7d9402
pidfiles normally have a new line
2008-08-18 18:34:40 +00:00
Roy Marples
9eef54d82c
Fix some config reading.
2008-08-18 12:46:18 +00:00
Roy Marples
cc45fbd76e
The require directive now requires that the required options are present in each DHCP message. A few variables and functions have also been renamed to make this part more readable.
2008-08-18 12:43:05 +00:00
Roy Marples
bac03ede3d
Document correct background option in dhcpcd.conf
2008-08-17 15:13:23 +00:00
Roy Marples
e77d58d958
Fix compat.
2008-08-15 19:29:24 +00:00
Roy Marples
be5aa34488
Release dhcpcd-4.0.0-rc5
2008-08-15 19:24:39 +00:00
Roy Marples
7e79a3e4a1
If cmp and diff aren't around, try a text match using cat. After all, we are working with text files.
2008-08-15 11:33:33 +00:00
Roy Marples
ee90dc2257
Don't enforce that keys are space separated
2008-08-15 11:06:27 +00:00
Roy Marples
7bcaeef3a2
sed may not always be available, so use shell loops to replicate behaviour in this case
2008-08-15 09:07:56 +00:00
Roy Marples
a01c3091db
Fix cmp test.
2008-08-15 03:31:37 +00:00
Roy Marples
a5ea73e73f
Remove the append/clean framework and prefer a store and merge
...
approach. It's more work, but the end result looks cleaner.
2008-08-15 03:22:21 +00:00
Roy Marples
68e04b4438
Re-jig the order of doing things to improve our logging.
2008-08-14 16:16:06 +00:00
Roy Marples
fb8a5f9817
If a device is not found, report it.
2008-08-14 16:15:45 +00:00
Roy Marples
50b9957e82
Don't warn about dhcpcd not running when using --renew.
2008-08-14 16:00:37 +00:00
Roy Marples
205be441f3
Don't error if no interfaces or the state dir does not exist.
2008-08-14 12:37:44 +00:00
Roy Marples
697033263d
Set the main state dir in the main hook script.
2008-08-14 12:17:23 +00:00
Roy Marples
cf05d568c4
Don't quote for uniqify and use 1 sed call instead of looping.
2008-08-14 12:14:23 +00:00
Roy Marples
fb8c0fd4b0
Move uniqify to dhcpcd-run-hooks
2008-08-14 11:00:58 +00:00
Roy Marples
b78ebc2f4c
If resolvconf is not present, try and emulate it's functionality just for dhcpcd so we can sanely handle >1 instance running.
2008-08-14 10:38:15 +00:00
Roy Marples
908a4aa9ae
Make signature more sane and fix comment.
2008-08-14 10:37:11 +00:00
Roy Marples
a5b2d977e8
We should always run the script on FAIL.
2008-08-14 08:34:38 +00:00
Roy Marples
a638449155
Be consistent with dhcient - always PREINIT on startup. We can use this to purge stale configuration.
2008-08-14 08:06:21 +00:00
Roy Marples
7b1ae6d97b
classid -> vendorclassid to match the RFC description.
2008-08-13 21:29:30 +00:00
Roy Marples
c22ce5910d
Allow reqmask of numbers.
2008-08-13 20:26:41 +00:00