Home | History | Annotate | Download | only in libpcap

Lines Matching defs: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;
2862 if (handle->fcode.bf_len > USHRT_MAX) {
2864 * fcode.len is an unsigned short for current kernel.
2870 fcode.len = 0;
2871 fcode.filter = NULL;
2890 switch (fix_program(handle, &fcode, is_mmapped)) {
2920 * fields of "fcode". As of the 2.6.32.4 kernel, at least,
2924 * If there is anything in "fcode" that is not initialized,
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)
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)
7103 fcode, sizeof(*fcode));