Lines Matching refs:nm
274 struct name_entry *nm;
276 while ((nm = LIST_FIRST(list)) != NULL) {
277 LIST_REMOVE(nm, nm_entry);
278 pfctl_flush_my_fingerprints(&nm->nm_sublist);
279 free(nm);
323 struct name_entry *nm, *class_nm, *version_nm, *subtype_nm;
334 if ((nm = lookup_name_list(&classes, name))) {
335 class = nm->nm_num;
445 struct name_entry *nm;
468 LIST_FOREACH(nm, &classes, nm_entry) {
469 if (nm->nm_num == class) {
470 class_name = nm->nm_name;
473 list = &nm->nm_sublist;
474 LIST_FOREACH(nm, list, nm_entry) {
475 if (nm->nm_num == version) {
476 version_name = nm->nm_name;
479 list = &nm->nm_sublist;
480 LIST_FOREACH(nm, list, nm_entry) {
481 if (nm->nm_num == subtype) {
483 nm->nm_name;
522 struct name_entry *nm;
523 LIST_FOREACH(nm, list, nm_entry)
524 if (strcasecmp(name, nm->nm_name) == 0)
525 return (nm);
711 struct name_entry *nm;
713 LIST_FOREACH(nm, nml, nm_entry) {
715 nm->nm_name);
717 print_name_list(opts, &nm->nm_sublist, newprefix);
725 struct name_entry *nm, *nmsearch, *nmlast;
731 while ((nm = LIST_FIRST(nml)) != NULL) {
732 LIST_REMOVE(nm, nm_entry);
735 if (strcasecmp(nmsearch->nm_name, nm->nm_name) > 0) {
736 LIST_INSERT_BEFORE(nmsearch, nm, nm_entry);
743 LIST_INSERT_AFTER(nmlast, nm, nm_entry);
745 LIST_INSERT_HEAD(&new, nm, nm_entry);
748 sort_name_list(opts, &nm->nm_sublist);
751 while ((nm = LIST_FIRST(&new)) != NULL) {
752 LIST_REMOVE(nm, nm_entry);
754 LIST_INSERT_HEAD(nml, nm, nm_entry);
756 LIST_INSERT_AFTER(nmlast, nm, nm_entry);
757 nmlast = nm;