Lines Matching defs:bf
570 struct wtap_buf *bf = (struct wtap_buf *)malloc(sizeof(struct wtap_buf),
572 KASSERT(bf != NULL, ("could not allocated a new wtap_buf\n"));
573 bf->m = m;
576 STAILQ_INSERT_TAIL(&sc->sc_rxbuf, bf, bf_list);
628 struct wtap_buf *bf;
636 bf = STAILQ_FIRST(&sc->sc_rxbuf);
637 if (bf == NULL) {
643 KASSERT(bf != NULL, ("wtap_buf is NULL\n"));
644 m = bf->m;
645 DWTAP_PRINTF("[%d] receiving m=%p\n", sc->id, bf->m);
648 free(bf, M_WTAP_RXBUF);
682 free(bf, M_WTAP_RXBUF);