| 837 | } |
| 838 | |
| 839 | static void |
| 840 | pfr_insert_kentries(struct pfr_ktable *kt, |
| 841 | struct pfr_kentryworkq *workq, long tzero) |
| 842 | { |
| 843 | struct pfr_kentry *p; |
| 844 | int rv, n = 0; |
| 845 | |
| 846 | SLIST_FOREACH(p, workq, pfrke_workq) { |
| 847 | rv = pfr_route_kentry(kt, p); |
| 848 | if (rv) { |
| 849 | printf("pfr_insert_kentries: cannot route entry " |
| 850 | "(code=%d).\n", rv); |
| 851 | break; |
| 852 | } |
| 853 | p->pfrke_counters.pfrkc_tzero = tzero; |
| 854 | n++; |
| 855 | } |
| 856 | kt->pfrkt_cnt += n; |
| 857 | } |
| 858 | |
| 859 | int |
| 860 | pfr_insert_kentry(struct pfr_ktable *kt, struct pfr_addr *ad, long tzero) |
no test coverage detected