diff options
author | Michael Brown <mcb30@ipxe.org> | 2014-01-31 18:16:42 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2014-02-05 14:56:49 +0000 |
commit | d4c0226a6ce888218f258df409bb6a955e727d81 (patch) | |
tree | 365925bb9a14bdfb25763088ee0f53944181500b /src/include/ipxe/dhcp.h | |
parent | 3fa7a3b136646c4a3e9848c3f4125a28533e8eb0 (diff) | |
download | ipxe-d4c0226a6ce888218f258df409bb6a955e727d81.tar.gz |
[dns] Support DNS search lists
Update the DNS resolver to support DNS search lists (as provided by
DHCP option 119, DHCPv6 option 24, or NDP option 31).
Add validation code to ensure that parsing of DNS packets does not
overrun the input, get stuck in infinite loops, or (worse) write
beyond the end of allocated buffers.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/dhcp.h')
-rw-r--r-- | src/include/ipxe/dhcp.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/ipxe/dhcp.h b/src/include/ipxe/dhcp.h index 2429fae02..bcfb85cc1 100644 --- a/src/include/ipxe/dhcp.h +++ b/src/include/ipxe/dhcp.h @@ -290,6 +290,9 @@ struct dhcp_client_uuid { #define DHCP_CLIENT_UUID_TYPE 0 +/** DNS domain search list */ +#define DHCP_DOMAIN_SEARCH 119 + /** Etherboot-specific encapsulated options * * This encapsulated options field is used to contain all options |