Home | History | Annotate | Download | only in net

Lines Matching refs:bpf_d

140  * - struct bpf_d has two mutexes:
144 * - Locking order: bpf_mtx => bpf_d#bd_mtx => bpf_d#bd_buf_mtx
145 * - struct bpf_d obtained via fp->f_bpf in bpf_read and bpf_write is
146 * never freed because struct bpf_d is only freed in bpf_close and
148 * - A filter that is assigned to bpf_d can be replaced with another filter
150 * - struct bpf_d is iterated on bpf_dlist with psz
183 /* Macros for bpf_d on bpf_dlist */
187 PSLIST_READER_FOREACH((__d), &bpf_dlist, struct bpf_d, \
190 PSLIST_WRITER_FOREACH((__d), &bpf_dlist, struct bpf_d, \
215 /* Macros for bpf_d on bpf_if#bif_dlist_pslist */
217 PSLIST_READER_FOREACH((__d), &(__bp)->bif_dlist_head, struct bpf_d, \
227 (PSLIST_READER_FIRST(&(__bp)->bif_dlist_head, struct bpf_d, \
230 (PSLIST_WRITER_FIRST(&(__bp)->bif_dlist_head, struct bpf_d, \
235 static int bpf_allocbufs(struct bpf_d *);
240 static void bpf_freed(struct bpf_d *);
247 static void bpf_attachd(struct bpf_d *, struct bpf_if *);
248 static void bpf_detachd(struct bpf_d *);
249 static int bpf_setif(struct bpf_d *, struct ifreq *);
250 static int bpf_setf(struct bpf_d *, struct bpf_program *, u_long);
253 bpf_wakeup(struct bpf_d *);
254 static int bpf_hdrlen(struct bpf_d *);
255 static void catchpacket(struct bpf_d *, u_char *, u_int, u_int,
258 static void reset_d(struct bpf_d *);
259 static int bpf_getdltlist(struct bpf_d *, struct bpf_dltlist *);
260 static int bpf_setdlt(struct bpf_d *, u_int);
474 bpf_attachd(struct bpf_d *d, struct bpf_if *bp)
500 bpf_detachd(struct bpf_d *d)
587 struct bpf_d *d;
634 struct bpf_d *d;
697 struct bpf_d *d = fp->f_bpf;
800 bpf_wakeup(struct bpf_d *d)
815 struct bpf_d *d;
825 struct bpf_d *d = arg;
840 struct bpf_d *d = fp->f_bpf;
936 reset_d(struct bpf_d *d)
980 struct bpf_d *d = fp->f_bpf;
1367 bpf_setf(struct bpf_d *d, struct bpf_program *fp, u_long cmd)
1434 bpf_setif(struct bpf_d *d, struct ifreq *ifr)
1523 struct bpf_d *d = fp->f_bpf;
1549 struct bpf_d *d = fp->f_bpf;
1589 struct bpf_d *d = kn->kn_hook;
1599 struct bpf_d *d = kn->kn_hook;
1632 struct bpf_d *d = fp->f_bpf;
1717 struct bpf_d *d;
1983 bpf_hdrlen(struct bpf_d *d)
2009 catchpacket(struct bpf_d *d, u_char *pkt, u_int pktlen, u_int snaplen,
2121 bpf_allocbufs(struct bpf_d *d)
2155 bpf_freed(struct bpf_d *d)
2243 struct bpf_d *d;
2324 bpf_getdltlist(struct bpf_d *d, struct bpf_dltlist *bfl)
2372 bpf_setdlt(struct bpf_d *d, u_int dlt)
2458 struct bpf_d *dp;