shithub: plan9front

Download patch

ref: fa97c3dd10d3b74f4774ea21b2d80fcffa7feb48
parent: a859f058374606ff1d4249e53b66e1d3d20fdcb7
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Mar 3 13:56:18 EST 2019

devip: simplify ip reassembly functions, getting rid of Ipfrag.hlen

given that we now keep the block size consistent with the
ip packet size, the variable header part of the ip packet
is just: BLEN(bp) - fp->flen == fp->hlen.

fix bug in ip6reassemble() in the non-fragmented case:
reload ih after ip header was moved before writing ih->ploadlen.

use concatbloc() instead of pullupblock().