Search Linux Wireless

Re: how to use skb_postpush_rcsum()?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2020-04-21 at 17:20 +0200, Johannes Berg wrote:
> Hi,
> 
> This is probably a stupid question but I'm hitting my head against the
> wall ...
> 
> I have an skb. I have this:
> 
> 
>         if (skb->ip_summed == CHECKSUM_COMPLETE) {
>                 printk(KERN_DEBUG "csum before\n");
>                 printk(KERN_DEBUG "  hw = 0x%.4x\n", skb->csum);
>                 printk(KERN_DEBUG "  sw = 0x%.4x\n", csum_fold(skb_checksum(skb, 0, skb->len, 0)));

Never mind. The csum_fold() there is obviously the problem - that
shouldn't match, it should match the folded skb->csum. I have a missing
~ basically.

johannes




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux