Ticket #2254: packet_filter.cpp.patch

File packet_filter.cpp.patch, 501 bytes (added by mjw, 16 years ago)
  • pcap-haiku.cpp

     
    111111static int
    112112pcap_setfilter_haiku(pcap_t *handle, struct bpf_program *filter)
    113113{
     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
    114120    // we don't support kernel filters at all
    115121    handle->md.use_bpf = 0;
    116122    return 0;