Mercurial > ecos
diff packages/io/eth/current/src/net/eth_drv.c @ 117:bd1a71e3e476 ecos-sw-2000-08-25
Merge from eCos master repository on 2000-08-25-19:22:58-BST
| author | jlarmour |
|---|---|
| date | Fri, 25 Aug 2000 19:17:22 +0000 |
| parents | 6ed91473a1cd |
| children | 6bd9d475ed4b |
line wrap: on
line diff
--- a/packages/io/eth/current/src/net/eth_drv.c +++ b/packages/io/eth/current/src/net/eth_drv.c @@ -210,6 +210,21 @@ eth_drv_ioctl(struct ifnet *ifp, u_long } break; +#ifdef SIOCGIFSTATS + case SIOCGIFSTATS: +#ifdef SIOCGIFSTATSUD + case SIOCGIFSTATSUD: +#endif + // Get interface statistics: + if ((sc->funs->control)(sc, (cmd == SIOCGIFSTATS) + ? ETH_DRV_GET_IF_STATS + : ETH_DRV_GET_IF_STATS_UD, + data, 0 ) ) { + error = EINVAL; + } + break; +#endif // SIOCGIFSTATS + case SIOCSIFFLAGS: if ((ifp->if_flags & IFF_UP) == 0 && (ifp->if_flags & IFF_RUNNING) != 0) {
