sit: Clean up DF code by copying from IPIP
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 9 Nov 2009 08:42:01 +0000 (08:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Nov 2009 04:54:43 +0000 (20:54 -0800)
commit292f4f3ce4b57f17a667cb34c72bca081dcc0281
tree061db777a54602f530d8c2431c666e78ca66559e
parentbcd323262a94b14b84341982b90443a76a477861
sit: Clean up DF code by copying from IPIP

This patch rearranges the SIT DF bit handling using the new IPIP DF
code.  The only externally visible effect should be the case where
PMTU is enabled and the MTU is exactly 1280 bytes.  In this case the
previous code would send packets out with DF off while the new code
would set the DF bit.  This is inline with RFC 4213.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Thanks,
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/sit.c