udhcp: rename server_config to server_data

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2019-05-30 16:23:34 +02:00
parent 726cbb1be8
commit 91755cb16d
2 changed files with 79 additions and 79 deletions

View File

@@ -17,7 +17,7 @@ PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
struct static_lease;
struct server_config_t {
struct server_data_t {
char *interface; /* interface to use */
//TODO: ifindex, server_nip, server_mac
// are obtained from interface name.
@@ -53,12 +53,12 @@ struct server_config_t {
struct static_lease *static_leases; /* List of ip/mac pairs to assign static leases */
} FIX_ALIASING;
#define server_config (*(struct server_config_t*)bb_common_bufsiz1)
#define server_data (*(struct server_data_t*)bb_common_bufsiz1)
/* client_data sits in 2nd half of bb_common_bufsiz1 */
#if ENABLE_FEATURE_UDHCP_PORT
#define SERVER_PORT (server_config.port)
#define SERVER_PORT6 (server_config.port)
#define SERVER_PORT (server_data.port)
#define SERVER_PORT6 (server_data.port)
#else
#define SERVER_PORT 67
#define SERVER_PORT6 547