]> git.sur5r.net Git - u-boot/commit
ip/defrag: fix processing of last short fragment
authorFillod Stephane <stephane.fillod@grassvalley.com>
Fri, 11 Jun 2010 17:26:43 +0000 (19:26 +0200)
committerBen Warren <biggerbadderben@gmail.com>
Mon, 21 Jun 2010 05:11:32 +0000 (22:11 -0700)
commite397e59e861aa818cda12a23206dde06f7e9f660
tree1f83906c89e013a19b274776394c64c1664cae09
parent1f241263e088a71b8f33f87b03a37c5418d41e2e
ip/defrag: fix processing of last short fragment

TFTP'ing a file of size 1747851 bytes with CONFIG_IP_DEFRAG and
CONFIG_TFTP_BLOCKSIZE set to 4096 fails with a timeout, because
the last fragment is not taken into account. This patch fixes
IP fragments having less than 8 bytes of payload.

Signed-off-by: Stephane Fillod <stephane.fillod@grassvalley.com>
Acked-by: Alessandro Rubini <rubini@gnudd.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
net/net.c