Re: [tcpdump-workers] [Libpcap] Endianess and memory alignment

2005-07-07 Thread Guy Harris
On Jul 7, 2005, at 4:37 PM, Cyril wrote: [iBook] Running what OS? Mac OS X (Mach kernel + Darwin). (...+all the frameworks, apps, Finder, etc. - but those aren't relevant to this particular issue.) Oks. So, BPF/LSF filter assumes that multi-byte values are in network byte order (ie b

Rép : [tcpdump-workers] [Libpcap] Endianess and memory alignment

2005-07-07 Thread Cyril
Me : Why not safe_snprintf(..., htons(src_prt), ...) ? I swear that it's my *last* stupid question :-) ^^ The only answer is that pcap_compile() reverts multibyte data found in expression on little endian architectures. 0x0001 -> 0x0100. So 0x1f01

Re: [tcpdump-workers] [Libpcap] Endianess and memory alignment

2005-07-07 Thread Cyril
Hello, [iBook] Running what OS? Mac OS X (Mach kernel + Darwin). Most PowerPC processors, however, support unaligned loads and stores (although they might be slower). I think all the ones used in modern Macs do. Yes. Processors used in modern Macs are bi-endian PowerPC. They support

[tcpdump-workers] Automatic report from sources (tcpdump libpcap htdocs) between 06.07.2005 - 07.07.2005 GMT

2005-07-07 Thread Automatic cvs log generator /tcpdump/bin/makelog
CVS log entries from 06.07.2005 (Wed) 09:06:53 - 07.07.2005 (Thu) 09:07:15 GMT = Summary by authors = Author: guy File: libpcap/pcap-dag.h; Revisions: 1.4, 1.3.4.1 File: tcpdump/p