summaryrefslogtreecommitdiffstats
path: root/usr.sbin/installboot/util.c
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2015-11-04 00:16:12 +0000
committerdlg <dlg@openbsd.org>2015-11-04 00:16:12 +0000
commit519cb35241b7d6896018febf096620b038aa98f5 (patch)
tree5325a410b4e83d35df9ceafbdc450cd7b50c1875 /usr.sbin/installboot/util.c
parentuse IFQ_IS_EMPTY to see if if_snd is empty, not IF_IS_EMPTY (diff)
downloadwireguard-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