Ticket #2254: packet_filter.cpp.patch
File packet_filter.cpp.patch, 501 bytes (added by , 15 years ago) |
---|
-
pcap-haiku.cpp
111 111 static int 112 112 pcap_setfilter_haiku(pcap_t *handle, struct bpf_program *filter) 113 113 { 114 /* Make our private copy of the filter */ 115 116 if (install_bpf_program(handle, filter) < 0) 117 /* install_bpf_program() filled in errbuf */ 118 return -1; 119 114 120 // we don't support kernel filters at all 115 121 handle->md.use_bpf = 0; 116 122 return 0;