summaryrefslogtreecommitdiffstats
path: root/dhcpcd.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-03-19 17:52:12 +0000
committerRoy Marples <roy@marples.name>2009-03-19 17:52:12 +0000
commit1abffd5ba55b4e4a2a149001a33349ef39139457 (patch)
tree48da83c4a9a64018cfc66e5566531361b7260a9b /dhcpcd.h
parent194b1fcb081f274e5759158267bf930f1bf57708 (diff)
downloaddhcpcd-1abffd5ba55b4e4a2a149001a33349ef39139457.tar.xz
We can now detected primary addresses added or changed in BSD.
As such, we can wait for a 3RDPARTY to configure the interface, such as PPP. We can then take the destination addess and automatically give it a default route or any other DHCP option such as DNS servers. This addresses #159.
Diffstat (limited to 'dhcpcd.h')
-rw-r--r--dhcpcd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/dhcpcd.h b/dhcpcd.h
index d8a5fabd..927f019f 100644
--- a/dhcpcd.h
+++ b/dhcpcd.h
@@ -82,6 +82,7 @@ struct interface {
char name[IF_NAMESIZE];
struct if_state *state;
+ int flags;
sa_family_t family;
unsigned char hwaddr[HWADDR_LEN];
size_t hwlen;
@@ -118,6 +119,9 @@ extern struct interface *ifaces;
struct interface *find_interface(const char *);
int handle_args(struct fd_list *, int, char **);
+void handle_interface(int, const char *);
+void handle_ifa(int, const char *,
+ struct in_addr *, struct in_addr *, struct in_addr *);
void handle_exit_timeout(void *);
void start_interface(void *);
void start_discover(void *);