Home
last modified time | relevance | path

Searched refs:dlt_list (Results 1 – 11 of 11) sorted by relevance

/external/libpcap/
Dpcap-dag.c742 if (handle->dlt_list != NULL) { in dag_open_live()
743 free(handle->dlt_list); in dag_open_live()
893 if (p->dlt_list == NULL && (p->dlt_list = malloc(255*sizeof(*(p->dlt_list)))) == NULL) {
923 if (p->dlt_list != NULL) {
924 p->dlt_list[index++] = DLT_CHDLC;
925 p->dlt_list[index++] = DLT_PPP_SERIAL;
926 p->dlt_list[index++] = DLT_FRELAY;
949 if (p->dlt_list != NULL) {
950 p->dlt_list[index++] = DLT_EN10MB;
951 p->dlt_list[index++] = DLT_DOCSIS;
[all …]
Dpcap-snoop.c279 p->dlt_list = (u_int *) malloc(sizeof(u_int) * 2); in pcap_open_live()
283 if (p->dlt_list != NULL) { in pcap_open_live()
284 p->dlt_list[0] = DLT_EN10MB; in pcap_open_live()
285 p->dlt_list[1] = DLT_DOCSIS; in pcap_open_live()
395 if (p->dlt_list != NULL) in pcap_open_live()
396 free(p->dlt_list); in pcap_open_live()
Dpcap-pf.c385 p->dlt_list = (u_int *) malloc(sizeof(u_int) * 2); in pcap_open_live()
389 if (p->dlt_list != NULL) { in pcap_open_live()
390 p->dlt_list[0] = DLT_EN10MB; in pcap_open_live()
391 p->dlt_list[1] = DLT_DOCSIS; in pcap_open_live()
514 if (p->dlt_list != NULL) in pcap_open_live()
515 free(p->dlt_list); in pcap_open_live()
Dpcap-nit.c324 p->dlt_list = (u_int *) malloc(sizeof(u_int) * 2); in pcap_open_live()
328 if (p->dlt_list != NULL) { in pcap_open_live()
329 p->dlt_list[0] = DLT_EN10MB; in pcap_open_live()
330 p->dlt_list[1] = DLT_DOCSIS; in pcap_open_live()
Dpcap-win32.c447 p->dlt_list = (u_int *) malloc(sizeof(u_int) * 2); in pcap_open_live()
451 if (p->dlt_list != NULL) { in pcap_open_live()
452 p->dlt_list[0] = DLT_EN10MB; in pcap_open_live()
453 p->dlt_list[1] = DLT_DOCSIS; in pcap_open_live()
657 if (p->dlt_list != NULL) in pcap_open_live()
658 free(p->dlt_list); in pcap_open_live()
Dpcap-snit.c387 p->dlt_list = (u_int *) malloc(sizeof(u_int) * 2); in pcap_open_live()
391 if (p->dlt_list != NULL) { in pcap_open_live()
392 p->dlt_list[0] = DLT_EN10MB; in pcap_open_live()
393 p->dlt_list[1] = DLT_DOCSIS; in pcap_open_live()
Dpcap-bpf.c809 p->dlt_list = bdl.bfl_list; in pcap_open_live()
828 p->dlt_list = (u_int *) malloc(sizeof(u_int) * 2); in pcap_open_live()
832 if (p->dlt_list != NULL) { in pcap_open_live()
833 p->dlt_list[0] = DLT_EN10MB; in pcap_open_live()
834 p->dlt_list[1] = DLT_DOCSIS; in pcap_open_live()
1038 if (p->dlt_list != NULL) in pcap_open_live()
1039 free(p->dlt_list); in pcap_open_live()
Dpcap-linux.c1120 handle->dlt_list = (u_int *) malloc(sizeof(u_int) * 2); in map_arphrd_to_dlt()
1124 if (handle->dlt_list != NULL) { in map_arphrd_to_dlt()
1125 handle->dlt_list[0] = DLT_EN10MB; in map_arphrd_to_dlt()
1126 handle->dlt_list[1] = DLT_DOCSIS; in map_arphrd_to_dlt()
1487 if (handle->dlt_list != NULL) { in live_open_new()
1488 free(handle->dlt_list); in live_open_new()
1489 handle->dlt_list = NULL; in live_open_new()
1590 if (handle->dlt_list != NULL) in live_open_new()
1591 free(handle->dlt_list); in live_open_new()
Dpcap.c249 (void)memcpy(*dlt_buffer, p->dlt_list, in pcap_list_datalinks()
278 if (p->dlt_list[i] == dlt) in pcap_set_datalink()
282 if (p->dlt_count == 2 && p->dlt_list[0] == DLT_EN10MB && in pcap_set_datalink()
799 if (p->dlt_list != NULL) in pcap_close()
800 free(p->dlt_list); in pcap_close()
Dpcap-dlpi.c804 p->dlt_list = (u_int *) malloc(sizeof(u_int) * 2); in pcap_open_live()
808 if (p->dlt_list != NULL) { in pcap_open_live()
809 p->dlt_list[0] = DLT_EN10MB; in pcap_open_live()
810 p->dlt_list[1] = DLT_DOCSIS; in pcap_open_live()
960 if (p->dlt_list != NULL) in pcap_open_live()
961 free(p->dlt_list); in pcap_open_live()
Dpcap-int.h204 u_int *dlt_list; member