diff options
| author | Roy Marples <roy@marples.name> | 2009-03-31 08:35:38 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2009-03-31 08:35:38 +0000 |
| commit | 6f767217f6e4c3be4a23fcd330f5252b8ff5c238 (patch) | |
| tree | c93d968d8652a118e4d7ed02f8153f6d1e54f806 /if-options.h | |
| parent | 4a4bcf7cf5fa713dd62912f0c1c7c2e1ef543e4b (diff) | |
| download | dhcpcd-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 'if-options.h')
| -rw-r--r-- | if-options.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/if-options.h b/if-options.h index 64c8bdea..7fad0e5d 100644 --- a/if-options.h +++ b/if-options.h @@ -37,7 +37,7 @@ /* Don't set any optional arguments here so we retain POSIX * compatibility with getopt */ -#define IF_OPTS "bc:def:h:i:kl:m:no:pqr:s:t:u:v:xy:z:ABC:DEF:GI:KLN:O:Q:TVX:Z:" +#define IF_OPTS "a:bc:def:h:i:kl:m:no:pqr:s:t:u:v:xy:z:ABC:DEF:GI:KLN:O:Q:TVX:Z:" #define DEFAULT_TIMEOUT 30 #define DEFAULT_REBOOT 10 @@ -100,9 +100,12 @@ struct if_options { size_t blacklist_len; in_addr_t *blacklist; + size_t arping_len; + in_addr_t *arping; }; -struct if_options *read_config(const char *, const char *, const char *); +struct if_options *read_config(const char *, + const char *, const char *, const char *); int add_options(struct if_options *, int, char **); void free_options(struct if_options *); |
