Lines Matching refs:bd
4636 bpfstats_fill_xbpf(struct xbpf_d *d, struct bpf_d *bd) in bpfstats_fill_xbpf() argument
4641 d->bd_promisc = bd->bd_promisc != 0 ? 1 : 0; in bpfstats_fill_xbpf()
4643 d->bd_hdrcmplt = bd->bd_hdrcmplt != 0 ? 1 : 0; in bpfstats_fill_xbpf()
4644 d->bd_async = bd->bd_async != 0 ? 1 : 0; in bpfstats_fill_xbpf()
4645 d->bd_headdrop = bd->bd_headdrop != 0 ? 1 : 0; in bpfstats_fill_xbpf()
4646 d->bd_direction = (uint8_t)bd->bd_direction; in bpfstats_fill_xbpf()
4647 d->bh_compreq = bd->bd_flags & BPF_COMP_REQ ? 1 : 0; in bpfstats_fill_xbpf()
4648 d->bh_compenabled = bd->bd_flags & BPF_COMP_ENABLED ? 1 : 0; in bpfstats_fill_xbpf()
4649 d->bd_exthdr = bd->bd_flags & BPF_EXTENDED_HDR ? 1 : 0; in bpfstats_fill_xbpf()
4650 d->bd_trunc = bd->bd_flags & BPF_TRUNCATE ? 1 : 0; in bpfstats_fill_xbpf()
4651 d->bd_pkthdrv2 = bd->bd_flags & BPF_PKTHDRV2 ? 1 : 0; in bpfstats_fill_xbpf()
4652 d->bd_batch_write = bd->bd_flags & BPF_BATCH_WRITE ? 1 : 0; in bpfstats_fill_xbpf()
4653 d->bd_divert_in = bd->bd_flags & BPF_DIVERT_IN ? 1 : 0; in bpfstats_fill_xbpf()
4655 d->bd_dev_minor = (uint8_t)bd->bd_dev_minor; in bpfstats_fill_xbpf()
4657 d->bd_sig = bd->bd_sig; in bpfstats_fill_xbpf()
4659 d->bd_rcount = bd->bd_rcount; in bpfstats_fill_xbpf()
4660 d->bd_dcount = bd->bd_dcount; in bpfstats_fill_xbpf()
4661 d->bd_fcount = bd->bd_fcount; in bpfstats_fill_xbpf()
4662 d->bd_wcount = bd->bd_wcount; in bpfstats_fill_xbpf()
4663 d->bd_wdcount = bd->bd_wdcount; in bpfstats_fill_xbpf()
4664 d->bd_slen = bd->bd_slen; in bpfstats_fill_xbpf()
4665 d->bd_hlen = bd->bd_hlen; in bpfstats_fill_xbpf()
4666 d->bd_bufsize = bd->bd_bufsize; in bpfstats_fill_xbpf()
4667 d->bd_pid = bd->bd_pid; in bpfstats_fill_xbpf()
4668 if (bd->bd_bif != NULL && bd->bd_bif->bif_ifp != NULL) { in bpfstats_fill_xbpf()
4670 bd->bd_bif->bif_ifp->if_xname, IFNAMSIZ); in bpfstats_fill_xbpf()
4673 d->bd_comp_count = bd->bd_bcs.bcs_count_compressed_prefix; in bpfstats_fill_xbpf()
4674 d->bd_comp_size = bd->bd_bcs.bcs_total_compressed_prefix_size; in bpfstats_fill_xbpf()
4676 d->bd_scnt = bd->bd_scnt; in bpfstats_fill_xbpf()
4677 d->bd_hcnt = bd->bd_hcnt; in bpfstats_fill_xbpf()
4679 d->bd_read_count = bd->bd_bcs.bcs_total_read; in bpfstats_fill_xbpf()
4680 d->bd_fsize = bd->bd_bcs.bcs_total_size; in bpfstats_fill_xbpf()
4716 struct bpf_d *bd = bpf_dtab[i]; variable
4719 if (bd == NULL || bd == BPF_DEV_RESERVED ||
4720 (bd->bd_flags & BPF_CLOSING) != 0) {
4726 bpfstats_fill_xbpf(xbd, bd);