Hi Patrick, Patrick McHardy wrote: > skb_copy_bits always stays inside limits if len is positive, so you can > do something like this: > > if (copy_range == 0) > data_len = ~0UL; > else > data_len = copy_range; > > but you have to remove the jump to nlmsg_failure when skb_copy_bits > fails. thanks for your suggestions, I've applied them to my patch. regards, Pablo