Lines Matching refs:fcode
484 static int fix_program(pcap_t *handle, struct sock_fprog *fcode,
487 static int set_kernel_filter(pcap_t *handle, struct sock_fprog *fcode);
2092 if (handlep->filter_in_userland && handle->fcode.bf_insns) {
2093 if (bpf_filter_with_aux_data(handle->fcode.bf_insns, bp,
2895 struct sock_fprog fcode; local
2926 if (handle->fcode.bf_len > USHRT_MAX) {
2934 fcode.len = 0;
2935 fcode.filter = NULL;
2954 switch (fix_program(handle, &fcode, is_mmapped)) {
3007 if ((err = set_kernel_filter(handle, &fcode)) == 0)
3050 if (fcode.filter != NULL)
3051 free(fcode.filter);
5221 if (handlep->filter_in_userland && handle->fcode.bf_insns) {
5227 if (bpf_filter_with_aux_data(handle->fcode.bf_insns,
7174 fix_program(pcap_t *handle, struct sock_fprog *fcode, int is_mmapped) argument
7187 prog_size = sizeof(*handle->fcode.bf_insns) * handle->fcode.bf_len;
7188 len = handle->fcode.bf_len;
7195 memcpy(f, handle->fcode.bf_insns, prog_size);
7196 fcode->len = len;
7197 fcode->filter = (struct sock_filter *) f;
7355 set_kernel_filter(pcap_t *handle, struct sock_fprog *fcode) argument
7450 fcode, sizeof(*fcode));