Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177928173
D3567.1795585163.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D3567.1795585163.diff
View Options
Index: sys/netinet/tcp_subr.c
===================================================================
--- sys/netinet/tcp_subr.c
+++ sys/netinet/tcp_subr.c
@@ -1541,11 +1541,6 @@
* in the route to the suggested new
* value (if given) and then notify.
*/
- bzero(&inc, sizeof(inc));
- inc.inc_faddr = faddr;
- inc.inc_fibnum =
- inp->inp_inc.inc_fibnum;
-
mtu = ntohs(icp->icmp_nextmtu);
/*
* If no alternative MTU was
@@ -1560,14 +1555,18 @@
mtu = V_tcp_minmss +
sizeof(struct tcpiphdr);
/*
- * Only cache the MTU if it
- * is smaller than the interface
- * or route MTU. tcp_mtudisc()
- * will do right thing by itself.
+ * Only process the offered MTU if it
+ * is smaller than the current one.
*/
- if (mtu <= tcp_maxmtu(&inc, NULL))
+ if (mtu < tp->t_maxopd +
+ sizeof(struct tcpiphdr)) {
+ bzero(&inc, sizeof(inc));
+ inc.inc_faddr = faddr;
+ inc.inc_fibnum =
+ inp->inp_inc.inc_fibnum;
tcp_hc_updatemtu(&inc, mtu);
- tcp_mtudisc(inp, mtu);
+ tcp_mtudisc(inp, mtu);
+ }
} else
inp = (*notify)(inp,
inetctlerrmap[cmd]);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 25, 5:39 AM (18 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41965669
Default Alt Text
D3567.1795585163.diff (1 KB)
Attached To
Mode
D3567: ignore ICMP need frag with equal or larger MTU offer
Attached
Detach File
Event Timeline