Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
32a352e6
Commit
32a352e6
authored
Jun 17, 2002
by
Russell King
Committed by
David S. Miller
Jun 17, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net/ipv6/tcp_ipv6.c: Fix new socket creation.
parent
81e39992
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
net/ipv6/tcp_ipv6.c
net/ipv6/tcp_ipv6.c
+12
-0
No files found.
net/ipv6/tcp_ipv6.c
View file @
32a352e6
...
...
@@ -1240,6 +1240,7 @@ static struct sock * tcp_v6_syn_recv_sock(struct sock *sk, struct sk_buff *skb,
struct
dst_entry
*
dst
)
{
struct
ipv6_pinfo
*
newnp
,
*
np
=
inet6_sk
(
sk
);
struct
tcp6_sock
*
newtcp6sk
;
struct
flowi
fl
;
struct
inet_opt
*
newinet
;
struct
tcp_opt
*
newtp
;
...
...
@@ -1256,10 +1257,15 @@ static struct sock * tcp_v6_syn_recv_sock(struct sock *sk, struct sk_buff *skb,
if
(
newsk
==
NULL
)
return
NULL
;
newtcp6sk
=
(
struct
tcp6_sock
*
)
newsk
;
newtcp6sk
->
pinet6
=
&
newtcp6sk
->
inet6
;
newinet
=
inet_sk
(
newsk
);
newnp
=
inet6_sk
(
newsk
);
newtp
=
tcp_sk
(
newsk
);
memcpy
(
newnp
,
np
,
sizeof
(
struct
ipv6_pinfo
));
ipv6_addr_set
(
&
newnp
->
daddr
,
0
,
0
,
htonl
(
0x0000FFFF
),
newinet
->
daddr
);
...
...
@@ -1336,9 +1342,15 @@ static struct sock * tcp_v6_syn_recv_sock(struct sock *sk, struct sk_buff *skb,
ip6_dst_store
(
newsk
,
dst
,
NULL
);
sk
->
route_caps
=
dst
->
dev
->
features
&~
NETIF_F_IP_CSUM
;
newtcp6sk
=
(
struct
tcp6_sock
*
)
newsk
;
newtcp6sk
->
pinet6
=
&
newtcp6sk
->
inet6
;
newtp
=
tcp_sk
(
newsk
);
newinet
=
inet_sk
(
newsk
);
newnp
=
inet6_sk
(
newsk
);
memcpy
(
newnp
,
np
,
sizeof
(
struct
ipv6_pinfo
));
ipv6_addr_copy
(
&
newnp
->
daddr
,
&
req
->
af
.
v6_req
.
rmt_addr
);
ipv6_addr_copy
(
&
newnp
->
saddr
,
&
req
->
af
.
v6_req
.
loc_addr
);
ipv6_addr_copy
(
&
newnp
->
rcv_saddr
,
&
req
->
af
.
v6_req
.
loc_addr
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment