ref: 5e68ad1957a3179fc77709e268c13368eb2c2656
parent: 88ce14d4a0974a0a6ffb668ff35dbcabbc670503
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Sep 17 11:02:51 EDT 2022
tcpmssclamp: only check the first ipv4 fragment for tcp header
--- a/sys/src/9/ip/tcp.c
+++ b/sys/src/9/ip/tcp.c
@@ -3322,6 +3322,8 @@
if((h4->vihl&0xF0)==IP_VER4) {
if(h4->proto != IP_TCPPROTO)
return;
+ if((h4->frag[0] & (IP_FO>>8)) | (h4->frag[1] & IP_FO))
+ return;
if(!(h4->tcpflag[1] & SYN))
return;
hdrlen = (h4->tcpflag[0] >> 2) & ~3;
--
⑨