diff options
author | Jianjun Kong <jianjun@zeuux.org> | 2008-11-03 05:49:10 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-03 05:49:10 -0500 |
commit | 5799de0b12c773874282444052da401989075df6 (patch) | |
tree | e6a823619cb4b40eb948619d14edbe42ce63b1fc /net/ipv4 | |
parent | 539afedfccb39577c9264b29f11ec9556fd45022 (diff) |
net: clean up net/ipv4/tcp_ipv4.c
Signed-off-by: Jianjun Kong <jianjun@zeuux.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/tcp_ipv4.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index ef33246e6a6f..d49233f409b5 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c | |||
@@ -1874,7 +1874,7 @@ static void *listening_get_next(struct seq_file *seq, void *cur) | |||
1874 | struct inet_connection_sock *icsk; | 1874 | struct inet_connection_sock *icsk; |
1875 | struct hlist_node *node; | 1875 | struct hlist_node *node; |
1876 | struct sock *sk = cur; | 1876 | struct sock *sk = cur; |
1877 | struct tcp_iter_state* st = seq->private; | 1877 | struct tcp_iter_state *st = seq->private; |
1878 | struct net *net = seq_file_net(seq); | 1878 | struct net *net = seq_file_net(seq); |
1879 | 1879 | ||
1880 | if (!sk) { | 1880 | if (!sk) { |
@@ -1960,7 +1960,7 @@ static inline int empty_bucket(struct tcp_iter_state *st) | |||
1960 | 1960 | ||
1961 | static void *established_get_first(struct seq_file *seq) | 1961 | static void *established_get_first(struct seq_file *seq) |
1962 | { | 1962 | { |
1963 | struct tcp_iter_state* st = seq->private; | 1963 | struct tcp_iter_state *st = seq->private; |
1964 | struct net *net = seq_file_net(seq); | 1964 | struct net *net = seq_file_net(seq); |
1965 | void *rc = NULL; | 1965 | void *rc = NULL; |
1966 | 1966 | ||
@@ -2005,7 +2005,7 @@ static void *established_get_next(struct seq_file *seq, void *cur) | |||
2005 | struct sock *sk = cur; | 2005 | struct sock *sk = cur; |
2006 | struct inet_timewait_sock *tw; | 2006 | struct inet_timewait_sock *tw; |
2007 | struct hlist_node *node; | 2007 | struct hlist_node *node; |
2008 | struct tcp_iter_state* st = seq->private; | 2008 | struct tcp_iter_state *st = seq->private; |
2009 | struct net *net = seq_file_net(seq); | 2009 | struct net *net = seq_file_net(seq); |
2010 | 2010 | ||
2011 | ++st->num; | 2011 | ++st->num; |
@@ -2064,7 +2064,7 @@ static void *established_get_idx(struct seq_file *seq, loff_t pos) | |||
2064 | static void *tcp_get_idx(struct seq_file *seq, loff_t pos) | 2064 | static void *tcp_get_idx(struct seq_file *seq, loff_t pos) |
2065 | { | 2065 | { |
2066 | void *rc; | 2066 | void *rc; |
2067 | struct tcp_iter_state* st = seq->private; | 2067 | struct tcp_iter_state *st = seq->private; |
2068 | 2068 | ||
2069 | inet_listen_lock(&tcp_hashinfo); | 2069 | inet_listen_lock(&tcp_hashinfo); |
2070 | st->state = TCP_SEQ_STATE_LISTENING; | 2070 | st->state = TCP_SEQ_STATE_LISTENING; |
@@ -2081,7 +2081,7 @@ static void *tcp_get_idx(struct seq_file *seq, loff_t pos) | |||
2081 | 2081 | ||
2082 | static void *tcp_seq_start(struct seq_file *seq, loff_t *pos) | 2082 | static void *tcp_seq_start(struct seq_file *seq, loff_t *pos) |
2083 | { | 2083 | { |
2084 | struct tcp_iter_state* st = seq->private; | 2084 | struct tcp_iter_state *st = seq->private; |
2085 | st->state = TCP_SEQ_STATE_LISTENING; | 2085 | st->state = TCP_SEQ_STATE_LISTENING; |
2086 | st->num = 0; | 2086 | st->num = 0; |
2087 | return *pos ? tcp_get_idx(seq, *pos - 1) : SEQ_START_TOKEN; | 2087 | return *pos ? tcp_get_idx(seq, *pos - 1) : SEQ_START_TOKEN; |
@@ -2090,7 +2090,7 @@ static void *tcp_seq_start(struct seq_file *seq, loff_t *pos) | |||
2090 | static void *tcp_seq_next(struct seq_file *seq, void *v, loff_t *pos) | 2090 | static void *tcp_seq_next(struct seq_file *seq, void *v, loff_t *pos) |
2091 | { | 2091 | { |
2092 | void *rc = NULL; | 2092 | void *rc = NULL; |
2093 | struct tcp_iter_state* st; | 2093 | struct tcp_iter_state *st; |
2094 | 2094 | ||
2095 | if (v == SEQ_START_TOKEN) { | 2095 | if (v == SEQ_START_TOKEN) { |
2096 | rc = tcp_get_idx(seq, 0); | 2096 | rc = tcp_get_idx(seq, 0); |
@@ -2120,7 +2120,7 @@ out: | |||
2120 | 2120 | ||
2121 | static void tcp_seq_stop(struct seq_file *seq, void *v) | 2121 | static void tcp_seq_stop(struct seq_file *seq, void *v) |
2122 | { | 2122 | { |
2123 | struct tcp_iter_state* st = seq->private; | 2123 | struct tcp_iter_state *st = seq->private; |
2124 | 2124 | ||
2125 | switch (st->state) { | 2125 | switch (st->state) { |
2126 | case TCP_SEQ_STATE_OPENREQ: | 2126 | case TCP_SEQ_STATE_OPENREQ: |
@@ -2281,7 +2281,7 @@ static void get_timewait4_sock(struct inet_timewait_sock *tw, | |||
2281 | 2281 | ||
2282 | static int tcp4_seq_show(struct seq_file *seq, void *v) | 2282 | static int tcp4_seq_show(struct seq_file *seq, void *v) |
2283 | { | 2283 | { |
2284 | struct tcp_iter_state* st; | 2284 | struct tcp_iter_state *st; |
2285 | int len; | 2285 | int len; |
2286 | 2286 | ||
2287 | if (v == SEQ_START_TOKEN) { | 2287 | if (v == SEQ_START_TOKEN) { |