Peter Memishian wrote: > > We are in the prototyping phase of porting BPF to Solaris kernel, the > > purpose is to improve the performance of those applications that use > > libpcap. > > > > To provide multiple sets of API to use BPF functionality would not be > > difficult IMO, but for PF_PACKET's case, as Darren pointed out, > > PF_PACKET applications don't use BPF language, so I don't know if this > > makes much sense. > > So with libpcap today, it's not possible to use PF_PACKET and a > kernel-based BPF? What environments can support a kernel-based BPF? >
Since libpcap is a relatively high lever API, there is nothing stopping it from using a PF_PACKET/BPF combination as the implementation. But we are targeting at using BPF native API for libpcap. And for those applications that use PF_PACKET and its own filtering language, I don't know if there is anything BPF can do. - yxn _______________________________________________ networking-discuss mailing list [email protected]
