mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
[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>
This commit is contained in:
committed by
David S. Miller
parent
c40896de50
commit
9cb5734e5b
@@ -1155,7 +1155,8 @@ extern int tcp_v4_calc_md5_hash(char *md5_hash,
|
||||
struct dst_entry *dst,
|
||||
struct request_sock *req,
|
||||
struct tcphdr *th,
|
||||
int protocol, int tcplen);
|
||||
int protocol,
|
||||
unsigned int tcplen);
|
||||
extern struct tcp_md5sig_key *tcp_v4_md5_lookup(struct sock *sk,
|
||||
struct sock *addr_sk);
|
||||
|
||||
@@ -1404,7 +1405,8 @@ struct tcp_sock_af_ops {
|
||||
struct dst_entry *dst,
|
||||
struct request_sock *req,
|
||||
struct tcphdr *th,
|
||||
int protocol, int len);
|
||||
int protocol,
|
||||
unsigned int len);
|
||||
int (*md5_add) (struct sock *sk,
|
||||
struct sock *addr_sk,
|
||||
u8 *newkey,
|
||||
|
||||
Reference in New Issue
Block a user