Searched refs:dlt_choices (Results 1 – 2 of 2) sorted by relevance
59 static struct dlt_choice dlt_choices[] = { variable144 for (i = 0; dlt_choices[i].name != NULL; i++) { in pcap_datalink_name_to_val()145 if (strcasecmp(dlt_choices[i].name + sizeof("DLT_") - 1, in pcap_datalink_name_to_val()147 return (dlt_choices[i].dlt); in pcap_datalink_name_to_val()157 for (i = 0; dlt_choices[i].name != NULL; i++) { in pcap_datalink_val_to_name()158 if (dlt_choices[i].dlt == dlt) in pcap_datalink_val_to_name()159 return (dlt_choices[i].name + sizeof("DLT_") - 1); in pcap_datalink_val_to_name()170 for (i = 0; dlt_choices[i].name != NULL; i++) { in pcap_datalink_val_to_description()171 if (dlt_choices[i].dlt == dlt) in pcap_datalink_val_to_description()172 return (dlt_choices[i].description); in pcap_datalink_val_to_description()
326 static struct dlt_choice dlt_choices[] = { variable484 for (i = 0; dlt_choices[i].name != NULL; i++) { in pcap_datalink_name_to_val()485 if (pcap_strcasecmp(dlt_choices[i].name + sizeof("DLT_") - 1, in pcap_datalink_name_to_val()487 return (dlt_choices[i].dlt); in pcap_datalink_name_to_val()497 for (i = 0; dlt_choices[i].name != NULL; i++) { in pcap_datalink_val_to_name()498 if (dlt_choices[i].dlt == dlt) in pcap_datalink_val_to_name()499 return (dlt_choices[i].name + sizeof("DLT_") - 1); in pcap_datalink_val_to_name()509 for (i = 0; dlt_choices[i].name != NULL; i++) { in pcap_datalink_val_to_description()510 if (dlt_choices[i].dlt == dlt) in pcap_datalink_val_to_description()511 return (dlt_choices[i].description); in pcap_datalink_val_to_description()