Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 121889
b: refs/heads/master
c: d171235
h: refs/heads/master
i:
  121887: 4e2e486
v: v3
  • Loading branch information
Joe Perches authored and David S. Miller committed Nov 19, 2008
1 parent 5b60469 commit 202ce65
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 07f0757a6808f2f36a0e58c3a54867ccffdb8dc9
refs/heads/master: d171235e712c11c0a0f47f62619024bf726125e1
8 changes: 4 additions & 4 deletions trunk/drivers/s390/net/qeth_core_offl.c
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ static __wsum qeth_eddp_check_tcp4_hdr(struct qeth_eddp_data *eddp,
phcsum = csum_tcpudp_nofold(eddp->nh.ip4.h.saddr, eddp->nh.ip4.h.daddr,
eddp->thl + data_len, IPPROTO_TCP, 0);
/* compute checksum of tcp header */
return csum_partial((u8 *)&eddp->th, eddp->thl, phcsum);
return csum_partial(&eddp->th, eddp->thl, phcsum);
}

static __wsum qeth_eddp_check_tcp6_hdr(struct qeth_eddp_data *eddp,
Expand All @@ -362,12 +362,12 @@ static __wsum qeth_eddp_check_tcp6_hdr(struct qeth_eddp_data *eddp,
QETH_DBF_TEXT(TRACE, 5, "eddpckt6");
eddp->th.tcp.h.check = 0;
/* compute pseudo header checksum */
phcsum = csum_partial((u8 *)&eddp->nh.ip6.h.saddr,
phcsum = csum_partial(&eddp->nh.ip6.h.saddr,
sizeof(struct in6_addr), 0);
phcsum = csum_partial((u8 *)&eddp->nh.ip6.h.daddr,
phcsum = csum_partial(&eddp->nh.ip6.h.daddr,
sizeof(struct in6_addr), phcsum);
proto = htonl(IPPROTO_TCP);
phcsum = csum_partial((u8 *)&proto, sizeof(u32), phcsum);
phcsum = csum_partial(&proto, sizeof(u32), phcsum);
return phcsum;
}

Expand Down

0 comments on commit 202ce65

Please sign in to comment.