diff options
Diffstat (limited to 'core/fs/pxe/dhcp_option.c')
-rw-r--r-- | core/fs/pxe/dhcp_option.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/fs/pxe/dhcp_option.c b/core/fs/pxe/dhcp_option.c index 3517161a..1fdcc705 100644 --- a/core/fs/pxe/dhcp_option.c +++ b/core/fs/pxe/dhcp_option.c @@ -3,6 +3,7 @@ #include <core.h> #include <sys/cpu.h> #include <lwip/opt.h> /* DNS_MAX_SERVERS */ +#include <dprintf.h> #include "pxe.h" char LocalDomain[256]; @@ -11,8 +12,6 @@ int over_load; uint8_t uuid_type; uint8_t uuid[16]; -static void parse_dhcp_options(const void *, int, uint8_t); - static void subnet_mask(const void *data, int opt_len) { if (opt_len != 4) @@ -164,7 +163,7 @@ static const struct dhcp_options dhcp_opts[] = { * filter contains the minimum value for the option to recognize * -- this is used to restrict parsing to PXELINUX-specific options only. */ -static void parse_dhcp_options(const void *option, int size, uint8_t opt_filter) +void parse_dhcp_options(const void *option, int size, uint8_t opt_filter) { int opt_num; int opt_len; @@ -189,6 +188,8 @@ static void parse_dhcp_options(const void *option, int size, uint8_t opt_filter) if (size < 0) break; + dprintf("DHCP: option %d, len %d\n", opt_num, opt_len); + if (opt_num >= opt_filter) { opt = dhcp_opts; for (i = 0; i < opt_entries; i++) { |