Lines Matching refs:bpf_d

161  * BSD now stores the bpf_d in the dev_t which is a struct
163 * the bpf_d in a separate table indexed by minor device #.
170 static struct bpf_d **bpf_dtab = NULL;
187 static int bpf_allocbufs(struct bpf_d *);
188 static errno_t bpf_attachd(struct bpf_d *d, struct bpf_if *bp);
189 static void bpf_detachd(struct bpf_d *d);
190 static void bpf_freed(struct bpf_d *);
194 static int bpf_setif(struct bpf_d *, ifnet_t ifp, u_int32_t dlt);
196 static void bpf_wakeup(struct bpf_d *);
197 static void catchpacket(struct bpf_d *, u_char *, struct mbuf *, u_int,
199 static void reset_d(struct bpf_d *);
200 static int bpf_setf(struct bpf_d *, u_int bf_len, user_addr_t bf_insns);
201 static int bpf_getdltlist(struct bpf_d *, caddr_t, struct proc *);
202 static int bpf_setdlt(struct bpf_d *, u_int);
203 static int bpf_set_traffic_class(struct bpf_d *, int);
433 struct bpf_d **new_dtab = NULL;
434 struct bpf_d **old_dtab = NULL;
437 new_dtab = (struct bpf_d **)_MALLOC(sizeof(struct bpf_d *) * new_dtab_size, M_DEVBUF, M_WAIT);
444 sizeof(struct bpf_d *) * bpf_dtab_size);
447 sizeof(struct bpf_d *) * NBPFILTER);
469 bpf_attachd(struct bpf_d *d, struct bpf_if *bp)
510 bpf_detachd(struct bpf_d *d)
512 struct bpf_d **p;
570 bpf_start_timer(struct bpf_d *d)
601 bpf_stop_timer(struct bpf_d *d)
627 struct bpf_d *d;
660 d = (struct bpf_d *)_MALLOC(sizeof(struct bpf_d), M_DEVBUF, M_WAIT);
663 printf("bpfopen: malloc bpf_d failed\n");
668 bzero(d, sizeof(struct bpf_d));
710 struct bpf_d *d;
798 bpf_sleep(struct bpf_d *d, int pri, const char *wmesg, int timo)
845 struct bpf_d *d;
999 bpf_wakeup(struct bpf_d *d)
1021 struct bpf_d *d = (struct bpf_d *)arg;
1053 struct bpf_d *d;
1155 reset_d(struct bpf_d *d)
1196 struct bpf_d *d;
1577 bpf_setf(struct bpf_d *d, u_int bf_len, user_addr_t bf_insns)
1621 bpf_setif(struct bpf_d *d, ifnet_t theywant, u_int32_t dlt)
1669 bpf_getdltlist(struct bpf_d *d, caddr_t addr, struct proc *p)
1713 bpf_setdlt(struct bpf_d *d, uint32_t dlt)
1753 bpf_set_traffic_class(struct bpf_d *d, int tc)
1784 struct bpf_d *d;
1844 struct bpf_d *d;
1880 struct bpf_d *d = (struct bpf_d *)kn->kn_hook;
1890 struct bpf_d *d = (struct bpf_d *)kn->kn_hook;
2006 struct bpf_d *d;
2096 catchpacket(struct bpf_d *d, u_char *pkt, struct mbuf *m, u_int pktlen,
2197 bpf_allocbufs(struct bpf_d *d)
2218 bpf_freed(struct bpf_d *d)
2334 struct bpf_d *d;
2421 mac_bpfdesc_label_get(struct bpf_d *d)
2428 mac_bpfdesc_label_set(struct bpf_d *d, struct label *label)