Lines Matching refs:nm

270 	struct name_entry *nm;  in pfctl_flush_my_fingerprints()  local
272 while ((nm = LIST_FIRST(list)) != NULL) { in pfctl_flush_my_fingerprints()
273 LIST_REMOVE(nm, nm_entry); in pfctl_flush_my_fingerprints()
274 pfctl_flush_my_fingerprints(&nm->nm_sublist); in pfctl_flush_my_fingerprints()
275 free(nm); in pfctl_flush_my_fingerprints()
325 struct name_entry *nm, *class_nm, *version_nm, *subtype_nm; in pfctl_get_fingerprint() local
336 if ((nm = lookup_name_list(&classes, name))) { in pfctl_get_fingerprint()
337 class = nm->nm_num; in pfctl_get_fingerprint()
447 struct name_entry *nm; in pfctl_lookup_fingerprint() local
470 LIST_FOREACH(nm, &classes, nm_entry) { in pfctl_lookup_fingerprint()
471 if (nm->nm_num == class) { in pfctl_lookup_fingerprint()
472 class_name = nm->nm_name; in pfctl_lookup_fingerprint()
475 list = &nm->nm_sublist; in pfctl_lookup_fingerprint()
476 LIST_FOREACH(nm, list, nm_entry) { in pfctl_lookup_fingerprint()
477 if (nm->nm_num == version) { in pfctl_lookup_fingerprint()
478 version_name = nm->nm_name; in pfctl_lookup_fingerprint()
481 list = &nm->nm_sublist; in pfctl_lookup_fingerprint()
482 LIST_FOREACH(nm, list, nm_entry) { in pfctl_lookup_fingerprint()
483 if (nm->nm_num == subtype) { in pfctl_lookup_fingerprint()
485 nm->nm_name; in pfctl_lookup_fingerprint()
524 struct name_entry *nm; in lookup_name_list() local
525 LIST_FOREACH(nm, list, nm_entry) in lookup_name_list()
526 if (strcasecmp(name, nm->nm_name) == 0) in lookup_name_list()
527 return (nm); in lookup_name_list()
714 struct name_entry *nm; in print_name_list() local
716 LIST_FOREACH(nm, nml, nm_entry) { in print_name_list()
718 nm->nm_name); in print_name_list()
720 print_name_list(opts, &nm->nm_sublist, newprefix); in print_name_list()
728 struct name_entry *nm, *nmsearch, *nmlast; in sort_name_list() local
734 while ((nm = LIST_FIRST(nml)) != NULL) { in sort_name_list()
735 LIST_REMOVE(nm, nm_entry); in sort_name_list()
738 if (strcasecmp(nmsearch->nm_name, nm->nm_name) > 0) { in sort_name_list()
739 LIST_INSERT_BEFORE(nmsearch, nm, nm_entry); in sort_name_list()
746 LIST_INSERT_AFTER(nmlast, nm, nm_entry); in sort_name_list()
748 LIST_INSERT_HEAD(&new, nm, nm_entry); in sort_name_list()
751 sort_name_list(opts, &nm->nm_sublist); in sort_name_list()
754 while ((nm = LIST_FIRST(&new)) != NULL) { in sort_name_list()
755 LIST_REMOVE(nm, nm_entry); in sort_name_list()
757 LIST_INSERT_HEAD(nml, nm, nm_entry); in sort_name_list()
759 LIST_INSERT_AFTER(nmlast, nm, nm_entry); in sort_name_list()
760 nmlast = nm; in sort_name_list()