Lines Matching refs:rth
271 struct rtnl_handle rth;
684 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0)
690 if (rtnl_talk(&rth, &req.n, NULL, 0) < 0)
693 rtnl_close(&rth);
700 struct rtnl_handle rth;
820 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0)
827 if (rtnl_talk(&rth, &req.n, res_n, sizeof(res_buf)) < 0)
835 rtnl_close(&rth);
957 struct rtnl_handle rth;
1010 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0)
1017 if (rtnl_talk(&rth, &req.n, NULL, 0) < 0)
1025 if (rtnl_talk(&rth, &req.n, res_n, sizeof(req)) < 0)
1034 rtnl_close(&rth);
1048 struct rtnl_handle *rth = xb->rth;
1078 new_n->nlmsg_seq = ++rth->seq;
1098 struct rtnl_handle rth;
1137 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0)
1147 xb.rth = &rth;
1157 .n.nlmsg_seq = rth.dump = ++rth.seq,
1166 if (rtnl_send(&rth, (void *)&req, req.n.nlmsg_len) < 0) {
1171 if (rtnl_dump_filter(&rth, xfrm_state_keep, &xb) < 0) {
1181 if (rtnl_send_check(&rth, xb.buf, xb.offset) < 0) {
1207 .n.nlmsg_seq = rth.dump = ++rth.seq,
1216 if (rtnl_send(&rth, (void *)&req, req.n.nlmsg_len) < 0) {
1221 if (rtnl_dump_filter(&rth, xfrm_state_print, stdout) < 0) {
1227 rtnl_close(&rth);
1283 struct rtnl_handle rth;
1296 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0)
1299 if (rtnl_talk(&rth, &req.n, &req.n, sizeof(req)) < 0)
1304 rtnl_close(&rth);
1311 struct rtnl_handle rth;
1346 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0)
1353 if (rtnl_talk(&rth, &req.n, NULL, 0) < 0)
1356 rtnl_close(&rth);