mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
sctp: Use frag list abstraction interfaces.
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
5c313e9a77
commit
1b003be39e
3 changed files with 8 additions and 9 deletions
|
@ -81,13 +81,13 @@ static void sctp_add_backlog(struct sock *sk, struct sk_buff *skb);
|
|||
/* Calculate the SCTP checksum of an SCTP packet. */
|
||||
static inline int sctp_rcv_checksum(struct sk_buff *skb)
|
||||
{
|
||||
struct sk_buff *list = skb_shinfo(skb)->frag_list;
|
||||
struct sctphdr *sh = sctp_hdr(skb);
|
||||
__le32 cmp = sh->checksum;
|
||||
struct sk_buff *list;
|
||||
__le32 val;
|
||||
__u32 tmp = sctp_start_cksum((__u8 *)sh, skb_headlen(skb));
|
||||
|
||||
for (; list; list = list->next)
|
||||
skb_walk_frags(skb, list)
|
||||
tmp = sctp_update_cksum((__u8 *)list->data, skb_headlen(list),
|
||||
tmp);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue