diff options
| author | 2015-11-04 00:16:12 +0000 | |
|---|---|---|
| committer | 2015-11-04 00:16:12 +0000 | |
| commit | 519cb35241b7d6896018febf096620b038aa98f5 (patch) | |
| tree | 5325a410b4e83d35df9ceafbdc450cd7b50c1875 /usr.sbin/installboot/util.c | |
| parent | use IFQ_IS_EMPTY to see if if_snd is empty, not IF_IS_EMPTY (diff) | |
| download | wireguard-openbsd-519cb35241b7d6896018febf096620b038aa98f5.tar.xz wireguard-openbsd-519cb35241b7d6896018febf096620b038aa98f5.zip | |
use ml_purge to flush the arp hold lists instead of dequeue/free loops.
this is an interesting change because the loops have to decrement
the global hold count too. they looked like this:
while ((mh = ml_dequeue(&la->la_ml)) != NULL) {
la_hold_total--;
m_freem(mh);
}
because ml_purge returns how many mbufs were freed, we can do this:
la_hold_total -= ml_purge(&la->la_ml);
ok mpi@ bluhm@
Diffstat (limited to 'usr.sbin/installboot/util.c')
0 files changed, 0 insertions, 0 deletions
