On 10/ 6/10 11:35 AM, Peter Memishian wrote:
> How can I pass raw Wifi Headers to pcap. In mac, the wifi headers are
> converted into ethernet headers and passed on to upper layers. How can
> I bypass that?
The DLIOCNATIVE ioctl will switch the DLPI data stream into native mode.
From dlpi(7P):
Note that on versions of libpcap that link against libdlpi, this is done
by setting DLPI_NATIVE in the flags argument of dlpi_open(). More
recently, BPF support was integrated, and I believe libpcap uses it. I
don't remember off-hand how BPF handles this.
-Seb
_______________________________________________
networking-discuss mailing list
networking-discuss@opensolaris.org