diff options
Diffstat (limited to 'networking/udhcp/script.c')
-rw-r--r-- | networking/udhcp/script.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/networking/udhcp/script.c b/networking/udhcp/script.c index a74697c90..dc658ada8 100644 --- a/networking/udhcp/script.c +++ b/networking/udhcp/script.c | |||
@@ -78,8 +78,11 @@ static NOINLINE char *xmalloc_optname_optval(uint8_t *option, const struct dhcp_ | |||
78 | *dest++ = '/'; | 78 | *dest++ = '/'; |
79 | option += 4; | 79 | option += 4; |
80 | optlen = 4; | 80 | optlen = 4; |
81 | case OPTION_IP: /* Works regardless of host byte order. */ | 81 | case OPTION_IP: |
82 | dest += sprint_nip(dest, "", option); | 82 | dest += sprint_nip(dest, "", option); |
83 | // TODO: it can be a list only if (type_p->flags & OPTION_LIST). | ||
84 | // Should we bail out/warn if we see multi-ip option which is | ||
85 | // not allowed to be such? For example, DHCP_BROADCAST... | ||
83 | break; | 86 | break; |
84 | case OPTION_BOOLEAN: | 87 | case OPTION_BOOLEAN: |
85 | dest += sprintf(dest, *option ? "yes" : "no"); | 88 | dest += sprintf(dest, *option ? "yes" : "no"); |