Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202945
b: refs/heads/master
c: c86ee67
h: refs/heads/master
i:
  202943: bd4a035
v: v3
  • Loading branch information
Shan Wei authored and Patrick McHardy committed Jun 14, 2010
1 parent 3e109af commit cd7505f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 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: f5c5440d40a24c5dc8030cde0a03debe87de4afb
refs/heads/master: c86ee67c7c4bbab2818f653eb00a70671821624a
4 changes: 1 addition & 3 deletions trunk/net/ipv4/netfilter.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,7 @@ static __sum16 nf_ip_checksum_partial(struct sk_buff *skb, unsigned int hook,
skb->csum = csum_tcpudp_nofold(iph->saddr, iph->daddr, protocol,
skb->len - dataoff, 0);
skb->ip_summed = CHECKSUM_NONE;
csum = __skb_checksum_complete_head(skb, dataoff + len);
if (!csum)
skb->ip_summed = CHECKSUM_UNNECESSARY;
return __skb_checksum_complete_head(skb, dataoff + len);
}
return csum;
}
Expand Down
4 changes: 1 addition & 3 deletions trunk/net/ipv6/netfilter.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,7 @@ static __sum16 nf_ip6_checksum_partial(struct sk_buff *skb, unsigned int hook,
protocol,
csum_sub(0, hsum)));
skb->ip_summed = CHECKSUM_NONE;
csum = __skb_checksum_complete_head(skb, dataoff + len);
if (!csum)
skb->ip_summed = CHECKSUM_UNNECESSARY;
return __skb_checksum_complete_head(skb, dataoff + len);
}
return csum;
};
Expand Down

0 comments on commit cd7505f

Please sign in to comment.