This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
2009-12-17 16:30:24 +00:00
|
|
|
#include "netlink/cli/utils.h"
|
2009-05-06 16:55:44 +00:00
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
struct nl_sock *sock;
|
|
|
|
struct nl_cache *cell_cache;
|
|
|
|
struct nl_cache *cluster_cache;
|
|
|
|
struct nl_dump_params params = {
|
|
|
|
.dp_type = NL_DUMP_LINE,
|
|
|
|
.dp_fd = stdout,
|
|
|
|
};
|
|
|
|
|
2009-12-17 16:30:24 +00:00
|
|
|
sock = nl_cli_alloc_socket();
|
|
|
|
nl_cli_connect(sock, NETLINK_DECT);
|
2009-05-06 16:55:44 +00:00
|
|
|
if (nl_dect_cluster_alloc_cache(sock, &cluster_cache))
|
|
|
|
exit(1);
|
|
|
|
nl_cache_mngt_provide(cluster_cache);
|
|
|
|
if (nl_dect_cell_alloc_cache(sock, &cell_cache))
|
|
|
|
exit(1);
|
|
|
|
|
|
|
|
nl_cache_dump(cell_cache, ¶ms);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|