Searched refs:dlt_buffer (Results 1 – 2 of 2) sorted by relevance
50 pcap_list_datalinks(pcap_t *p, int **dlt_buffer) in pcap_list_datalinks() argument57 *dlt_buffer = (int*)malloc(sizeof(**dlt_buffer)); in pcap_list_datalinks()58 if (*dlt_buffer == NULL) in pcap_list_datalinks()60 **dlt_buffer = pcap_datalink(p); in pcap_list_datalinks()
2624 pcap_list_datalinks(pcap_t *p, int **dlt_buffer)2635 *dlt_buffer = (int*)malloc(sizeof(**dlt_buffer));2636 if (*dlt_buffer == NULL) {2641 **dlt_buffer = p->linktype;2644 *dlt_buffer = (int*)calloc(sizeof(**dlt_buffer), p->dlt_count);2645 if (*dlt_buffer == NULL) {2650 (void)memcpy(*dlt_buffer, p->dlt_list,2651 sizeof(**dlt_buffer) * p->dlt_count);