Logo Search packages:      
Sourcecode: libnl version File versions  Download package

uint64_t rtnl_link_get_stat ( struct rtnl_link *  link,
int  id 

Get the statistic specified by the id

  • link link handle
  • id statistic id
    The current counter of the specified statistic

Definition at line 1326 of file link.c.

      if (id < 0 || id > RTNL_LINK_STATS_MAX)
            return 0;

      return link->l_stats[id];

Generated by  Doxygen 1.6.0   Back to index