summaryrefslogtreecommitdiffstats
path: root/ipv6rs.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2013-02-02 14:05:55 +0000
committerRoy Marples <roy@marples.name>2013-02-02 14:05:55 +0000
commit294eff4df4239e12befe13fcbeecfcb9c5f34e75 (patch)
tree91c14ea2cf264c154e63faa8770bbe8c7ef5506a /ipv6rs.c
parent1a59b377b556aaccc9470cac50c954d565c62be4 (diff)
downloaddhcpcd-294eff4df4239e12befe13fcbeecfcb9c5f34e75.tar.xz
Remove IPv4 and DHCP4 specific setup from dhcpcd.c and move into ipv4.c
and dhcp.c Split configure.c into script.c and move the rest into dhcp.c This starts the goal of making the base of dhcpcd protocol agnostic and working towards building IPv4 and/or IPv6 code only to reduce size and allow growing any future new protocol easier.
Diffstat (limited to 'ipv6rs.c')
-rw-r--r--ipv6rs.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/ipv6rs.c b/ipv6rs.c
index 3b18750a..2d64ba98 100644
--- a/ipv6rs.c
+++ b/ipv6rs.c
@@ -1,6 +1,6 @@
/*
* dhcpcd - DHCP client daemon
- * Copyright (c) 2006-2012 Roy Marples <roy@marples.name>
+ * Copyright (c) 2006-2013 Roy Marples <roy@marples.name>
* All rights reserved
* Redistribution and use in source and binary forms, with or without
@@ -45,15 +45,14 @@
#include <syslog.h>
#define ELOOP_QUEUE 1
-#include "bind.h"
#include "common.h"
-#include "configure.h"
#include "dhcpcd.h"
#include "dhcp6.h"
#include "eloop.h"
#include "ipv6.h"
#include "ipv6ns.h"
#include "ipv6rs.h"
+#include "script.h"
/* Debugging Router Solicitations is a lot of spam, so disable it */
//#define DEBUG_RS
@@ -756,13 +755,13 @@ ipv6rs_handledata(_unused void *arg)
if (options & DHCPCD_IPV6RA_OWN && !(options & DHCPCD_TEST))
ipv6_addaddrs(ifp, &rap->addrs);
if (options & DHCPCD_TEST) {
- run_script_reason(ifp, "TEST");
+ script_runreason(ifp, "TEST");
goto handle_flag;
}
ipv6_buildroutes();
/* We will get run by the expire function */
if (rap->lifetime)
- run_script_reason(ifp, "ROUTERADVERT");
+ script_runreason(ifp, "ROUTERADVERT");
/* If we don't require RDNSS then set has_dns = 1 so we fork */
if (!(ifp->state->options->options & DHCPCD_IPV6RA_REQRDNSS))
@@ -1070,7 +1069,7 @@ ipv6rs_expire(void *arg)
eloop_timeout_add_tv(&next, ipv6rs_expire, ifp);
if (expired) {
ipv6_buildroutes();
- run_script_reason(ifp, "ROUTERADVERT");
+ script_runreason(ifp, "ROUTERADVERT");
}
}
@@ -1125,6 +1124,6 @@ ipv6rs_drop(struct interface *ifp)
ipv6rs_drop_ra(rap);
}
}
- run_script_reason(ifp, "ROUTERADVERT");
+ script_runreason(ifp, "ROUTERADVERT");
}
}