Date: Fri, 12 Dec 2014 16:10:43 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r275730 - head/sys/net Message-ID: <201412121610.sBCGAhXu034333@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201412121610.sBCGAhXu034333>