Lines Matching refs:dlt_buffer
2748 pcap_list_datalinks(pcap_t *p, int **dlt_buffer)
2759 *dlt_buffer = (int*)malloc(sizeof(**dlt_buffer));
2760 if (*dlt_buffer == NULL) {
2765 **dlt_buffer = p->linktype;
2768 *dlt_buffer = (int*)calloc(sizeof(**dlt_buffer), p->dlt_count);
2769 if (*dlt_buffer == NULL) {
2774 (void)memcpy(*dlt_buffer, p->dlt_list,
2775 sizeof(**dlt_buffer) * p->dlt_count);