mirror of
https://github.com/ipxe/ipxe
synced 2026-02-28 03:11:18 +03:00
[netdevice] Allow MTU to be changed at runtime
Provide a settings applicator to modify netdev->max_pkt_len in response to changes to the "mtu" setting (DHCP option 26). Note that as with MAC address changes, drivers are permitted to completely ignore any changes in the MTU value. The net result will be that iPXE effectively uses the smaller of either the hardware default MTU or the software configured MTU. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -91,9 +91,9 @@ static uint8_t dhcp_request_options_data[] = {
|
||||
DHCP_PARAMETER_REQUEST_LIST,
|
||||
DHCP_OPTION ( DHCP_SUBNET_MASK, DHCP_ROUTERS, DHCP_DNS_SERVERS,
|
||||
DHCP_LOG_SERVERS, DHCP_HOST_NAME, DHCP_DOMAIN_NAME,
|
||||
DHCP_ROOT_PATH, DHCP_VENDOR_ENCAP, DHCP_VENDOR_CLASS_ID,
|
||||
DHCP_TFTP_SERVER_NAME, DHCP_BOOTFILE_NAME,
|
||||
DHCP_DOMAIN_SEARCH,
|
||||
DHCP_ROOT_PATH, DHCP_MTU, DHCP_VENDOR_ENCAP,
|
||||
DHCP_VENDOR_CLASS_ID, DHCP_TFTP_SERVER_NAME,
|
||||
DHCP_BOOTFILE_NAME, DHCP_DOMAIN_SEARCH,
|
||||
128, 129, 130, 131, 132, 133, 134, 135, /* for PXE */
|
||||
DHCP_EB_ENCAP, DHCP_ISCSI_INITIATOR_IQN ),
|
||||
DHCP_END
|
||||
|
||||
Reference in New Issue
Block a user