summaryrefslogtreecommitdiff
path: root/sys/src/9/ip/ip.h
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2019-03-03 18:56:18 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2019-03-03 18:56:18 +0100
commitfa97c3dd10d3b74f4774ea21b2d80fcffa7feb48 (patch)
tree1cffbf5812f58faf75af1648ba057c2ee3a61cf6 /sys/src/9/ip/ip.h
parenta859f058374606ff1d4249e53b66e1d3d20fdcb7 (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.h1
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[];