Name

skb_copy_and_csum_datagram_msg — Copy and checksum skb to user iovec.

Synopsis

int skb_copy_and_csum_datagram_msg (struct sk_buff * skb,
 int hlen,
 struct msghdr * msg);
 

Arguments

struct sk_buff * skb

skbuff

int hlen

hardware length

struct msghdr * msg

destination

Description

Caller _must_ check that skb will fit to this iovec.

Return

0 - success. -EINVAL - checksum failure. -EFAULT - fault during copy.