Lines 1280-1285
Link Here
|
1280 |
(void *)tcp_saveipgen, &tcp_savetcp, 0); |
1280 |
(void *)tcp_saveipgen, &tcp_savetcp, 0); |
1281 |
#endif |
1281 |
#endif |
1282 |
tcp_dooptions(&to, optp, optlen, TO_SYN); |
1282 |
tcp_dooptions(&to, optp, optlen, TO_SYN); |
|
|
1283 |
#ifdef INET6 |
1284 |
if (isipv6 && inp) { |
1285 |
struct ip6_pktopts *opt; |
1286 |
opt = inp->in6p_outputopts; |
1287 |
if (opt && opt->ip6po_minmtu == IP6PO_MINMTU_ALL) { |
1288 |
if (to.to_flags & TOF_MSS) |
1289 |
to.to_mss = min(to.to_mss, IPV6_MMTU); |
1290 |
else |
1291 |
to.to_mss = IPV6_MMTU; |
1292 |
} |
1293 |
} |
1294 |
#endif |
1283 |
syncache_add(&inc, &to, th, inp, &so, m); |
1295 |
syncache_add(&inc, &to, th, inp, &so, m); |
1284 |
/* |
1296 |
/* |
1285 |
* Entry added to syncache and mbuf consumed. |
1297 |
* Entry added to syncache and mbuf consumed. |
Lines 3326-3332
Link Here
|
3326 |
/* Initialize. */ |
3338 |
/* Initialize. */ |
3327 |
#ifdef INET6 |
3339 |
#ifdef INET6 |
3328 |
if (isipv6) { |
3340 |
if (isipv6) { |
|
|
3341 |
struct ip6_pktopts *opt; |
3329 |
maxmtu = tcp_maxmtu6(&inp->inp_inc, mtuflags); |
3342 |
maxmtu = tcp_maxmtu6(&inp->inp_inc, mtuflags); |
|
|
3343 |
opt = inp->inp_depend6.inp6_outputopts; |
3344 |
if (opt && opt->ip6po_minmtu == IP6PO_MINMTU_ALL) |
3345 |
maxmtu = min(maxmtu, IPV6_MMTU); |
3330 |
tp->t_maxopd = tp->t_maxseg = V_tcp_v6mssdflt; |
3346 |
tp->t_maxopd = tp->t_maxseg = V_tcp_v6mssdflt; |
3331 |
} else |
3347 |
} else |
3332 |
#endif |
3348 |
#endif |