gluon-packages/libs/lua-ethtool-stats
Matthias Schiffer d8b1e11924 Add new package lua-ethtool-stats containing a minimal interface to replace `ethtool -S` 2014-08-04 20:08:33 +02:00
..
src Add new package lua-ethtool-stats containing a minimal interface to replace `ethtool -S` 2014-08-04 20:08:33 +02:00
Makefile Add new package lua-ethtool-stats containing a minimal interface to replace `ethtool -S` 2014-08-04 20:08:33 +02:00
README Add new package lua-ethtool-stats containing a minimal interface to replace `ethtool -S` 2014-08-04 20:08:33 +02:00

README

This package provides a Lua module with the name 'ethtool_stats'. The module has
a single function, interface_stats().

interface_stats() expects one parameter, the name of the interface to get the
stats from. It returns a table with string keys and numeric values which
contains the stats returned by ethtool (the same `ethtool -S interface` would
yield).