Lines Matching refs:link
2 * src/nl-link-stats.c Retrieve link statistics
13 #include <netlink/cli/link.h>
18 "Usage: nl-link-stats [OPTION]... [LINK] [ListOfStats]\n"
26 " -n, --name=NAME link name\n"
45 static void dump_stat(struct rtnl_link *link, int id)
47 uint64_t st = rtnl_link_get_stat(link, id);
50 printf("%s.%s %" PRIu64 "\n", rtnl_link_get_name(link),
56 struct rtnl_link *link = (struct rtnl_link *) obj;
63 dump_stat(link, i);
72 dump_stat(link, id);
83 struct rtnl_link *link;
88 link = nl_cli_link_alloc();
109 case 'n': nl_cli_link_parse_name(link, optarg); break;
110 case 'i': nl_cli_link_parse_ifindex(link, optarg); break;
115 nl_cache_foreach_filter(link_cache, OBJ_CAST(link), dump_stats, argv);