Keep track of the ifih corresponding to a vlan instance to ease its
authormpi <mpi@openbsd.org>
Wed, 20 May 2015 08:54:37 +0000 (08:54 +0000)
committermpi <mpi@openbsd.org>
Wed, 20 May 2015 08:54:37 +0000 (08:54 +0000)
commit13da665488d68a5b20a68abc846fb1610cd97fa9
tree493cfe7be5593a4b813078e263739c7b8cfd39f3
parent99afeb6445b157a48365b53af2b182d8e28ab57a
Keep track of the ifih corresponding to a vlan instance to ease its
removal.

As soon as carp(4) will be converted to the new if_input() API it
will be possible to add multiple vlan(4) and carp(4) pseudo-ifps on
top of the same parent interface.  When such thing happens we can no
longer assume that the first pseudo-ifp to be destroyed will be the
last configured.

ok dlg@
sys/net/if_vlan.c
sys/net/if_vlan_var.h