ref: 0294abd5646dc9966cd98ac920b17aea3de3f57f
parent: 96ac4cdaa40a473766aa985120764dfe9863cd67
author: cinap_lenrek <[email protected]>
date: Sun Sep 25 09:59:59 EDT 2022
devip: fix ipv6 mss clamping
--- a/sys/src/9/ip/ipv6.c
+++ b/sys/src/9/ip/ipv6.c
@@ -90,7 +90,7 @@
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;