Lines Matching refs:bdlp
661 get_dlt_list(int fd, int v, struct bpf_dltlist *bdlp, char *ebuf) in get_dlt_list() argument
663 memset(bdlp, 0, sizeof(*bdlp)); in get_dlt_list()
664 if (ioctl(fd, BIOCGDLTLIST, (caddr_t)bdlp) == 0) { in get_dlt_list()
668 bdlp->bfl_list = (u_int *) malloc(sizeof(u_int) * (bdlp->bfl_len + 1)); in get_dlt_list()
669 if (bdlp->bfl_list == NULL) { in get_dlt_list()
675 if (ioctl(fd, BIOCGDLTLIST, (caddr_t)bdlp) < 0) { in get_dlt_list()
678 free(bdlp->bfl_list); in get_dlt_list()
706 for (i = 0; i < bdlp->bfl_len; i++) { in get_dlt_list()
707 if (bdlp->bfl_list[i] != DLT_EN10MB in get_dlt_list()
709 && bdlp->bfl_list[i] != DLT_IPNET in get_dlt_list()
721 bdlp->bfl_list[bdlp->bfl_len] = DLT_DOCSIS; in get_dlt_list()
722 bdlp->bfl_len++; in get_dlt_list()
3010 find_802_11(struct bpf_dltlist *bdlp) argument
3020 for (i = 0; i < bdlp->bfl_len; i++) {
3021 switch (bdlp->bfl_list[i]) {
3032 new_dlt = bdlp->bfl_list[i];
3045 new_dlt = bdlp->bfl_list[i];
3054 new_dlt = bdlp->bfl_list[i];