Searched refs:dlt_buffer (Results 1 – 2 of 2) sorted by relevance
48 pcap_list_datalinks(pcap_t *p, int **dlt_buffer) in pcap_list_datalinks() argument55 *dlt_buffer = (int*)malloc(sizeof(**dlt_buffer)); in pcap_list_datalinks()56 if (*dlt_buffer == NULL) in pcap_list_datalinks()58 **dlt_buffer = pcap_datalink(p); in pcap_list_datalinks()
3013 pcap_list_datalinks(pcap_t *p, int **dlt_buffer) argument3024 *dlt_buffer = (int*)malloc(sizeof(**dlt_buffer));3025 if (*dlt_buffer == NULL) {3030 **dlt_buffer = p->linktype;3033 *dlt_buffer = (int*)calloc(p->dlt_count, sizeof(**dlt_buffer));3034 if (*dlt_buffer == NULL) {3039 (void)memcpy(*dlt_buffer, p->dlt_list,3040 sizeof(**dlt_buffer) * p->dlt_count);