[TCP]: remove tcp header from tcp_v4_check (take #2)
The tcphdr struct passed to tcp_v4_check is not used, the following patch removes it from the parameter list. This adds the netfilter modifications missing in the patch I sent for rc3-mm1. Signed-off-by: Frederik Deweerdt <frederik.deweerdt@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
a0d78ebf3a
commit
ba7808eac1
@@ -802,9 +802,8 @@ static inline void tcp_update_wl(struct tcp_sock *tp, u32 ack, u32 seq)
|
||||
/*
|
||||
* Calculate(/check) TCP checksum
|
||||
*/
|
||||
static inline __sum16 tcp_v4_check(struct tcphdr *th, int len,
|
||||
__be32 saddr, __be32 daddr,
|
||||
__wsum base)
|
||||
static inline __sum16 tcp_v4_check(int len, __be32 saddr,
|
||||
__be32 daddr, __wsum base)
|
||||
{
|
||||
return csum_tcpudp_magic(saddr,daddr,len,IPPROTO_TCP,base);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user