Provide a dead version of if_get_counter.

Submitted by:	glebius
Reported by:	np
This commit is contained in:
John Baldwin 2014-12-12 16:10:42 +00:00
parent cf93a6321a
commit fd22444c4f

View File

@ -93,6 +93,13 @@ ifdead_transmit(struct ifnet *ifp, struct mbuf *m)
return (ENXIO);
}
static uint64_t
ifdead_get_counter(struct ifnet *ifp, ift_counter cnt)
{
return (0);
}
void
if_dead(struct ifnet *ifp)
{
@ -104,4 +111,5 @@ if_dead(struct ifnet *ifp)
ifp->if_resolvemulti = ifdead_resolvemulti;
ifp->if_qflush = ifdead_qflush;
ifp->if_transmit = ifdead_transmit;
ifp->if_get_counter = ifdead_get_counter;
}