Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 211098
b: refs/heads/master
c: d6120b8
h: refs/heads/master
v: v3
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Sep 22, 2010
1 parent 4efff56 commit 6f089b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 15cdeadaa5d76009e20c7792aed69f5a73808f97
refs/heads/master: d6120b8afacec587f5feb37781bc751bc5d68a10
6 changes: 4 additions & 2 deletions trunk/net/ipv4/netfilter/nf_nat_snmp_basic.c
Original file line number Diff line number Diff line change
Expand Up @@ -893,13 +893,15 @@ static void fast_csum(__sum16 *csum,
unsigned char s[4];

if (offset & 1) {
s[0] = s[2] = 0;
s[0] = ~0;
s[1] = ~*optr;
s[2] = 0;
s[3] = *nptr;
} else {
s[1] = s[3] = 0;
s[0] = ~*optr;
s[1] = ~0;
s[2] = *nptr;
s[3] = 0;
}

*csum = csum_fold(csum_partial(s, 4, ~csum_unfold(*csum)));
Expand Down

0 comments on commit 6f089b6

Please sign in to comment.