Searched refs:dlt_choices (Results 1 – 2 of 2) sorted by relevance
55 static struct dlt_choice dlt_choices[] = { variable140 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()
1144 static struct dlt_choice dlt_choices[] = { variable1282 for (i = 0; dlt_choices[i].name != NULL; i++) { in pcap_datalink_name_to_val()1283 if (pcap_strcasecmp(dlt_choices[i].name, name) == 0) in pcap_datalink_name_to_val()1284 return (dlt_choices[i].dlt); in pcap_datalink_name_to_val()1294 for (i = 0; dlt_choices[i].name != NULL; i++) { in pcap_datalink_val_to_name()1295 if (dlt_choices[i].dlt == dlt) in pcap_datalink_val_to_name()1296 return (dlt_choices[i].name); in pcap_datalink_val_to_name()1306 for (i = 0; dlt_choices[i].name != NULL; i++) { in pcap_datalink_val_to_description()1307 if (dlt_choices[i].dlt == dlt) in pcap_datalink_val_to_description()1308 return (dlt_choices[i].description); in pcap_datalink_val_to_description()