]> git.karo-electronics.de Git - linux-beck.git/commit
ipv4: teach ipconfig about the MTU option in DHCP
authorChris Friesen <cfriesen@nortel.com>
Tue, 19 May 2009 22:31:50 +0000 (15:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 May 2009 22:36:17 +0000 (15:36 -0700)
commit9643f4551255ce8b3ef7470aaaf7f435a20f9182
tree4c2fe5194a697c2e9c0e61d7a74850760315ba76
parentfd2120ca0da9108e53f8db2fe57ab74fca76fd56
ipv4: teach ipconfig about the MTU option in DHCP

The DHCP spec allows the server to specify the MTU.  This can be useful
for netbooting with UDP-based NFS-root on a network using jumbo frames.
This patch allows the kernel IP autoconfiguration to handle this option
correctly.

It would be possible to use initramfs and add a script to set the MTU,
but that seems like a complicated solution if no initramfs is otherwise
necessary, and would bloat the kernel image more than this code would.

This patch was originally submitted to LKML in 2003 by Hans-Peter Jansen.

Signed-off-by: Chris Friesen <cfriesen@nortel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ipconfig.c