Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/kern/npf_tableset.c
Original file line number Diff line number Diff line change
Expand Up @@ -736,15 +736,17 @@ table_ent_copyout(const npf_addr_t *addr, const int alen, npf_netmask_t mask,
}

static int
table_generic_list(const npf_table_t *t, void *ubuf, size_t len)
table_generic_list(npf_table_t *t, void *ubuf, size_t len)
{
npf_tblent_t *ent;
size_t off = 0;
int error = 0;

LIST_FOREACH(ent, &t->t_list, te_listent) {
mutex_exit(&t->t_lock);
error = table_ent_copyout(&ent->te_addr,
ent->te_alen, ent->te_preflen, ubuf, len, &off);
mutex_enter(&t->t_lock);
if (error)
break;
}
Expand Down