diff options
author | Arnaldo Carvalho de Melo <acme@ghostprotocols.net> | 2005-06-19 01:48:55 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-06-19 01:48:55 -0400 |
commit | 2ad69c55a282315e6119cf7fd744f26a925bdfd2 (patch) | |
tree | 85350a384e5c1c6646bd8f9e75c6f11c1f6752ff /include/net | |
parent | 0e87506fcc734647c7b2497eee4eb81e785c857a (diff) |
[NET] rename struct tcp_listen_opt to struct listen_sock
Signed-off-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/request_sock.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/net/request_sock.h b/include/net/request_sock.h index 38943ed04e73..72fd6f5e86b1 100644 --- a/include/net/request_sock.h +++ b/include/net/request_sock.h | |||
@@ -78,11 +78,11 @@ static inline void reqsk_free(struct request_sock *req) | |||
78 | 78 | ||
79 | extern int sysctl_max_syn_backlog; | 79 | extern int sysctl_max_syn_backlog; |
80 | 80 | ||
81 | /** struct tcp_listen_opt - listen state | 81 | /** struct listen_sock - listen state |
82 | * | 82 | * |
83 | * @max_qlen_log - log_2 of maximal queued SYNs/REQUESTs | 83 | * @max_qlen_log - log_2 of maximal queued SYNs/REQUESTs |
84 | */ | 84 | */ |
85 | struct tcp_listen_opt { | 85 | struct listen_sock { |
86 | u8 max_qlen_log; | 86 | u8 max_qlen_log; |
87 | /* 3 bytes hole, try to use */ | 87 | /* 3 bytes hole, try to use */ |
88 | int qlen; | 88 | int qlen; |
@@ -111,15 +111,15 @@ struct request_sock_queue { | |||
111 | struct request_sock *rskq_accept_head; | 111 | struct request_sock *rskq_accept_head; |
112 | struct request_sock *rskq_accept_tail; | 112 | struct request_sock *rskq_accept_tail; |
113 | rwlock_t syn_wait_lock; | 113 | rwlock_t syn_wait_lock; |
114 | struct tcp_listen_opt *listen_opt; | 114 | struct listen_sock *listen_opt; |
115 | }; | 115 | }; |
116 | 116 | ||
117 | extern int reqsk_queue_alloc(struct request_sock_queue *queue, | 117 | extern int reqsk_queue_alloc(struct request_sock_queue *queue, |
118 | const int nr_table_entries); | 118 | const int nr_table_entries); |
119 | 119 | ||
120 | static inline struct tcp_listen_opt *reqsk_queue_yank_listen_sk(struct request_sock_queue *queue) | 120 | static inline struct listen_sock *reqsk_queue_yank_listen_sk(struct request_sock_queue *queue) |
121 | { | 121 | { |
122 | struct tcp_listen_opt *lopt; | 122 | struct listen_sock *lopt; |
123 | 123 | ||
124 | write_lock_bh(&queue->syn_wait_lock); | 124 | write_lock_bh(&queue->syn_wait_lock); |
125 | lopt = queue->listen_opt; | 125 | lopt = queue->listen_opt; |
@@ -203,7 +203,7 @@ static inline struct sock *reqsk_queue_get_child(struct request_sock_queue *queu | |||
203 | static inline int reqsk_queue_removed(struct request_sock_queue *queue, | 203 | static inline int reqsk_queue_removed(struct request_sock_queue *queue, |
204 | struct request_sock *req) | 204 | struct request_sock *req) |
205 | { | 205 | { |
206 | struct tcp_listen_opt *lopt = queue->listen_opt; | 206 | struct listen_sock *lopt = queue->listen_opt; |
207 | 207 | ||
208 | if (req->retrans == 0) | 208 | if (req->retrans == 0) |
209 | --lopt->qlen_young; | 209 | --lopt->qlen_young; |
@@ -213,7 +213,7 @@ static inline int reqsk_queue_removed(struct request_sock_queue *queue, | |||
213 | 213 | ||
214 | static inline int reqsk_queue_added(struct request_sock_queue *queue) | 214 | static inline int reqsk_queue_added(struct request_sock_queue *queue) |
215 | { | 215 | { |
216 | struct tcp_listen_opt *lopt = queue->listen_opt; | 216 | struct listen_sock *lopt = queue->listen_opt; |
217 | const int prev_qlen = lopt->qlen; | 217 | const int prev_qlen = lopt->qlen; |
218 | 218 | ||
219 | lopt->qlen_young++; | 219 | lopt->qlen_young++; |
@@ -240,7 +240,7 @@ static inline void reqsk_queue_hash_req(struct request_sock_queue *queue, | |||
240 | u32 hash, struct request_sock *req, | 240 | u32 hash, struct request_sock *req, |
241 | unsigned timeout) | 241 | unsigned timeout) |
242 | { | 242 | { |
243 | struct tcp_listen_opt *lopt = queue->listen_opt; | 243 | struct listen_sock *lopt = queue->listen_opt; |
244 | 244 | ||
245 | req->expires = jiffies + timeout; | 245 | req->expires = jiffies + timeout; |
246 | req->retrans = 0; | 246 | req->retrans = 0; |