summaryrefslogtreecommitdiff
path: root/sys/src/9/ip
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2022-09-25 13:59:59 +0000
committercinap_lenrek <cinap_lenrek@felloff.net>2022-09-25 13:59:59 +0000
commit0294abd5646dc9966cd98ac920b17aea3de3f57f (patch)
treecfe989c9291669343712dfcaf2399df1871dae19 /sys/src/9/ip
parent96ac4cdaa40a473766aa985120764dfe9863cd67 (diff)
devip: fix ipv6 mss clamping
Diffstat (limited to 'sys/src/9/ip')
-rw-r--r--sys/src/9/ip/ipv6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/ip/ipv6.c b/sys/src/9/ip/ipv6.c
index c7045de89..0e85fbfd6 100644
--- a/sys/src/9/ip/ipv6.c
+++ b/sys/src/9/ip/ipv6.c
@@ -90,7 +90,7 @@ ipoput6(Fs *f, Block *bp, int gating, int ttl, int tos, Routehint *rh)
medialen = ifc->maxtu - ifc->m->hsize;
if(gating)
- tcpmssclamp((uchar*)eh, len, medialen);
+ tcpmssclamp(bp->rp, BLEN(bp), medialen);
else {
eh->vcf[0] = IP_VER6;
eh->vcf[0] |= tos >> 4;