[BACK]Return to npf_tableset.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / net / npf

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/net/npf/npf_tableset.c between version 1.30 and 1.31

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];
                 }                  }

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31

CVSweb <webmaster@jp.NetBSD.org>