On Thu, 11 Jan 2007 10:04:26 +0100, Paolo Abeni <[EMAIL PROTECTED]> wrote:
> The issue rises because in the pcap code I don't modify the event header > (and I can't, at least when I use memory mapped access to usbmon). So > the event header is written in pcap files in host byte order. But in such case, it's actually _better_ to keep status in wire order, because it is a known order. Changing the status into the host byte order in kernel makes it worse. > I can solve this problem removing memory mapped access and performing > the header byte order conversion, but any other suggestion will be very > appreciated :-) Well, if the architecture of libpcap is such that it stores the header which you (the usb capture code) provide, then the only way is to provide a host-independend order. But really I have no opinion, I am not familiar with the code. -- Pete. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel