]> git.baikalelectronics.ru Git - kernel.git/commit
[TCP] Allow len == skb->len in tcp_fragment
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 20 Oct 2005 19:13:13 +0000 (17:13 -0200)
committerArnaldo Carvalho de Melo <acme@mandriva.com>
Thu, 20 Oct 2005 19:13:13 +0000 (17:13 -0200)
commitb8a0559ceb1a62e503b6f29a70d3fe8406cb6f92
tree0614c2c1d40926cec4bfe91524bf50c6aff0063f
parenta3a7d8e95a61560d4eee38b99e1a25a02e4ba1c5
[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