summaryrefslogtreecommitdiffstats
path: root/dhcpcd.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-03-31 08:35:38 +0000
committerRoy Marples <roy@marples.name>2009-03-31 08:35:38 +0000
commit6f767217f6e4c3be4a23fcd330f5252b8ff5c238 (patch)
treec93d968d8652a118e4d7ed02f8153f6d1e54f806 /dhcpcd.h
parent4a4bcf7cf5fa713dd62912f0c1c7c2e1ef543e4b (diff)
downloaddhcpcd-6f767217f6e4c3be4a23fcd330f5252b8ff5c238.tar.xz
Add the ability to arping an address and select a profile based on the
hardware address replied with or the ip address.
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 a65e8633..e353a33f 100644
--- a/dhcpcd.h
+++ b/dhcpcd.h
@@ -39,6 +39,7 @@
#define HWADDR_LEN 20
#define IF_SSIDSIZE 33
+#define PROFILE_LEN 32
enum DHS {
DHS_INIT,
@@ -60,6 +61,7 @@ enum DHS {
struct if_state {
enum DHS state;
+ char profile[PROFILE_LEN];
struct if_options *options;
struct dhcp_message *sent;
struct dhcp_message *offer;
@@ -76,6 +78,7 @@ struct if_state {
int conflicts;
time_t defend;
struct in_addr fail;
+ size_t arping_index;
};
struct interface {
@@ -134,5 +137,6 @@ void start_expire(void *);
void send_decline(struct interface *);
void close_sockets(struct interface *);
void drop_config(struct interface *, const char *);
+int select_profile(struct interface *, const char *);
#endif