Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 41712
b: refs/heads/master
c: 6b11687
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro authored and David S. Miller committed Dec 3, 2006
1 parent a10ba65 commit ea43253
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d6f5493c1a42b1203e5b0cb0507afd00bb2927bf
refs/heads/master: 6b11687ef003ed595033da89643c8995676f929d
6 changes: 3 additions & 3 deletions trunk/include/net/tcp.h
Original file line number Diff line number Diff line change
Expand Up @@ -807,9 +807,9 @@ static inline void tcp_update_wl(struct tcp_sock *tp, u32 ack, u32 seq)
/*
* Calculate(/check) TCP checksum
*/
static inline u16 tcp_v4_check(struct tcphdr *th, int len,
unsigned long saddr, unsigned long daddr,
unsigned long base)
static inline __sum16 tcp_v4_check(struct tcphdr *th, int len,
__be32 saddr, __be32 daddr,
__wsum base)
{
return csum_tcpudp_magic(saddr,daddr,len,IPPROTO_TCP,base);
}
Expand Down
3 changes: 2 additions & 1 deletion trunk/net/ipv4/udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,9 @@ static void udp_flush_pending_frames(struct sock *sk)
static void udp4_hwcsum_outgoing(struct sock *sk, struct sk_buff *skb,
__be32 src, __be32 dst, int len )
{
unsigned int csum = 0, offset;
unsigned int offset;
struct udphdr *uh = skb->h.uh;
__wsum csum = 0;

if (skb_queue_len(&sk->sk_write_queue) == 1) {
/*
Expand Down

0 comments on commit ea43253

Please sign in to comment.