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
7c411484
Commit
7c411484
authored
Nov 08, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TCP]: Normalize jiffies values reported to userspace.
parent
ae40e4b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
net/ipv4/tcp_ipv4.c
net/ipv4/tcp_ipv4.c
+5
-3
net/ipv6/tcp_ipv6.c
net/ipv6/tcp_ipv6.c
+5
-3
No files found.
net/ipv4/tcp_ipv4.c
View file @
7c411484
...
@@ -61,6 +61,7 @@
...
@@ -61,6 +61,7 @@
#include <linux/cache.h>
#include <linux/cache.h>
#include <linux/jhash.h>
#include <linux/jhash.h>
#include <linux/init.h>
#include <linux/init.h>
#include <linux/times.h>
#include <net/icmp.h>
#include <net/icmp.h>
#include <net/tcp.h>
#include <net/tcp.h>
...
@@ -2490,7 +2491,7 @@ static void get_openreq4(struct sock *sk, struct open_request *req,
...
@@ -2490,7 +2491,7 @@ static void get_openreq4(struct sock *sk, struct open_request *req,
TCP_SYN_RECV
,
TCP_SYN_RECV
,
0
,
0
,
/* could print option size, but that is af dependent. */
0
,
0
,
/* could print option size, but that is af dependent. */
1
,
/* timers active (only the expire timer) */
1
,
/* timers active (only the expire timer) */
ttd
,
jiffies_to_clock_t
(
ttd
)
,
req
->
retrans
,
req
->
retrans
,
uid
,
uid
,
0
,
/* non standard timer */
0
,
/* non standard timer */
...
@@ -2528,7 +2529,8 @@ static void get_tcp4_sock(struct sock *sp, char *tmpbuf, int i)
...
@@ -2528,7 +2529,8 @@ static void get_tcp4_sock(struct sock *sp, char *tmpbuf, int i)
"%08X %5d %8d %lu %d %p %u %u %u %u %d"
,
"%08X %5d %8d %lu %d %p %u %u %u %u %d"
,
i
,
src
,
srcp
,
dest
,
destp
,
sp
->
sk_state
,
i
,
src
,
srcp
,
dest
,
destp
,
sp
->
sk_state
,
tp
->
write_seq
-
tp
->
snd_una
,
tp
->
rcv_nxt
-
tp
->
copied_seq
,
tp
->
write_seq
-
tp
->
snd_una
,
tp
->
rcv_nxt
-
tp
->
copied_seq
,
timer_active
,
timer_expires
-
jiffies
,
timer_active
,
jiffies_to_clock_t
(
timer_expires
-
jiffies
),
tp
->
retransmits
,
tp
->
retransmits
,
sock_i_uid
(
sp
),
sock_i_uid
(
sp
),
tp
->
probes_out
,
tp
->
probes_out
,
...
@@ -2556,7 +2558,7 @@ static void get_timewait4_sock(struct tcp_tw_bucket *tw, char *tmpbuf, int i)
...
@@ -2556,7 +2558,7 @@ static void get_timewait4_sock(struct tcp_tw_bucket *tw, char *tmpbuf, int i)
sprintf
(
tmpbuf
,
"%4d: %08X:%04X %08X:%04X"
sprintf
(
tmpbuf
,
"%4d: %08X:%04X %08X:%04X"
" %02X %08X:%08X %02X:%08X %08X %5d %8d %d %d %p"
,
" %02X %08X:%08X %02X:%08X %08X %5d %8d %d %d %p"
,
i
,
src
,
srcp
,
dest
,
destp
,
tw
->
tw_substate
,
0
,
0
,
i
,
src
,
srcp
,
dest
,
destp
,
tw
->
tw_substate
,
0
,
0
,
3
,
ttd
,
0
,
0
,
0
,
0
,
3
,
jiffies_to_clock_t
(
ttd
)
,
0
,
0
,
0
,
0
,
atomic_read
(
&
tw
->
tw_refcnt
),
tw
);
atomic_read
(
&
tw
->
tw_refcnt
),
tw
);
}
}
...
...
net/ipv6/tcp_ipv6.c
View file @
7c411484
...
@@ -39,6 +39,7 @@
...
@@ -39,6 +39,7 @@
#include <linux/init.h>
#include <linux/init.h>
#include <linux/jhash.h>
#include <linux/jhash.h>
#include <linux/ipsec.h>
#include <linux/ipsec.h>
#include <linux/times.h>
#include <linux/ipv6.h>
#include <linux/ipv6.h>
#include <linux/icmpv6.h>
#include <linux/icmpv6.h>
...
@@ -1941,7 +1942,7 @@ static void get_openreq6(struct seq_file *seq,
...
@@ -1941,7 +1942,7 @@ static void get_openreq6(struct seq_file *seq,
TCP_SYN_RECV
,
TCP_SYN_RECV
,
0
,
0
,
/* could print option size, but that is af dependent. */
0
,
0
,
/* could print option size, but that is af dependent. */
1
,
/* timers active (only the expire timer) */
1
,
/* timers active (only the expire timer) */
ttd
,
jiffies_to_clock_t
(
ttd
)
,
req
->
retrans
,
req
->
retrans
,
uid
,
uid
,
0
,
/* non standard timer */
0
,
/* non standard timer */
...
@@ -1987,7 +1988,8 @@ static void get_tcp6_sock(struct seq_file *seq, struct sock *sp, int i)
...
@@ -1987,7 +1988,8 @@ static void get_tcp6_sock(struct seq_file *seq, struct sock *sp, int i)
dest
->
s6_addr32
[
2
],
dest
->
s6_addr32
[
3
],
destp
,
dest
->
s6_addr32
[
2
],
dest
->
s6_addr32
[
3
],
destp
,
sp
->
sk_state
,
sp
->
sk_state
,
tp
->
write_seq
-
tp
->
snd_una
,
tp
->
rcv_nxt
-
tp
->
copied_seq
,
tp
->
write_seq
-
tp
->
snd_una
,
tp
->
rcv_nxt
-
tp
->
copied_seq
,
timer_active
,
timer_expires
-
jiffies
,
timer_active
,
jiffies_to_clock_t
(
timer_expires
-
jiffies
),
tp
->
retransmits
,
tp
->
retransmits
,
sock_i_uid
(
sp
),
sock_i_uid
(
sp
),
tp
->
probes_out
,
tp
->
probes_out
,
...
@@ -2022,7 +2024,7 @@ static void get_timewait6_sock(struct seq_file *seq,
...
@@ -2022,7 +2024,7 @@ static void get_timewait6_sock(struct seq_file *seq,
dest
->
s6_addr32
[
0
],
dest
->
s6_addr32
[
1
],
dest
->
s6_addr32
[
0
],
dest
->
s6_addr32
[
1
],
dest
->
s6_addr32
[
2
],
dest
->
s6_addr32
[
3
],
destp
,
dest
->
s6_addr32
[
2
],
dest
->
s6_addr32
[
3
],
destp
,
tw
->
tw_substate
,
0
,
0
,
tw
->
tw_substate
,
0
,
0
,
3
,
ttd
,
0
,
0
,
0
,
0
,
3
,
jiffies_to_clock_t
(
ttd
)
,
0
,
0
,
0
,
0
,
atomic_read
(
&
tw
->
tw_refcnt
),
tw
);
atomic_read
(
&
tw
->
tw_refcnt
),
tw
);
}
}
...
...
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