Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F168242689
D10135.id26650.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
982 B
Referenced Files
None
Subscribers
None
D10135.id26650.diff
View Options
Index: sys/netinet/tcp_output.c
===================================================================
--- sys/netinet/tcp_output.c
+++ sys/netinet/tcp_output.c
@@ -1377,9 +1377,6 @@
*/
#ifdef INET6
if (isipv6) {
- struct route_in6 ro;
-
- bzero(&ro, sizeof(ro));
/*
* we separately set hoplimit for every segment, since the
* user might want to change the value via setsockopt.
@@ -1411,13 +1408,13 @@
#endif
/* TODO: IPv6 IP6TOS_ECT bit on */
- error = ip6_output(m, tp->t_inpcb->in6p_outputopts, &ro,
+ error = ip6_output(m, tp->t_inpcb->in6p_outputopts,
+ &tp->t_inpcb->inp_route6,
((so->so_options & SO_DONTROUTE) ? IP_ROUTETOIF : 0),
NULL, NULL, tp->t_inpcb);
- if (error == EMSGSIZE && ro.ro_rt != NULL)
- mtu = ro.ro_rt->rt_mtu;
- RO_RTFREE(&ro);
+ if (error == EMSGSIZE && tp->t_inpcb->inp_route6.ro_rt != NULL)
+ mtu = tp->t_inpcb->inp_route6.ro_rt->rt_mtu;
}
#endif /* INET6 */
#if defined(INET) && defined(INET6)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Aug 28, 3:26 AM (9 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37432536
Default Alt Text
D10135.id26650.diff (982 B)
Attached To
Mode
D10135: Enable route and LLE (ndp) caching in TCP/IPv6
Attached
Detach File
Event Timeline
Log In to Comment