Home
last modified time | relevance | path

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

/freebsd/contrib/tcpdump/missing/
H A Ddatalinks.c48 pcap_list_datalinks(pcap_t *p, int **dlt_buffer) in pcap_list_datalinks() argument
55 *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()
/freebsd/contrib/libpcap/
H A Dpcap.c3013 pcap_list_datalinks(pcap_t *p, int **dlt_buffer) argument
3024 *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);