View | Details | Raw Unified | Return to bug 146628
Collapse All | Expand All

(-)tcp_subr.c (working copy) (-5 / +3 lines)
Lines 1339-1349 Link Here
1339
                                            if (!mtu)
1325
                                            if (!mtu)
1340
                                                mtu = ip_next_mtu(ip->ip_len,
1326
                                                mtu = ip_next_mtu(ip->ip_len,
1341
                                                 1);
1327
                                                 1);
1342
                                           if (mtu < max(296, V_tcp_minmss
1328
                                           if (mtu < V_tcp_minmss
1343
                                                + sizeof(struct tcpiphdr)))
1329
                                                + sizeof(struct tcpiphdr))
1344
                                               mtu = 0;
1330
                                               mtu = V_tcp_minmss
1345
                                           if (!mtu)
1346
                                               mtu = V_tcp_mssdflt
1347
                                                 + sizeof(struct tcpiphdr);
1331
                                                 + sizeof(struct tcpiphdr);
1348
                                            /*
1332
                                            /*
1349
                                             * Only cache the the MTU if it
1333
                                             * Only cache the the MTU if it
(-)tcp_output.c (working copy) (-1 / +3 lines)
Lines 1183-1190 Link Here
1183
         * This might not be the best thing to do according to RFC3390
1221
         * This might not be the best thing to do according to RFC3390
1184
         * Section 2. However the tcp hostcache migitates the problem
1222
         * Section 2. However the tcp hostcache migitates the problem
1185
         * so it affects only the first tcp connection with a host.
1223
         * so it affects only the first tcp connection with a host.
1224
        *
1225
        * NB: Don't set DF on small MTU/MSS to have a safe fallback.
1186
         */
1226
         */
1187
       if (V_path_mtu_discovery)
1227
       if (V_path_mtu_discovery && tp->t_maxopd > V_tcp_minmss)
1188
                ip->ip_off |= IP_DF;
1228
                ip->ip_off |= IP_DF;
1189
        error = ip_output(m, tp->t_inpcb->inp_options, NULL,
1229
        error = ip_output(m, tp->t_inpcb->inp_options, NULL,

Return to bug 146628