aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/dhcp.h
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2017-01-23 17:47:28 +0000
committerMichael Brown <mcb30@ipxe.org>2017-01-23 17:47:28 +0000
commit16aed6e5ce808615df95c7767b4dd8793c398d93 (patch)
tree18d3b12c515078ea904e5db21940fecf34084097 /src/include/ipxe/dhcp.h
parent4e85b2708fa0c8854c722302ff9bf00ecdbcccc8 (diff)
downloadipxe-16aed6e5ce808615df95c7767b4dd8793c398d93.tar.gz
[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>
Diffstat (limited to 'src/include/ipxe/dhcp.h')
-rw-r--r--src/include/ipxe/dhcp.h3
1 files changed, 3 insertions, 0 deletions
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