Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142770811
D16792.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
843 B
Referenced Files
None
Subscribers
None
D16792.diff
View Options
Index: head/sys/netinet/tcp_syncache.c
===================================================================
--- head/sys/netinet/tcp_syncache.c
+++ head/sys/netinet/tcp_syncache.c
@@ -770,10 +770,9 @@
goto abort;
}
#ifdef INET6
- if (sc->sc_inc.inc_flags & INC_ISIPV6) {
+ if (inp->inp_vflag & INP_IPV6PROTO) {
struct inpcb *oinp = sotoinpcb(lso);
- struct in6_addr laddr6;
- struct sockaddr_in6 sin6;
+
/*
* Inherit socket options from the listening socket.
* Note that in6p_inputopts are not (and should not be)
@@ -787,6 +786,11 @@
if (oinp->in6p_outputopts)
inp->in6p_outputopts =
ip6_copypktopts(oinp->in6p_outputopts, M_NOWAIT);
+ }
+
+ if (sc->sc_inc.inc_flags & INC_ISIPV6) {
+ struct in6_addr laddr6;
+ struct sockaddr_in6 sin6;
sin6.sin6_family = AF_INET6;
sin6.sin6_len = sizeof(sin6);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 24, 9:36 AM (12 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27895598
Default Alt Text
D16792.diff (843 B)
Attached To
Mode
D16792: Fix inheritance of IPv6 options
Attached
Detach File
Event Timeline
Log In to Comment