udhcp: rename server_config to server_data
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user