svn commit: r275730 - head/sys/net
John Baldwin
jhb at FreeBSD.org
Fri Dec 12 16:10:44 UTC 2014
Author: jhb
Date: Fri Dec 12 16:10:42 2014
New Revision: 275730
URL: https://svnweb.freebsd.org/changeset/base/275730
Log:
Provide a dead version of if_get_counter.
Submitted by: glebius
Reported by: np
Modified:
head/sys/net/if_dead.c
Modified: head/sys/net/if_dead.c
==============================================================================
--- head/sys/net/if_dead.c Fri Dec 12 11:29:54 2014 (r275729)
+++ head/sys/net/if_dead.c Fri Dec 12 16:10:42 2014 (r275730)
@@ -93,6 +93,13 @@ ifdead_transmit(struct ifnet *ifp, struc
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;
}
More information about the svn-src-all
mailing list