Lines Matching refs:fcode
487 static int fix_program(pcap_t *handle, struct sock_fprog *fcode,
490 static int set_kernel_filter(pcap_t *handle, struct sock_fprog *fcode);
2028 if (handlep->filter_in_userland && handle->fcode.bf_insns) {
2029 if (bpf_filter_with_aux_data(handle->fcode.bf_insns, bp,
2831 struct sock_fprog fcode; local
2862 if (handle->fcode.bf_len > USHRT_MAX) {
2870 fcode.len = 0;
2871 fcode.filter = NULL;
2890 switch (fix_program(handle, &fcode, is_mmapped)) {
2943 if ((err = set_kernel_filter(handle, &fcode)) == 0)
2986 if (fcode.filter != NULL)
2987 free(fcode.filter);
4975 if (handlep->filter_in_userland && handle->fcode.bf_insns) {
4981 if (bpf_filter_with_aux_data(handle->fcode.bf_insns,
6869 fix_program(pcap_t *handle, struct sock_fprog *fcode, int is_mmapped) argument
6882 prog_size = sizeof(*handle->fcode.bf_insns) * handle->fcode.bf_len;
6883 len = handle->fcode.bf_len;
6890 memcpy(f, handle->fcode.bf_insns, prog_size);
6891 fcode->len = len;
6892 fcode->filter = (struct sock_filter *) f;
7008 set_kernel_filter(pcap_t *handle, struct sock_fprog *fcode) argument
7103 fcode, sizeof(*fcode));