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
5ccb7cea
Commit
5ccb7cea
authored
Mar 19, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update port-allocation changes to coincide with struct sock
splitup.
parent
d347bf10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
net/ipv4/tcp_ipv4.c
net/ipv4/tcp_ipv4.c
+3
-3
No files found.
net/ipv4/tcp_ipv4.c
View file @
5ccb7cea
...
...
@@ -611,8 +611,8 @@ static int __tcp_v4_check_established(struct sock *sk, __u16 lport,
unique:
/* Must record num and sport now. Otherwise we will see
* in hash table socket with a funny identity. */
sk
->
num
=
lport
;
sk
->
sport
=
htons
(
lport
);
inet
->
num
=
lport
;
inet
->
sport
=
htons
(
lport
);
BUG_TRAP
(
sk
->
pprev
==
NULL
);
if
((
sk
->
next
=
*
skp
)
!=
NULL
)
(
*
skp
)
->
pprev
=
&
sk
->
next
;
...
...
@@ -723,7 +723,7 @@ static int tcp_v4_hash_connect(struct sock *sk)
tcp_bind_hash
(
sk
,
tb
,
rover
);
if
(
!
sk
->
pprev
)
{
sk
->
sport
=
htons
(
rover
);
inet_sk
(
sk
)
->
sport
=
htons
(
rover
);
__tcp_v4_hash
(
sk
,
0
);
}
spin_unlock
(
&
head
->
lock
);
...
...
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