diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-03-03 18:56:18 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-03-03 18:56:18 +0100 |
commit | fa97c3dd10d3b74f4774ea21b2d80fcffa7feb48 (patch) | |
tree | 1cffbf5812f58faf75af1648ba057c2ee3a61cf6 /sys/src/9/ip/ip.h | |
parent | a859f058374606ff1d4249e53b66e1d3d20fdcb7 (diff) |
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().
Diffstat (limited to 'sys/src/9/ip/ip.h')
-rw-r--r-- | sys/src/9/ip/ip.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/src/9/ip/ip.h b/sys/src/9/ip/ip.h index 017a8ad2f..1d7b369d9 100644 --- a/sys/src/9/ip/ip.h +++ b/sys/src/9/ip/ip.h @@ -123,7 +123,6 @@ struct Fragment6 struct Ipfrag { - ushort hlen; ushort foff; ushort flen; uchar payload[]; |