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

/freebsd-12-stable/contrib/libpcap/
H A Dpcap-dag.c1290 if (p->dlt_list == NULL && (p->dlt_list = malloc(255*sizeof(*(p->dlt_list)))) == NULL) {
1330 if (p->dlt_list != NULL) {
1331 p->dlt_list[dlt_index++] = DLT_CHDLC;
1332 p->dlt_list[dlt_index++] = DLT_PPP_SERIAL;
1333 p->dlt_list[dlt_index++] = DLT_FRELAY;
1353 if (p->dlt_list != NULL) {
1354 p->dlt_list[dlt_index++] = DLT_EN10MB;
1355 p->dlt_list[dlt_inde
[all...]
H A Ddlpisubs.c229 p->dlt_list = (u_int *)malloc(sizeof(u_int) * 2);
233 if (p->dlt_list != NULL) {
234 p->dlt_list[0] = DLT_EN10MB;
235 p->dlt_list[1] = DLT_DOCSIS;
H A Dpcap-nit.c344 p->dlt_list = (u_int *) malloc(sizeof(u_int) * 2);
348 if (p->dlt_list != NULL) {
349 p->dlt_list[0] = DLT_EN10MB;
350 p->dlt_list[1] = DLT_DOCSIS;
H A Dpcap-snit.c433 p->dlt_list = (u_int *) malloc(sizeof(u_int) * 2);
437 if (p->dlt_list != NULL) {
438 p->dlt_list[0] = DLT_EN10MB;
439 p->dlt_list[1] = DLT_DOCSIS;
H A Dpcap-snoop.c285 p->dlt_list = (u_int *) malloc(sizeof(u_int) * 2);
289 if (p->dlt_list != NULL) {
290 p->dlt_list[0] = DLT_EN10MB;
291 p->dlt_list[1] = DLT_DOCSIS;
H A Dpcap-pf.c408 p->dlt_list = (u_int *) malloc(sizeof(u_int) * 2);
412 if (p->dlt_list != NULL) {
413 p->dlt_list[0] = DLT_EN10MB;
414 p->dlt_list[1] = DLT_DOCSIS;
H A Dpcap-netfilter-linux.c583 handle->dlt_list = (u_int *) malloc(sizeof(u_int) * 2);
584 if (handle->dlt_list != NULL) {
585 handle->dlt_list[0] = DLT_NFLOG;
586 handle->dlt_list[1] = DLT_IPV4;
H A Dpcap-bpf.c2159 p->dlt_list = bdl.bfl_list;
2303 p->dlt_list = (u_int *) malloc(sizeof(u_int) * 2);
2307 if (p->dlt_list != NULL) {
2308 p->dlt_list[0] = DLT_EN10MB;
2309 p->dlt_list[1] = DLT_DOCSIS;
3108 switch (p->dlt_list[i]) {
3127 p->dlt_list[j] = p->dlt_list[i];
3152 switch (p->dlt_list[i]) {
3181 p->dlt_list[
[all...]
H A Dpcap-linux.c3202 handle->dlt_list = (u_int *) malloc(sizeof(u_int) * 2);
3206 if (handle->dlt_list != NULL) {
3207 handle->dlt_list[0] = DLT_EN10MB;
3208 handle->dlt_list[1] = DLT_DOCSIS;
3506 handle->dlt_list = (u_int *) malloc(sizeof(u_int) * 3);
3510 if (handle->dlt_list != NULL) {
3511 handle->dlt_list[0] = DLT_FC_2;
3512 handle->dlt_list[1] = DLT_FC_2_WITH_FRAME_DELIMS;
3513 handle->dlt_list[2] = DLT_IP_OVER_FC;
3607 handle->dlt_list
[all...]
H A Dpcap-int.h252 u_int *dlt_list; member in struct:pcap
H A Dpcap-npf.c982 p->dlt_list = (u_int *) malloc(sizeof(u_int) * 2);
986 if (p->dlt_list != NULL) {
987 p->dlt_list[0] = DLT_EN10MB;
988 p->dlt_list[1] = DLT_DOCSIS;
H A Dpcap-tc.c595 p->dlt_list = (u_int *) malloc(sizeof(u_int) * 2);
599 if (p->dlt_list != NULL) {
600 p->dlt_list[0] = DLT_EN10MB;
601 p->dlt_list[1] = DLT_PPI;
H A Dpcap.c2774 (void)memcpy(*dlt_buffer, p->dlt_list,
2792 pcap_free_datalinks(int *dlt_list)
2794 free(dlt_list);
2823 if (p->dlt_list[i] == (u_int)dlt)
2827 if (p->dlt_count == 2 && p->dlt_list[0] == DLT_EN10MB &&
3725 if (p->dlt_list != NULL) {
3726 free(p->dlt_list);
3727 p->dlt_list = NULL;

Completed in 202 milliseconds