Lines Matching defs:bpf_if

105 struct bpf_if {
113 struct bpf_if **bif_bpf; /* Pointer to pointer to us */
118 CTASSERT(offsetof(struct bpf_if, bif_ext) == 0);
184 CK_LIST_HEAD(bpf_iflist, bpf_if);
189 static void bpfif_ref(struct bpf_if *);
190 static void bpfif_rele(struct bpf_if *);
194 static void bpf_attachd(struct bpf_d *, struct bpf_if *);
278 * Each call allocates new bpf_if structure, references ifnet pointer
279 * and links bpf_if into bpf_iflist chain. This is protected with global
304 struct bpf_if *bp;
306 bp = __containerof(ctx, struct bpf_if, epoch_ctx);
312 bpfif_ref(struct bpf_if *bp)
319 bpfif_rele(struct bpf_if *bp)
721 bpf_attachd(struct bpf_d *d, struct bpf_if *bp)
854 struct bpf_if *bp;
1182 struct bpf_if *bp;
2087 struct bpf_if *bp;
2300 bpf_tap(struct bpf_if *bp, u_char *pkt, u_int pktlen)
2364 bpf_mtap(struct bpf_if *bp, struct mbuf *m)
2429 bpf_mtap2(struct bpf_if *bp, void *data, u_int dlen, struct mbuf *m)
2786 struct bpf_if **driverp)
2788 struct bpf_if *bp;
2825 bpf_get_bp_params(struct bpf_if *bp, u_int *bif_dlt, u_int *bif_hdrlen)
2850 struct bpf_if *bp, *bp_temp;
2854 /* Find all bpf_if struct's which reference ifp and detach them. */
2860 *bp->bif_bpf = __DECONST(struct bpf_if *, &dead_bpf_if);
2893 struct bpf_if *bp;
2933 struct bpf_if *bp;
2987 struct bpf_if *bp;
3051 struct bpf_if *bp;
3121 bpf_tap(struct bpf_if *bp, u_char *pkt, u_int pktlen)
3131 bpf_mtap(struct bpf_if *bp, struct mbuf *m)
3141 bpf_mtap2(struct bpf_if *bp, void *d, u_int l, struct mbuf *m)
3158 bpfattach2(struct ifnet *ifp, u_int dlt, u_int hdrlen, struct bpf_if **driverp)
3161 *driverp = __DECONST(struct bpf_if *, &dead_bpf_if);
3191 bpf_show_bpf_if(struct bpf_if *bpf_if)
3194 if (bpf_if == NULL)
3196 db_printf("%p:\n", bpf_if);
3197 #define BPF_DB_PRINTF(f, e) db_printf(" %s = " f "\n", #e, bpf_if->e);
3206 BPF_DB_PRINTF_RAW("%u", refcount_load(&bpf_if->bif_refcnt));
3209 DB_SHOW_COMMAND(bpf_if, db_show_bpf_if)
3213 db_printf("usage: show bpf_if <struct bpf_if *>\n");
3217 bpf_show_bpf_if((struct bpf_if *)addr);