Lines Matching refs:fcode
394 static int fix_program(pcap_t *handle, struct sock_fprog *fcode,
397 static int set_kernel_filter(pcap_t *handle, struct sock_fprog *fcode);
1707 if (handlep->filter_in_userland && handle->fcode.bf_insns) {
1708 if (bpf_filter(handle->fcode.bf_insns, bp,
2366 struct sock_fprog fcode; local
2397 if (handle->fcode.bf_len > USHRT_MAX) {
2405 fcode.len = 0;
2406 fcode.filter = NULL;
2424 switch (fix_program(handle, &fcode, is_mmapped)) {
2477 if ((err = set_kernel_filter(handle, &fcode)) == 0)
2514 if (fcode.filter != NULL)
2515 free(fcode.filter);
4208 if (handlep->filter_in_userland && handle->fcode.bf_insns &&
4209 (bpf_filter(handle->fcode.bf_insns, bp,
5836 fix_program(pcap_t *handle, struct sock_fprog *fcode, int is_mmapped) argument
5849 prog_size = sizeof(*handle->fcode.bf_insns) * handle->fcode.bf_len;
5850 len = handle->fcode.bf_len;
5857 memcpy(f, handle->fcode.bf_insns, prog_size);
5858 fcode->len = len;
5859 fcode->filter = (struct sock_filter *) f;
5974 set_kernel_filter(pcap_t *handle, struct sock_fprog *fcode) argument
6049 fcode, sizeof(*fcode));