Home
last modified time | relevance | path

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

/external/tcpdump/missing/
Ddlnames.c55 static struct dlt_choice dlt_choices[] = { variable
140 for (i = 0; dlt_choices[i].name != NULL; i++) { in pcap_datalink_name_to_val()
141 if (ascii_strcasecmp(dlt_choices[i].name + sizeof("DLT_") - 1, in pcap_datalink_name_to_val()
143 return (dlt_choices[i].dlt); in pcap_datalink_name_to_val()
153 for (i = 0; dlt_choices[i].name != NULL; i++) { in pcap_datalink_val_to_name()
154 if (dlt_choices[i].dlt == dlt) in pcap_datalink_val_to_name()
155 return (dlt_choices[i].name + sizeof("DLT_") - 1); in pcap_datalink_val_to_name()
166 for (i = 0; dlt_choices[i].name != NULL; i++) { in pcap_datalink_val_to_description()
167 if (dlt_choices[i].dlt == dlt) in pcap_datalink_val_to_description()
168 return (dlt_choices[i].description); in pcap_datalink_val_to_description()
/external/libpcap/
Dpcap.c2832 static struct dlt_choice dlt_choices[] = {
2979 for (i = 0; dlt_choices[i].name != NULL; i++) {
2980 if (pcap_strcasecmp(dlt_choices[i].name, name) == 0)
2981 return (dlt_choices[i].dlt);
2991 for (i = 0; dlt_choices[i].name != NULL; i++) {
2992 if (dlt_choices[i].dlt == dlt)
2993 return (dlt_choices[i].name);
3003 for (i = 0; dlt_choices[i].name != NULL; i++) {
3004 if (dlt_choices[i].dlt == dlt)
3005 return (dlt_choices[i].description);