Lines Matching refs:fcode
433 static int fix_program(pcap_t *handle, struct sock_fprog *fcode,
436 static int set_kernel_filter(pcap_t *handle, struct sock_fprog *fcode);
1801 if (handlep->filter_in_userland && handle->fcode.bf_insns) {
1802 if (bpf_filter_with_aux_data(handle->fcode.bf_insns, bp,
2415 struct sock_fprog fcode; local
2446 if (handle->fcode.bf_len > USHRT_MAX) {
2454 fcode.len = 0;
2455 fcode.filter = NULL;
2474 switch (fix_program(handle, &fcode, is_mmapped)) {
2527 if ((err = set_kernel_filter(handle, &fcode)) == 0)
2570 if (fcode.filter != NULL)
2571 free(fcode.filter);
4536 if (handlep->filter_in_userland && handle->fcode.bf_insns) {
4542 if (bpf_filter_with_aux_data(handle->fcode.bf_insns, bp,
6324 fix_program(pcap_t *handle, struct sock_fprog *fcode, int is_mmapped) argument
6337 prog_size = sizeof(*handle->fcode.bf_insns) * handle->fcode.bf_len;
6338 len = handle->fcode.bf_len;
6345 memcpy(f, handle->fcode.bf_insns, prog_size);
6346 fcode->len = len;
6347 fcode->filter = (struct sock_filter *) f;
6463 set_kernel_filter(pcap_t *handle, struct sock_fprog *fcode) argument
6558 fcode, sizeof(*fcode));