There exists an issue on SmartOS and OmniOS (Illumos/Solaris/OpenSolars/Nevada 
derivatives) where libpcap will try to use both DLPI and the newer BPF feature 
simultaneously. BPF as it is now, is not completely like the BPF we all know, 
so for the time-being it is best to force the issue and not try to use both, 
preferring DLPI over anything else if present.

The attached patch, which is certainly open for revision given the change to 
configure.in, rectifies this issue on these platforms. It forces DLPI as the 
preferred capture mechanism (newer versions of Solaris have getifaddrs() and 
currently configure.in uses that as a predicate for choosing BFP), and it fixes 
compilation errors (missing variable declaration)

It is against HEAD and works with the current release of tcpdump. Any input is 
welcome.

/dale

Attachment: libpcap-smartos-dlpi.diff
Description: Binary data


_______________________________________________
tcpdump-workers mailing list
tcpdump-workers@lists.tcpdump.org
https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers

Reply via email to