Searched refs:bdlp (Results 1 – 1 of 1) sorted by relevance
557 get_dlt_list(int fd, int v, struct bpf_dltlist *bdlp, char *ebuf) in get_dlt_list() argument559 memset(bdlp, 0, sizeof(*bdlp)); in get_dlt_list()560 if (ioctl(fd, BIOCGDLTLIST, (caddr_t)bdlp) == 0) { in get_dlt_list()564 bdlp->bfl_list = (u_int *) malloc(sizeof(u_int) * (bdlp->bfl_len + 1)); in get_dlt_list()565 if (bdlp->bfl_list == NULL) { in get_dlt_list()571 if (ioctl(fd, BIOCGDLTLIST, (caddr_t)bdlp) < 0) { in get_dlt_list()574 free(bdlp->bfl_list); in get_dlt_list()602 for (i = 0; i < bdlp->bfl_len; i++) { in get_dlt_list()603 if (bdlp->bfl_list[i] != DLT_EN10MB in get_dlt_list()605 && bdlp->bfl_list[i] != DLT_IPNET in get_dlt_list()[all …]