Lines Matching defs:rtnl
64 static int test_tunnel_configure(sd_netlink *rtnl) {
78 assert_se(sd_rtnl_message_new_link(rtnl, &m, RTM_NEWLINK, 0) >= 0);
97 assert_se(sd_netlink_call(rtnl, m, -1, 0) == 1);
106 assert_se(sd_rtnl_message_new_link(rtnl, &n, RTM_NEWLINK, 0) >= 0);
127 assert_se(sd_netlink_call(rtnl, n, -1, 0) == 1);
135 sd_netlink *rtnl;
138 assert_se(sd_netlink_open(&rtnl) >= 0);
139 assert_se(rtnl);
141 r = test_tunnel_configure(rtnl);
143 assert_se((rtnl = sd_netlink_unref(rtnl)) == NULL);