added BPF functionality for BSD systems