]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ipv: Re-enable IP when MTU > 68
authorBreno Leitao <leitao@linux.vnet.ibm.com>
Wed, 3 Sep 2008 00:28:58 +0000 (17:28 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 Sep 2008 00:28:58 +0000 (17:28 -0700)
commit06770843c2f0f929a6e0c758dc433902a01aabfb
treeb579cbcf3f960289cfe5c586f7e38a03abc88df6
parent9d7d74029e0f5fde3b88b39892b9b9cfdf4ea10a
ipv: Re-enable IP when MTU > 68

Re-enable IP when the MTU gets back to a valid size.

This patch just checks if the in_dev is NULL on a NETDEV_CHANGEMTU event
and if MTU is valid (bigger than 68), then re-enable in_dev.

Also a function that checks valid MTU size was created.

Signed-off-by: Breno Leitao <leitao@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/devinet.c