Port-arm archive

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

Re: CVS commit: src/sys/dev/usb

t.hash425%gmail.com@localhost (Takahiro HAYASHI) writes:


>sometimes rxhdr may be extracted from bogus pointer when receiving multiple
>pkts and size of 1st pkt is odd.
>Found by netstat increasing ierror.

>+              /* The frame header is always aligned on a 4 byte boundary */
>+              buf = (u_char *)((((ulong)(buf)) + 0x3) & ~0x3);

Ah, right. The fault is that that the packet length does not include
the padding to a longword boundary.

Home | Main Index | Thread Index | Old Index