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
Kirill Smelkov
linux
Commits
27890f3b
Commit
27890f3b
authored
Oct 13, 2003
by
Tim Shepard
Committed by
David S. Miller
Oct 13, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TCP]: Fix missing connections in /proc/net/tcp
parent
359a118a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
net/ipv4/tcp_ipv4.c
net/ipv4/tcp_ipv4.c
+10
-8
No files found.
net/ipv4/tcp_ipv4.c
View file @
27890f3b
...
...
@@ -2235,10 +2235,11 @@ static void *listening_get_idx(struct seq_file *seq, loff_t *pos)
{
void
*
rc
=
listening_get_first
(
seq
);
if
(
rc
)
while
(
*
pos
&&
(
rc
=
listening_get_next
(
seq
,
rc
)))
while
(
rc
&&
*
pos
)
{
rc
=
listening_get_next
(
seq
,
rc
);
--*
pos
;
return
*
pos
?
NULL
:
rc
;
}
return
rc
;
}
static
void
*
established_get_first
(
struct
seq_file
*
seq
)
...
...
@@ -2327,10 +2328,11 @@ static void *established_get_idx(struct seq_file *seq, loff_t pos)
{
void
*
rc
=
established_get_first
(
seq
);
if
(
rc
)
while
(
pos
&&
(
rc
=
established_get_next
(
seq
,
rc
)))
while
(
rc
&&
pos
)
{
rc
=
established_get_next
(
seq
,
rc
);
--
pos
;
return
pos
?
NULL
:
rc
;
}
return
rc
;
}
static
void
*
tcp_get_idx
(
struct
seq_file
*
seq
,
loff_t
pos
)
...
...
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