diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-11-22 00:58:49 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-11-22 00:58:49 +0000 |
commit | 223bc97f61f2fd5efbccede0837a374c1669e864 (patch) | |
tree | 0105a1f02dbc344ede7cca99565b6c556e7cab96 /networking/udhcp/dhcpc.h | |
parent | c881c733bb05286f7147d0ca49ad238b86f6d848 (diff) | |
download | busybox-w32-223bc97f61f2fd5efbccede0837a374c1669e864.tar.gz busybox-w32-223bc97f61f2fd5efbccede0837a374c1669e864.tar.bz2 busybox-w32-223bc97f61f2fd5efbccede0837a374c1669e864.zip |
udhcpc: an option to perform ARP check (Jonas Danielsson <jonas.danielsson@axis.com>)
configurable, ~+300 bytes when on.
Diffstat (limited to 'networking/udhcp/dhcpc.h')
-rw-r--r-- | networking/udhcp/dhcpc.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/networking/udhcp/dhcpc.h b/networking/udhcp/dhcpc.h index 72a8bd94f..c0172a84f 100644 --- a/networking/udhcp/dhcpc.h +++ b/networking/udhcp/dhcpc.h | |||
@@ -1,5 +1,6 @@ | |||
1 | /* vi: set sw=4 ts=4: */ | 1 | /* vi: set sw=4 ts=4: */ |
2 | /* dhcpc.h */ | 2 | /* dhcpc.h */ |
3 | |||
3 | #ifndef _DHCPC_H | 4 | #ifndef _DHCPC_H |
4 | #define _DHCPC_H | 5 | #define _DHCPC_H |
5 | 6 | ||
@@ -28,9 +29,6 @@ struct client_config_t { | |||
28 | uint8_t *hostname; /* Optional hostname to use */ | 29 | uint8_t *hostname; /* Optional hostname to use */ |
29 | uint8_t *fqdn; /* Optional fully qualified domain name to use */ | 30 | uint8_t *fqdn; /* Optional fully qualified domain name to use */ |
30 | int ifindex; /* Index number of the interface to use */ | 31 | int ifindex; /* Index number of the interface to use */ |
31 | int retries; /* Max number of request packets */ | ||
32 | int timeout; /* Number of seconds to try to get a lease */ | ||
33 | int tryagain; /* Number of seconds to try to get a lease */ | ||
34 | uint8_t arp[6]; /* Our arp address */ | 32 | uint8_t arp[6]; /* Our arp address */ |
35 | }; | 33 | }; |
36 | 34 | ||
@@ -42,6 +40,9 @@ struct client_config_t { | |||
42 | uint32_t random_xid(void); | 40 | uint32_t random_xid(void); |
43 | int send_discover(uint32_t xid, uint32_t requested); | 41 | int send_discover(uint32_t xid, uint32_t requested); |
44 | int send_selecting(uint32_t xid, uint32_t server, uint32_t requested); | 42 | int send_selecting(uint32_t xid, uint32_t server, uint32_t requested); |
43 | #if ENABLE_FEATURE_UDHCPC_ARPING | ||
44 | int send_decline(uint32_t xid, uint32_t server); | ||
45 | #endif | ||
45 | int send_renew(uint32_t xid, uint32_t server, uint32_t ciaddr); | 46 | int send_renew(uint32_t xid, uint32_t server, uint32_t ciaddr); |
46 | int send_renew(uint32_t xid, uint32_t server, uint32_t ciaddr); | 47 | int send_renew(uint32_t xid, uint32_t server, uint32_t ciaddr); |
47 | int send_release(uint32_t server, uint32_t ciaddr); | 48 | int send_release(uint32_t server, uint32_t ciaddr); |