Home
last modified time | relevance | path

Searched refs:bpf_program (Results 1 – 25 of 42) sorted by relevance

12

/external/iptables/extensions/
Dlibxt_bpf.c39 static void bpf_parse_string(struct xt_option_call *cb, const char *bpf_program, in bpf_parse_string() argument
48 if (sscanf(bpf_program, "%hu%c", &bi->bpf_program_num_elem, &sp) != 2 || in bpf_parse_string()
61 token = bpf_program; in bpf_parse_string()
68 &bi->bpf_program[i].code, in bpf_parse_string()
69 &bi->bpf_program[i].jt, in bpf_parse_string()
70 &bi->bpf_program[i].jf, in bpf_parse_string()
71 &bi->bpf_program[i].k) != 4) in bpf_parse_string()
101 printf("%hu %hhu %hhu %u,", info->bpf_program[i].code, in bpf_print_code()
102 info->bpf_program[i].jt, in bpf_print_code()
103 info->bpf_program[i].jf, in bpf_print_code()
[all …]
/external/libpcap/pcap/
Dpcap.h379 int pcap_setfilter(pcap_t *, struct bpf_program *);
389 int pcap_compile(pcap_t *, struct bpf_program *, const char *, int,
391 int pcap_compile_nopcap(int, int, struct bpf_program *,
393 void pcap_freecode(struct bpf_program *);
394 int pcap_offline_filter(const struct bpf_program *,
439 void bpf_dump(const struct bpf_program *, int);
Dbpf.h106 struct bpf_program { struct
/external/ppp/pppd/include/net/
Dif_ppp.h133 #define PPPIOCSPASS _IOW('t', 71, struct bpf_program) /* set pass filter */
134 #define PPPIOCSACTIVE _IOW('t', 70, struct bpf_program) /* set active filt */
/external/libpcap/
Dpcap-int.h123 typedef int (*setfilter_op_t)(pcap_t *, struct bpf_program *);
213 struct bpf_program fcode;
455 int install_bpf_program(pcap_t *, struct bpf_program *);
Dpcap-septel.c44 static int septel_setfilter(pcap_t *p, struct bpf_program *fp);
267 static int septel_setfilter(pcap_t *p, struct bpf_program *fp) { in septel_setfilter()
Dpcap-can-linux.c71 static int can_setfilter_linux(pcap_t *, struct bpf_program *);
295 can_setfilter_linux(pcap_t *p, struct bpf_program *fp) in can_setfilter_linux()
Dbpf_dump.c30 bpf_dump(const struct bpf_program *p, int option) in bpf_dump()
Dpcap-win32.c55 static int pcap_setfilter_win32_npf(pcap_t *, struct bpf_program *);
56 static int pcap_setfilter_win32_dag(pcap_t *, struct bpf_program *);
825 pcap_setfilter_win32_npf(pcap_t *p, struct bpf_program *fp) in pcap_setfilter_win32_npf()
886 pcap_setfilter_win32_dag(pcap_t *p, struct bpf_program *fp) { in pcap_setfilter_win32_dag()
Dpcap-canusb-linux.c67 static int canusb_setfilter_linux(pcap_t *, struct bpf_program *);
450 canusb_setfilter_linux(pcap_t *p, struct bpf_program *fp) in canusb_setfilter_linux()
Dpcap-pf.c90 static int pcap_setfilter_pf(pcap_t *, struct bpf_program *);
525 pcap_setfilter_pf(pcap_t *p, struct bpf_program *fp) in pcap_setfilter_pf()
Dpcap-enet.c48 readloop(int cnt, int if_fd, struct bpf_program *fp, printfunc printit) in readloop()
/external/iptables/include/linux/netfilter/
Dxt_bpf.h11 struct sock_filter bpf_program[XT_BPF_MAX_NUM_INSTR]; member
/external/kernel-headers/original/uapi/linux/netfilter/
Dxt_bpf.h13 struct sock_filter bpf_program[XT_BPF_MAX_NUM_INSTR]; member
/external/tcpdump/
Dinterface.h178 struct bpf_program;
180 extern void bpf_dump(const struct bpf_program *, int);
Dbpf_dump.c34 bpf_dump(const struct bpf_program *p, int option) in bpf_dump()
/external/iptables/utils/
Dnfbpf_compile.c17 struct bpf_program program; in main()
/external/ppp/pppd/include/
Dpcap-int.h95 struct bpf_program fcode;
/external/ppp/pppd/
Dpppd.h345 extern struct bpf_program pass_filter; /* Filter for pkts to pass */
346 extern struct bpf_program active_filter; /* Filter for link-active pkts */
687 int set_filters __P((struct bpf_program *pass, struct bpf_program *active));
/external/libpcap/tests/
Dvalgrindtest.c222 struct bpf_program bad_fcode; in main()
228 struct bpf_program fcode; in main()
Dcapturetest.c67 struct bpf_program fcode; in main()
Dfiltertest.c195 struct bpf_program fcode; in main()
Dselpolltest.c61 struct bpf_program fcode; in main()
/external/wpa_supplicant_8/src/l2_packet/
Dl2_packet_freebsd.c107 struct bpf_program pcap_fp; in l2_packet_init_libpcap()
Dl2_packet_winpcap.c166 struct bpf_program pcap_fp; in l2_packet_init_libpcap()

12