[TCP] Allow len == skb->len in tcp_fragment
commitb2cc99f04c5a732c793519aca61a20f719b50db4
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 20 Oct 2005 19:13:13 +0000 (20 17:13 -0200)
committerArnaldo Carvalho de Melo <acme@mandriva.com>
Thu, 20 Oct 2005 19:13:13 +0000 (20 17:13 -0200)
tree0614c2c1d40926cec4bfe91524bf50c6aff0063f
parent49c5bfaffe8ae6e6440dc4bf78b03800960d93f5
[TCP] Allow len == skb->len in tcp_fragment

It is legitimate to call tcp_fragment with len == skb->len since
that is done for FIN packets and the FIN flag counts as one byte.
So we should only check for the len > skb->len case.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
net/ipv4/tcp_output.c