Home
last modified time | relevance | path

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

/external/libpcap/
Dpcap-dag.c1226 if (p->dlt_list == NULL && (p->dlt_list = malloc(255*sizeof(*(p->dlt_list)))) == NULL) {
1263 if (p->dlt_list != NULL) {
1264 p->dlt_list[dlt_index++] = DLT_CHDLC;
1265 p->dlt_list[dlt_index++] = DLT_PPP_SERIAL;
1266 p->dlt_list[dlt_index++] = DLT_FRELAY;
1286 if (p->dlt_list != NULL) {
1287 p->dlt_list[dlt_index++] = DLT_EN10MB;
1288 p->dlt_list[dlt_index++] = DLT_DOCSIS;
1298 if (p->dlt_list != NULL) {
1299 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.c332 p->dlt_list = (u_int *) malloc(sizeof(u_int) * 2); in pcap_activate_nit()
336 if (p->dlt_list != NULL) { in pcap_activate_nit()
337 p->dlt_list[0] = DLT_EN10MB; in pcap_activate_nit()
338 p->dlt_list[1] = DLT_DOCSIS; in pcap_activate_nit()
Dpcap-snoop.c285 p->dlt_list = (u_int *) malloc(sizeof(u_int) * 2); in pcap_activate_snoop()
289 if (p->dlt_list != NULL) { in pcap_activate_snoop()
290 p->dlt_list[0] = DLT_EN10MB; in pcap_activate_snoop()
291 p->dlt_list[1] = DLT_DOCSIS; in pcap_activate_snoop()
Dpcap-snit.c408 p->dlt_list = (u_int *) malloc(sizeof(u_int) * 2); in pcap_activate_snit()
412 if (p->dlt_list != NULL) { in pcap_activate_snit()
413 p->dlt_list[0] = DLT_EN10MB; in pcap_activate_snit()
414 p->dlt_list[1] = DLT_DOCSIS; in pcap_activate_snit()
Dpcap-pf.c384 p->dlt_list = (u_int *) malloc(sizeof(u_int) * 2); in pcap_activate_pf()
388 if (p->dlt_list != NULL) { in pcap_activate_pf()
389 p->dlt_list[0] = DLT_EN10MB; in pcap_activate_pf()
390 p->dlt_list[1] = DLT_DOCSIS; in pcap_activate_pf()
Dpcap-bpf.c2129 p->dlt_list = bdl.bfl_list;
2273 p->dlt_list = (u_int *) malloc(sizeof(u_int) * 2);
2277 if (p->dlt_list != NULL) {
2278 p->dlt_list[0] = DLT_EN10MB;
2279 p->dlt_list[1] = DLT_DOCSIS;
2911 switch (p->dlt_list[i]) {
2929 p->dlt_list[j] = p->dlt_list[i];
2954 switch (p->dlt_list[i]) {
2976 p->dlt_list[j] = p->dlt_list[i];
Dpcap-netfilter-linux.c503 handle->dlt_list = (u_int *) malloc(sizeof(u_int) * 2); in netfilter_activate()
504 if (handle->dlt_list != NULL) { in netfilter_activate()
505 handle->dlt_list[0] = DLT_NFLOG; in netfilter_activate()
506 handle->dlt_list[1] = DLT_IPV4; in netfilter_activate()
Dpcap.c962 (void)memcpy(*dlt_buffer, p->dlt_list, in pcap_list_datalinks()
980 pcap_free_datalinks(int *dlt_list) in pcap_free_datalinks() argument
982 free(dlt_list); in pcap_free_datalinks()
1011 if (p->dlt_list[i] == (u_int)dlt) in pcap_set_datalink()
1015 if (p->dlt_count == 2 && p->dlt_list[0] == DLT_EN10MB && in pcap_set_datalink()
1990 if (p->dlt_list != NULL) { in pcap_cleanup_live_common()
1991 free(p->dlt_list); in pcap_cleanup_live_common()
1992 p->dlt_list = NULL; in pcap_cleanup_live_common()
Dpcap-win32.c968 p->dlt_list = (u_int *) malloc(sizeof(u_int) * 2); in pcap_activate_win32()
972 if (p->dlt_list != NULL) { in pcap_activate_win32()
973 p->dlt_list[0] = DLT_EN10MB; in pcap_activate_win32()
974 p->dlt_list[1] = DLT_DOCSIS; in pcap_activate_win32()
Dpcap-linux.c2925 handle->dlt_list = (u_int *) malloc(sizeof(u_int) * 2);
2929 if (handle->dlt_list != NULL) {
2930 handle->dlt_list[0] = DLT_EN10MB;
2931 handle->dlt_list[1] = DLT_DOCSIS;
3229 handle->dlt_list = (u_int *) malloc(sizeof(u_int) * 2);
3233 if (handle->dlt_list != NULL) {
3234 handle->dlt_list[0] = DLT_FC_2;
3235 handle->dlt_list[1] = DLT_FC_2_WITH_FRAME_DELIMS;
3236 handle->dlt_list[2] = DLT_IP_OVER_FC;
3481 if (handle->dlt_list != NULL) {
[all …]
Dpcap-tc.c597 p->dlt_list = (u_int *) malloc(sizeof(u_int) * 2); in TcActivate()
601 if (p->dlt_list != NULL) { in TcActivate()
602 p->dlt_list[0] = DLT_EN10MB; in TcActivate()
603 p->dlt_list[1] = DLT_PPI; in TcActivate()
Dpcap-int.h229 u_int *dlt_list; member