mirror of
https://github.com/ipxe/ipxe
synced 2025-12-12 23:15:10 +03:00
[ipv4] Add support for classless static routes
Add support for RFC 3442 classless static routes provided via DHCP option 121. Originally-implemented-by: Hazel Smith <hazel.smith@leicester.ac.uk> Originally-implemented-by: Raphael Pour <raphael.pour@hetzner.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -344,6 +344,9 @@ struct dhcp_client_uuid {
|
||||
/** DNS domain search list */
|
||||
#define DHCP_DOMAIN_SEARCH 119
|
||||
|
||||
/** Classless static routes */
|
||||
#define DHCP_STATIC_ROUTES 121
|
||||
|
||||
/** Etherboot-specific encapsulated options
|
||||
*
|
||||
* This encapsulated options field is used to contain all options
|
||||
|
||||
@@ -437,6 +437,8 @@ netmask_setting __setting ( SETTING_IP4, netmask );
|
||||
extern const struct setting
|
||||
gateway_setting __setting ( SETTING_IP4, gateway );
|
||||
extern const struct setting
|
||||
static_route_setting __setting ( SETTING_IP4, static_routes );
|
||||
extern const struct setting
|
||||
dns_setting __setting ( SETTING_IP4_EXTRA, dns );
|
||||
extern const struct setting
|
||||
ip6_setting __setting ( SETTING_IP6, ip6 );
|
||||
|
||||
Reference in New Issue
Block a user