Port-amd64 archive

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

Re: in_cksum: out of data



On Thu, May 19, 2022 at 06:28:44AM +0000, Emmanuel Dreyfus wrote:
> Hello
> 
> >From time to time I get on the console
> in_cksum: out of data

The function is:

int cpu_in_cksum(struct mbuf *m, int len, int off, uint32_t initial_sum)
[called with 0 as the two last args from MI code]

and m is supposed to point to a mbuf chain that contains at least len
bytes of data.

When the checksum calculation reaches the end of the mbuf chain but did
not process len bytes yet, it prints that message. Probably it means
either:

 - a broken call site passing wrong "len"
 - a broken call site passing the wrong mbuf *
 - the mbuf chain has been modfied midway

Martin


Home | Main Index | Thread Index | Old Index