Lines Matching refs:bdlp
647 get_dlt_list(int fd, int v, struct bpf_dltlist *bdlp, char *ebuf) in get_dlt_list() argument
649 memset(bdlp, 0, sizeof(*bdlp)); in get_dlt_list()
650 if (ioctl(fd, BIOCGDLTLIST, (caddr_t)bdlp) == 0) { in get_dlt_list()
654 bdlp->bfl_list = (u_int *) malloc(sizeof(u_int) * (bdlp->bfl_len + 1)); in get_dlt_list()
655 if (bdlp->bfl_list == NULL) { in get_dlt_list()
661 if (ioctl(fd, BIOCGDLTLIST, (caddr_t)bdlp) < 0) { in get_dlt_list()
664 free(bdlp->bfl_list); in get_dlt_list()
692 for (i = 0; i < bdlp->bfl_len; i++) { in get_dlt_list()
693 if (bdlp->bfl_list[i] != DLT_EN10MB in get_dlt_list()
695 && bdlp->bfl_list[i] != DLT_IPNET in get_dlt_list()
707 bdlp->bfl_list[bdlp->bfl_len] = DLT_DOCSIS; in get_dlt_list()
708 bdlp->bfl_len++; in get_dlt_list()
2837 find_802_11(struct bpf_dltlist *bdlp) argument
2847 for (i = 0; i < bdlp->bfl_len; i++) {
2848 switch (bdlp->bfl_list[i]) {
2859 new_dlt = bdlp->bfl_list[i];
2872 new_dlt = bdlp->bfl_list[i];
2881 new_dlt = bdlp->bfl_list[i];