diff options
Diffstat (limited to 'networking/udhcp/common.h')
-rw-r--r-- | networking/udhcp/common.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/networking/udhcp/common.h b/networking/udhcp/common.h index cc0abd269..8c678dd32 100644 --- a/networking/udhcp/common.h +++ b/networking/udhcp/common.h | |||
@@ -275,7 +275,8 @@ struct option_set *udhcp_find_option(struct option_set *opt_list, uint8_t code) | |||
275 | # define IF_UDHCP_VERBOSE(...) __VA_ARGS__ | 275 | # define IF_UDHCP_VERBOSE(...) __VA_ARGS__ |
276 | extern unsigned dhcp_verbose; | 276 | extern unsigned dhcp_verbose; |
277 | # define log1(...) do { if (dhcp_verbose >= 1) bb_info_msg(__VA_ARGS__); } while (0) | 277 | # define log1(...) do { if (dhcp_verbose >= 1) bb_info_msg(__VA_ARGS__); } while (0) |
278 | # define log1s(msg) do { if (dhcp_verbose >= 1) bb_simple_info_msg(msg); } while (0) | 278 | //# define log1s(msg) do { if (dhcp_verbose >= 1) bb_simple_info_msg(msg); } while (0) |
279 | void log1s(const char *msg) FAST_FUNC; | ||
279 | # if CONFIG_UDHCP_DEBUG >= 2 | 280 | # if CONFIG_UDHCP_DEBUG >= 2 |
280 | void udhcp_dump_packet(struct dhcp_packet *packet) FAST_FUNC; | 281 | void udhcp_dump_packet(struct dhcp_packet *packet) FAST_FUNC; |
281 | # define log2(...) do { if (dhcp_verbose >= 2) bb_info_msg(__VA_ARGS__); } while (0) | 282 | # define log2(...) do { if (dhcp_verbose >= 2) bb_info_msg(__VA_ARGS__); } while (0) |
@@ -319,6 +320,16 @@ void udhcp_dump_packet(struct dhcp_packet *packet) FAST_FUNC; | |||
319 | 320 | ||
320 | /* 2nd param is "uint32_t*" */ | 321 | /* 2nd param is "uint32_t*" */ |
321 | int FAST_FUNC udhcp_str2nip(const char *str, void *arg); | 322 | int FAST_FUNC udhcp_str2nip(const char *str, void *arg); |
323 | |||
324 | #if !ENABLE_UDHCPC6 | ||
325 | #define udhcp_insert_new_option(opt_list, code, length, dhcpv6) \ | ||
326 | udhcp_insert_new_option(opt_list, code, length) | ||
327 | #endif | ||
328 | void* FAST_FUNC udhcp_insert_new_option(struct option_set **opt_list, | ||
329 | unsigned code, | ||
330 | unsigned length, | ||
331 | bool dhcpv6); | ||
332 | |||
322 | /* 2nd param is "struct option_set**" */ | 333 | /* 2nd param is "struct option_set**" */ |
323 | #if !ENABLE_UDHCPC6 | 334 | #if !ENABLE_UDHCPC6 |
324 | #define udhcp_str2optset(str, arg, optflags, option_strings, dhcpv6) \ | 335 | #define udhcp_str2optset(str, arg, optflags, option_strings, dhcpv6) \ |