summaryrefslogtreecommitdiffstats
path: root/bind.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-09-03 16:49:28 +0000
committerRoy Marples <roy@marples.name>2008-09-03 16:49:28 +0000
commitf43e585355e50bd2e7021380db6fc792662f76be (patch)
treed81565b32d67516b6ae178bcdbff09bda3251b45 /bind.c
parentf0c98483e7369f2df38edc352433239fa24f6a2f (diff)
downloaddhcpcd-f43e585355e50bd2e7021380db6fc792662f76be.tar.xz
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.
Diffstat (limited to 'bind.c')
-rw-r--r--bind.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bind.c b/bind.c
index 452738cd..22cfd045 100644
--- a/bind.c
+++ b/bind.c
@@ -98,8 +98,10 @@ daemonise(void)
}
#endif
-void bind_interface(struct interface *iface)
+void
+bind_interface(void *arg)
{
+ struct interface *iface = arg;
struct if_state *state = iface->state;
struct if_options *ifo = state->options;
struct dhcp_lease *lease = &state->lease;