Home
last modified time | relevance | path

Searched refs:dlt_buffer (Results 1 – 2 of 2) sorted by relevance

/external/tcpdump/missing/
Ddatalinks.c55 pcap_list_datalinks(pcap_t *p, int **dlt_buffer) in pcap_list_datalinks() argument
62 *dlt_buffer = (int*)malloc(sizeof(**dlt_buffer)); in pcap_list_datalinks()
63 if (*dlt_buffer == NULL) in pcap_list_datalinks()
65 **dlt_buffer = pcap_datalink(p); in pcap_list_datalinks()
/external/libpcap/
Dpcap.c225 pcap_list_datalinks(pcap_t *p, int **dlt_buffer) in pcap_list_datalinks() argument
234 *dlt_buffer = (int*)malloc(sizeof(**dlt_buffer)); in pcap_list_datalinks()
235 if (*dlt_buffer == NULL) { in pcap_list_datalinks()
240 **dlt_buffer = p->linktype; in pcap_list_datalinks()
243 *dlt_buffer = (int*)calloc(sizeof(**dlt_buffer), p->dlt_count); in pcap_list_datalinks()
244 if (*dlt_buffer == NULL) { in pcap_list_datalinks()
249 (void)memcpy(*dlt_buffer, p->dlt_list, in pcap_list_datalinks()
250 sizeof(**dlt_buffer) * p->dlt_count); in pcap_list_datalinks()