Re: [clearview-discuss] [tcpdump-workers] libdlpi with libpcap

2008-02-14 Thread Sebastien Roy
sagun shakya wrote: Sebastien Roy wrote: sagun shakya wrote: pcap-int.h: * 71-98: These only apply when compiling with DLPI support. Perhaps Guy can answer this: Should there be some sort of #ifdef to make sure that these symbols don't pollute the namespace when compiled on other platform

Re: [clearview-discuss] [tcpdump-workers] libdlpi with libpcap

2008-02-14 Thread Sebastien Roy
sagun shakya wrote: sagun shakya wrote: Sebastien Roy wrote: pcap-int.h: * 71-98: These only apply when compiling with DLPI support. Perhaps Guy can answer this: Should there be some sort of #ifdef to make sure that these symbols don't pollute the namespace when compiled on other platform

Re: [tcpdump-workers] problem while examinate 802.11-packets

2008-02-14 Thread Guy Harris
Christian Stalp wrote: And now the first weired thing: if I check my interface for ethernet it passes, if I check for wlan it fails! I infer from the name "ath0" that this is *BSD. If so, then all 802.11 devices default to providing Ethernet headers, for compatibility with applications that

[tcpdump-workers] problem while examinate 802.11-packets

2008-02-14 Thread Christian Stalp
Hello out there, I have a big problem to read incoming wlan-packets with pcap-library. First I introduced my program the ieee_802_11_header struct for casting: struct ieee_802_11_header { __u16 frame_control; // needs to be subtyped __u16 duration; __u8mac