Lines Matching refs:rth
239 struct rtnl_handle rth;
512 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0)
518 if (rtnl_talk(&rth, &req.n, 0, 0, NULL, NULL, NULL) < 0)
521 rtnl_close(&rth);
528 struct rtnl_handle rth;
648 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0)
655 if (rtnl_talk(&rth, &req.n, 0, 0, res_n, NULL, NULL) < 0)
663 rtnl_close(&rth);
785 struct rtnl_handle rth;
838 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0)
845 if (rtnl_talk(&rth, &req.n, 0, 0, NULL, NULL, NULL) < 0)
853 if (rtnl_talk(&rth, &req.n, 0, 0, res_n, NULL, NULL) < 0)
862 rtnl_close(&rth);
876 struct rtnl_handle *rth = xb->rth;
906 new_n->nlmsg_seq = ++rth->seq;
926 struct rtnl_handle rth;
965 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0)
975 xb.rth = &rth;
984 if (rtnl_wilddump_request(&rth, preferred_family, XFRM_MSG_GETSA) < 0) {
989 if (rtnl_dump_filter(&rth, xfrm_state_keep, &xb, NULL, NULL) < 0) {
999 if (rtnl_send_check(&rth, xb.buf, xb.offset) < 0) {
1011 if (rtnl_wilddump_request(&rth, preferred_family, XFRM_MSG_GETSA) < 0) {
1016 if (rtnl_dump_filter(&rth, xfrm_state_print, stdout, NULL, NULL) < 0) {
1022 rtnl_close(&rth);
1078 struct rtnl_handle rth;
1091 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0)
1094 if (rtnl_talk(&rth, &req.n, 0, 0, &req.n, NULL, NULL) < 0)
1099 rtnl_close(&rth);
1106 struct rtnl_handle rth;
1141 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0)
1148 if (rtnl_talk(&rth, &req.n, 0, 0, NULL, NULL, NULL) < 0)
1151 rtnl_close(&rth);