summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorMichael Brown2017-01-23 18:47:28 +0100
committerMichael Brown2017-01-23 18:47:28 +0100
commit16aed6e5ce808615df95c7767b4dd8793c398d93 (patch)
tree18d3b12c515078ea904e5db21940fecf34084097 /src/include
parent[virtio] Use host-specified MTU when available (diff)
downloadipxe-16aed6e5ce808615df95c7767b4dd8793c398d93.tar.gz
ipxe-16aed6e5ce808615df95c7767b4dd8793c398d93.tar.xz
ipxe-16aed6e5ce808615df95c7767b4dd8793c398d93.zip
[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')
-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 b699b31f..23f16aaa 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