udhcpc6: fix port numbers used if !FEATURE_UDHCP_PORT

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2013-01-28 15:25:35 +01:00
parent 03b614739b
commit 04ac6e03c3
3 changed files with 22 additions and 18 deletions

View File

@@ -29,9 +29,11 @@ struct client_config_t {
#define client_config (*(struct client_config_t*)(&bb_common_bufsiz1[COMMON_BUFSIZE / 2]))
#if ENABLE_FEATURE_UDHCP_PORT
#define CLIENT_PORT (client_config.port)
#define CLIENT_PORT (client_config.port)
#define CLIENT_PORT6 (client_config.port)
#else
#define CLIENT_PORT 68
#define CLIENT_PORT 68
#define CLIENT_PORT6 546
#endif
POP_SAVED_FUNCTION_VISIBILITY