summaryrefslogtreecommitdiffstats
path: root/include/net/tcp.h
diff options
context:
space:
mode:
authorKenjiro Nakayama <nakayamakenjiro@gmail.com>2014-10-20 05:15:50 -0400
committerDavid S. Miller <davem@davemloft.net>2014-10-24 00:13:10 -0400
commit105970f6087ae240b00deaff85773ed9bf381145 (patch)
tree274661b0ebd79afd4d76333da5b5fa614b5fb8d7 /include/net/tcp.h
parent942396b01989d54977120f3625e5ba31afe7a75c (diff)
net: Remove trailing whitespace in tcp.h icmp.c syncookies.c
Remove trailing whitespace in tcp.h icmp.c syncookies.c Signed-off-by: Kenjiro Nakayama <nakayamakenjiro@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r--include/net/tcp.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h
index 4062b4f0d121..c73fc145ee45 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -55,9 +55,9 @@ void tcp_time_wait(struct sock *sk, int state, int timeo);
55#define MAX_TCP_HEADER (128 + MAX_HEADER) 55#define MAX_TCP_HEADER (128 + MAX_HEADER)
56#define MAX_TCP_OPTION_SPACE 40 56#define MAX_TCP_OPTION_SPACE 40
57 57
58/* 58/*
59 * Never offer a window over 32767 without using window scaling. Some 59 * Never offer a window over 32767 without using window scaling. Some
60 * poor stacks do signed 16bit maths! 60 * poor stacks do signed 16bit maths!
61 */ 61 */
62#define MAX_TCP_WINDOW 32767U 62#define MAX_TCP_WINDOW 32767U
63 63
@@ -167,7 +167,7 @@ void tcp_time_wait(struct sock *sk, int state, int timeo);
167/* 167/*
168 * TCP option 168 * TCP option
169 */ 169 */
170 170
171#define TCPOPT_NOP 1 /* Padding */ 171#define TCPOPT_NOP 1 /* Padding */
172#define TCPOPT_EOL 0 /* End of options */ 172#define TCPOPT_EOL 0 /* End of options */
173#define TCPOPT_MSS 2 /* Segment size negotiating */ 173#define TCPOPT_MSS 2 /* Segment size negotiating */
@@ -1104,16 +1104,16 @@ static inline int tcp_win_from_space(int space)
1104 space - (space>>sysctl_tcp_adv_win_scale); 1104 space - (space>>sysctl_tcp_adv_win_scale);
1105} 1105}
1106 1106
1107/* Note: caller must be prepared to deal with negative returns */ 1107/* Note: caller must be prepared to deal with negative returns */
1108static inline int tcp_space(const struct sock *sk) 1108static inline int tcp_space(const struct sock *sk)
1109{ 1109{
1110 return tcp_win_from_space(sk->sk_rcvbuf - 1110 return tcp_win_from_space(sk->sk_rcvbuf -
1111 atomic_read(&sk->sk_rmem_alloc)); 1111 atomic_read(&sk->sk_rmem_alloc));
1112} 1112}
1113 1113
1114static inline int tcp_full_space(const struct sock *sk) 1114static inline int tcp_full_space(const struct sock *sk)
1115{ 1115{
1116 return tcp_win_from_space(sk->sk_rcvbuf); 1116 return tcp_win_from_space(sk->sk_rcvbuf);
1117} 1117}
1118 1118
1119static inline void tcp_openreq_init(struct request_sock *req, 1119static inline void tcp_openreq_init(struct request_sock *req,