aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/tcp.h
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2008-01-12 05:16:03 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 17:59:56 -0500
commit9cb5734e5b9b26097c7fa28a9c6426a204cc15e3 (patch)
treea8a098affaa86890b49ce7d52dc365d34213e188 /include/net/tcp.h
parentc40896de50c73e7835b34f23bea96625edd9d6c4 (diff)
[TCP]: Convert several length variable to unsigned.
Several length variables cannot be negative, so convert int to unsigned int. This also allows us to do sane shift operations on those variables. Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r--include/net/tcp.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h
index 5ec1cacca8a1..13ebe11a0af7 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -1155,7 +1155,8 @@ extern int tcp_v4_calc_md5_hash(char *md5_hash,
1155 struct dst_entry *dst, 1155 struct dst_entry *dst,
1156 struct request_sock *req, 1156 struct request_sock *req,
1157 struct tcphdr *th, 1157 struct tcphdr *th,
1158 int protocol, int tcplen); 1158 int protocol,
1159 unsigned int tcplen);
1159extern struct tcp_md5sig_key *tcp_v4_md5_lookup(struct sock *sk, 1160extern struct tcp_md5sig_key *tcp_v4_md5_lookup(struct sock *sk,
1160 struct sock *addr_sk); 1161 struct sock *addr_sk);
1161 1162
@@ -1404,7 +1405,8 @@ struct tcp_sock_af_ops {
1404 struct dst_entry *dst, 1405 struct dst_entry *dst,
1405 struct request_sock *req, 1406 struct request_sock *req,
1406 struct tcphdr *th, 1407 struct tcphdr *th,
1407 int protocol, int len); 1408 int protocol,
1409 unsigned int len);
1408 int (*md5_add) (struct sock *sk, 1410 int (*md5_add) (struct sock *sk,
1409 struct sock *addr_sk, 1411 struct sock *addr_sk,
1410 u8 *newkey, 1412 u8 *newkey,