diff options
Diffstat (limited to 'networking/udhcp/dhcpd.h')
-rw-r--r-- | networking/udhcp/dhcpd.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/networking/udhcp/dhcpd.h b/networking/udhcp/dhcpd.h index ba11d77e8..b42849bbb 100644 --- a/networking/udhcp/dhcpd.h +++ b/networking/udhcp/dhcpd.h | |||
@@ -17,7 +17,7 @@ PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN | |||
17 | 17 | ||
18 | struct static_lease; | 18 | struct static_lease; |
19 | 19 | ||
20 | struct server_config_t { | 20 | struct server_data_t { |
21 | char *interface; /* interface to use */ | 21 | char *interface; /* interface to use */ |
22 | //TODO: ifindex, server_nip, server_mac | 22 | //TODO: ifindex, server_nip, server_mac |
23 | // are obtained from interface name. | 23 | // are obtained from interface name. |
@@ -53,12 +53,12 @@ struct server_config_t { | |||
53 | struct static_lease *static_leases; /* List of ip/mac pairs to assign static leases */ | 53 | struct static_lease *static_leases; /* List of ip/mac pairs to assign static leases */ |
54 | } FIX_ALIASING; | 54 | } FIX_ALIASING; |
55 | 55 | ||
56 | #define server_config (*(struct server_config_t*)bb_common_bufsiz1) | 56 | #define server_data (*(struct server_data_t*)bb_common_bufsiz1) |
57 | /* client_data sits in 2nd half of bb_common_bufsiz1 */ | 57 | /* client_data sits in 2nd half of bb_common_bufsiz1 */ |
58 | 58 | ||
59 | #if ENABLE_FEATURE_UDHCP_PORT | 59 | #if ENABLE_FEATURE_UDHCP_PORT |
60 | #define SERVER_PORT (server_config.port) | 60 | #define SERVER_PORT (server_data.port) |
61 | #define SERVER_PORT6 (server_config.port) | 61 | #define SERVER_PORT6 (server_data.port) |
62 | #else | 62 | #else |
63 | #define SERVER_PORT 67 | 63 | #define SERVER_PORT 67 |
64 | #define SERVER_PORT6 547 | 64 | #define SERVER_PORT6 547 |