Lines Matching refs:nm
287 struct name_entry *nm;
289 while ((nm = LIST_FIRST(list)) != NULL) {
290 LIST_REMOVE(nm, nm_entry);
291 pfctl_flush_my_fingerprints(&nm->nm_sublist);
292 free(nm);
342 struct name_entry *nm, *class_nm, *version_nm, *subtype_nm;
353 if ((nm = lookup_name_list(&classes, name))) {
354 class = nm->nm_num;
464 struct name_entry *nm;
487 LIST_FOREACH(nm, &classes, nm_entry) {
488 if (nm->nm_num == class) {
489 class_name = nm->nm_name;
492 list = &nm->nm_sublist;
493 LIST_FOREACH(nm, list, nm_entry) {
494 if (nm->nm_num == version) {
495 version_name = nm->nm_name;
498 list = &nm->nm_sublist;
499 LIST_FOREACH(nm, list, nm_entry) {
500 if (nm->nm_num == subtype) {
502 nm->nm_name;
541 struct name_entry *nm;
542 LIST_FOREACH(nm, list, nm_entry)
543 if (strcasecmp(name, nm->nm_name) == 0)
544 return (nm);
730 struct name_entry *nm;
732 LIST_FOREACH(nm, nml, nm_entry) {
734 nm->nm_name);
736 print_name_list(opts, &nm->nm_sublist, newprefix);
744 struct name_entry *nm, *nmsearch, *nmlast;
750 while ((nm = LIST_FIRST(nml)) != NULL) {
751 LIST_REMOVE(nm, nm_entry);
754 if (strcasecmp(nmsearch->nm_name, nm->nm_name) > 0) {
755 LIST_INSERT_BEFORE(nmsearch, nm, nm_entry);
762 LIST_INSERT_AFTER(nmlast, nm, nm_entry);
764 LIST_INSERT_HEAD(&new, nm, nm_entry);
767 sort_name_list(opts, &nm->nm_sublist);
770 while ((nm = LIST_FIRST(&new)) != NULL) {
771 LIST_REMOVE(nm, nm_entry);
773 LIST_INSERT_HEAD(nml, nm, nm_entry);
775 LIST_INSERT_AFTER(nmlast, nm, nm_entry);
776 nmlast = nm;