Lines Matching refs:rth
44 struct rtnl_handle rth; in genl_ctrl_resolve_family() local
63 if (rtnl_open_byproto(&rth, 0, NETLINK_GENERIC) < 0) { in genl_ctrl_resolve_family()
70 if (rtnl_talk(&rth, nlh, 0, 0, nlh) < 0) { in genl_ctrl_resolve_family()
111 rtnl_close(&rth); in genl_ctrl_resolve_family()
286 struct rtnl_handle rth; in ctrl_list() local
306 if (rtnl_open_byproto(&rth, 0, NETLINK_GENERIC) < 0) { in ctrl_list()
337 if (rtnl_talk(&rth, nlh, 0, 0, nlh) < 0) { in ctrl_list()
351 nlh->nlmsg_seq = rth.dump = ++rth.seq; in ctrl_list()
353 if (rtnl_send(&rth, nlh, nlh->nlmsg_len) < 0) { in ctrl_list()
358 rtnl_dump_filter(&rth, print_ctrl, stdout); in ctrl_list()
364 rtnl_close(&rth); in ctrl_list()
370 struct rtnl_handle rth; in ctrl_listen() local
372 if (rtnl_open_byproto(&rth, nl_mgrp(GENL_ID_CTRL), NETLINK_GENERIC) < 0) { in ctrl_listen()
377 if (rtnl_listen(&rth, print_ctrl, (void *) stdout) < 0) in ctrl_listen()