Home
last modified time | relevance | path

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

/external/libpcap/
Dpcap-dag.c1137 if (p->dlt_list == NULL && (p->dlt_list = malloc(255*sizeof(*(p->dlt_list)))) == NULL) {
1174 if (p->dlt_list != NULL) {
1175 p->dlt_list[dlt_index++] = DLT_CHDLC;
1176 p->dlt_list[dlt_index++] = DLT_PPP_SERIAL;
1177 p->dlt_list[dlt_index++] = DLT_FRELAY;
1197 if (p->dlt_list != NULL) {
1198 p->dlt_list[dlt_index++] = DLT_EN10MB;
1199 p->dlt_list[dlt_index++] = DLT_DOCSIS;
1209 if (p->dlt_list != NULL) {
1210 p->dlt_list[dlt_index++] = DLT_ATM_RFC1483;
[all …]
Ddlpisubs.c229 p->dlt_list = (u_int *)malloc(sizeof(u_int) * 2); in pcap_process_mactype()
233 if (p->dlt_list != NULL) { in pcap_process_mactype()
234 p->dlt_list[0] = DLT_EN10MB; in pcap_process_mactype()
235 p->dlt_list[1] = DLT_DOCSIS; in pcap_process_mactype()
Dpcap-nit.c325 p->dlt_list = (u_int *) malloc(sizeof(u_int) * 2); in pcap_activate_nit()
329 if (p->dlt_list != NULL) { in pcap_activate_nit()
330 p->dlt_list[0] = DLT_EN10MB; in pcap_activate_nit()
331 p->dlt_list[1] = DLT_DOCSIS; in pcap_activate_nit()
Dpcap-snit.c403 p->dlt_list = (u_int *) malloc(sizeof(u_int) * 2); in pcap_activate_snit()
407 if (p->dlt_list != NULL) { in pcap_activate_snit()
408 p->dlt_list[0] = DLT_EN10MB; in pcap_activate_snit()
409 p->dlt_list[1] = DLT_DOCSIS; in pcap_activate_snit()
Dpcap-snoop.c278 p->dlt_list = (u_int *) malloc(sizeof(u_int) * 2); in pcap_activate_snoop()
282 if (p->dlt_list != NULL) { in pcap_activate_snoop()
283 p->dlt_list[0] = DLT_EN10MB; in pcap_activate_snoop()
284 p->dlt_list[1] = DLT_DOCSIS; in pcap_activate_snoop()
Dpcap-pf.c381 p->dlt_list = (u_int *) malloc(sizeof(u_int) * 2); in pcap_activate_pf()
385 if (p->dlt_list != NULL) { in pcap_activate_pf()
386 p->dlt_list[0] = DLT_EN10MB; in pcap_activate_pf()
387 p->dlt_list[1] = DLT_DOCSIS; in pcap_activate_pf()
Dpcap-bpf.c1908 p->dlt_list = bdl.bfl_list;
2052 p->dlt_list = (u_int *) malloc(sizeof(u_int) * 2);
2056 if (p->dlt_list != NULL) {
2057 p->dlt_list[0] = DLT_EN10MB;
2058 p->dlt_list[1] = DLT_DOCSIS;
2555 switch (p->dlt_list[i]) {
2573 p->dlt_list[j] = p->dlt_list[i];
2598 switch (p->dlt_list[i]) {
2620 p->dlt_list[j] = p->dlt_list[i];
Dpcap.c933 (void)memcpy(*dlt_buffer, p->dlt_list, in pcap_list_datalinks()
951 pcap_free_datalinks(int *dlt_list) in pcap_free_datalinks() argument
953 free(dlt_list); in pcap_free_datalinks()
979 if (p->dlt_list[i] == dlt) in pcap_set_datalink()
983 if (p->dlt_count == 2 && p->dlt_list[0] == DLT_EN10MB && in pcap_set_datalink()
1784 if (p->dlt_list != NULL) { in pcap_cleanup_live_common()
1785 free(p->dlt_list); in pcap_cleanup_live_common()
1786 p->dlt_list = NULL; in pcap_cleanup_live_common()
Dpcap-win32.c559 p->dlt_list = (u_int *) malloc(sizeof(u_int) * 2); in pcap_activate_win32()
563 if (p->dlt_list != NULL) { in pcap_activate_win32()
564 p->dlt_list[0] = DLT_EN10MB; in pcap_activate_win32()
565 p->dlt_list[1] = DLT_DOCSIS; in pcap_activate_win32()
Dpcap-netfilter-linux.c500 handle->dlt_list = (u_int *) malloc(sizeof(u_int) * 2); in netfilter_activate()
501 if (handle->dlt_list != NULL) { in netfilter_activate()
502 handle->dlt_list[0] = DLT_NFLOG; in netfilter_activate()
503 handle->dlt_list[1] = DLT_IPV4; in netfilter_activate()
Dpcap-linux.c2757 handle->dlt_list = (u_int *) malloc(sizeof(u_int) * 2);
2761 if (handle->dlt_list != NULL) {
2762 handle->dlt_list[0] = DLT_EN10MB;
2763 handle->dlt_list[1] = DLT_DOCSIS;
3054 handle->dlt_list = (u_int *) malloc(sizeof(u_int) * 2);
3058 if (handle->dlt_list != NULL) {
3059 handle->dlt_list[0] = DLT_FC_2;
3060 handle->dlt_list[1] = DLT_FC_2_WITH_FRAME_DELIMS;
3061 handle->dlt_list[2] = DLT_IP_OVER_FC;
3306 if (handle->dlt_list != NULL) {
[all …]
Dpcap-int.h217 u_int *dlt_list; member