version 1.30, 2019/06/12 14:36:32 |
version 1.31, 2019/06/20 17:08:52 |
Line 513 table_ifaddr_insert(npf_table_t *t, cons |
|
Line 513 table_ifaddr_insert(npf_table_t *t, cons |
|
toalloc = roundup2(allocated + 1, NPF_IFADDR_STEP); |
toalloc = roundup2(allocated + 1, NPF_IFADDR_STEP); |
newsize = toalloc * sizeof(npf_tblent_t *); |
newsize = toalloc * sizeof(npf_tblent_t *); |
|
|
elements = kmem_zalloc(newsize, KM_SLEEP); |
elements = kmem_zalloc(newsize, KM_NOSLEEP); |
for (unsigned i = 0; i < used; i++) { |
for (unsigned i = 0; i < used; i++) { |
elements[i] = old_elements[i]; |
elements[i] = old_elements[i]; |
} |
} |