diff options
Diffstat (limited to 'net/ipv4/tcp_probe.c')
-rw-r--r-- | net/ipv4/tcp_probe.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/net/ipv4/tcp_probe.c b/net/ipv4/tcp_probe.c index 3b66610d4156..ebf5ff57526e 100644 --- a/net/ipv4/tcp_probe.c +++ b/net/ipv4/tcp_probe.c | |||
@@ -83,7 +83,6 @@ static struct { | |||
83 | struct tcp_log *log; | 83 | struct tcp_log *log; |
84 | } tcp_probe; | 84 | } tcp_probe; |
85 | 85 | ||
86 | |||
87 | static inline int tcp_probe_used(void) | 86 | static inline int tcp_probe_used(void) |
88 | { | 87 | { |
89 | return (tcp_probe.head - tcp_probe.tail) & (bufsize - 1); | 88 | return (tcp_probe.head - tcp_probe.tail) & (bufsize - 1); |
@@ -101,7 +100,6 @@ static inline int tcp_probe_avail(void) | |||
101 | si4.sin_addr.s_addr = inet->inet_##mem##addr; \ | 100 | si4.sin_addr.s_addr = inet->inet_##mem##addr; \ |
102 | } while (0) \ | 101 | } while (0) \ |
103 | 102 | ||
104 | |||
105 | /* | 103 | /* |
106 | * Hook inserted to be called before each receive packet. | 104 | * Hook inserted to be called before each receive packet. |
107 | * Note: arguments must match tcp_rcv_established()! | 105 | * Note: arguments must match tcp_rcv_established()! |
@@ -194,8 +192,8 @@ static int tcpprobe_sprint(char *tbuf, int n) | |||
194 | 192 | ||
195 | return scnprintf(tbuf, n, | 193 | return scnprintf(tbuf, n, |
196 | "%lu.%09lu %pISpc %pISpc %d %#x %#x %u %u %u %u %u\n", | 194 | "%lu.%09lu %pISpc %pISpc %d %#x %#x %u %u %u %u %u\n", |
197 | (unsigned long) tv.tv_sec, | 195 | (unsigned long)tv.tv_sec, |
198 | (unsigned long) tv.tv_nsec, | 196 | (unsigned long)tv.tv_nsec, |
199 | &p->src, &p->dst, p->length, p->snd_nxt, p->snd_una, | 197 | &p->src, &p->dst, p->length, p->snd_nxt, p->snd_una, |
200 | p->snd_cwnd, p->ssthresh, p->snd_wnd, p->srtt, p->rcv_wnd); | 198 | p->snd_cwnd, p->ssthresh, p->snd_wnd, p->srtt, p->rcv_wnd); |
201 | } | 199 | } |