diff options
Diffstat (limited to 'networking/udhcp/dhcpc.h')
-rw-r--r-- | networking/udhcp/dhcpc.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/networking/udhcp/dhcpc.h b/networking/udhcp/dhcpc.h index 7fdbc9a6c..42fe71a36 100644 --- a/networking/udhcp/dhcpc.h +++ b/networking/udhcp/dhcpc.h | |||
@@ -7,7 +7,7 @@ | |||
7 | 7 | ||
8 | PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN | 8 | PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN |
9 | 9 | ||
10 | struct client_config_t { | 10 | struct client_data_t { |
11 | uint8_t client_mac[6]; /* Our mac address */ | 11 | uint8_t client_mac[6]; /* Our mac address */ |
12 | IF_FEATURE_UDHCP_PORT(uint16_t port;) | 12 | IF_FEATURE_UDHCP_PORT(uint16_t port;) |
13 | int ifindex; /* Index number of the interface to use */ | 13 | int ifindex; /* Index number of the interface to use */ |
@@ -24,14 +24,18 @@ struct client_config_t { | |||
24 | 24 | ||
25 | uint16_t first_secs; | 25 | uint16_t first_secs; |
26 | uint16_t last_secs; | 26 | uint16_t last_secs; |
27 | |||
28 | int sockfd; | ||
29 | smallint listen_mode; | ||
30 | smallint state; | ||
27 | } FIX_ALIASING; | 31 | } FIX_ALIASING; |
28 | 32 | ||
29 | /* server_config sits in 1st half of bb_common_bufsiz1 */ | 33 | /* server_config sits in 1st half of bb_common_bufsiz1 */ |
30 | #define client_config (*(struct client_config_t*)(&bb_common_bufsiz1[COMMON_BUFSIZE / 2])) | 34 | #define client_data (*(struct client_data_t*)(&bb_common_bufsiz1[COMMON_BUFSIZE / 2])) |
31 | 35 | ||
32 | #if ENABLE_FEATURE_UDHCP_PORT | 36 | #if ENABLE_FEATURE_UDHCP_PORT |
33 | #define CLIENT_PORT (client_config.port) | 37 | #define CLIENT_PORT (client_data.port) |
34 | #define CLIENT_PORT6 (client_config.port) | 38 | #define CLIENT_PORT6 (client_data.port) |
35 | #else | 39 | #else |
36 | #define CLIENT_PORT 68 | 40 | #define CLIENT_PORT 68 |
37 | #define CLIENT_PORT6 546 | 41 | #define CLIENT_PORT6 546 |