Home
last modified time | relevance | path

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

/external/tcpdump/missing/
Ddatalinks.c50 pcap_list_datalinks(pcap_t *p, int **dlt_buffer) in pcap_list_datalinks() argument
57 *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()
/external/libpcap/
Dpcap.c907 pcap_list_datalinks(pcap_t *p, int **dlt_buffer) in pcap_list_datalinks() argument
918 *dlt_buffer = (int*)malloc(sizeof(**dlt_buffer)); in pcap_list_datalinks()
919 if (*dlt_buffer == NULL) { in pcap_list_datalinks()
924 **dlt_buffer = p->linktype; in pcap_list_datalinks()
927 *dlt_buffer = (int*)calloc(sizeof(**dlt_buffer), p->dlt_count); in pcap_list_datalinks()
928 if (*dlt_buffer == NULL) { in pcap_list_datalinks()
933 (void)memcpy(*dlt_buffer, p->dlt_list, in pcap_list_datalinks()
934 sizeof(**dlt_buffer) * p->dlt_count); in pcap_list_datalinks()