From 16aed6e5ce808615df95c7767b4dd8793c398d93 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 23 Jan 2017 17:47:28 +0000 Subject: [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 --- src/include/ipxe/dhcp.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/include') diff --git a/src/include/ipxe/dhcp.h b/src/include/ipxe/dhcp.h index b699b31f0..23f16aaa7 100644 --- a/src/include/ipxe/dhcp.h +++ b/src/include/ipxe/dhcp.h @@ -83,6 +83,9 @@ struct dhcp_packet; /** Root path */ #define DHCP_ROOT_PATH 17 +/** Maximum transmission unit */ +#define DHCP_MTU 26 + /** Vendor encapsulated options */ #define DHCP_VENDOR_ENCAP 43 -- cgit v1.2.3-55-g7522