Lines Matching defs:rth
224 struct rtnl_handle rth;
383 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0)
389 if (rtnl_talk(&rth, &req.n, 0, 0, NULL, NULL, NULL) < 0)
392 rtnl_close(&rth);
399 struct rtnl_handle rth;
507 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0)
514 if (rtnl_talk(&rth, &req.n, 0, 0, res_n, NULL, NULL) < 0)
522 rtnl_close(&rth);
621 struct rtnl_handle rth;
660 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0)
667 if (rtnl_talk(&rth, &req.n, 0, 0, NULL, NULL, NULL) < 0)
675 if (rtnl_talk(&rth, &req.n, 0, 0, res_n, NULL, NULL) < 0)
684 rtnl_close(&rth);
698 struct rtnl_handle *rth = xb->rth;
728 new_n->nlmsg_seq = ++rth->seq;
745 struct rtnl_handle rth;
784 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0)
794 xb.rth = &rth;
803 if (rtnl_wilddump_request(&rth, preferred_family, XFRM_MSG_GETSA) < 0) {
808 if (rtnl_dump_filter(&rth, xfrm_state_keep, &xb, NULL, NULL) < 0) {
818 if (rtnl_send(&rth, xb.buf, xb.offset) < 0) {
830 if (rtnl_wilddump_request(&rth, preferred_family, XFRM_MSG_GETSA) < 0) {
835 if (rtnl_dump_filter(&rth, xfrm_state_print, stdout, NULL, NULL) < 0) {
841 rtnl_close(&rth);
848 struct rtnl_handle rth;
883 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0)
891 if (rtnl_talk(&rth, &req.n, 0, 0, NULL, NULL, NULL) < 0)
894 rtnl_close(&rth);