Home | History | Annotate | Download | only in ip

Lines Matching defs:rth

226 	struct rtnl_handle rth;
337 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0)
343 if (rtnl_talk(&rth, &req.n, 0, 0, NULL, NULL, NULL) < 0)
346 rtnl_close(&rth);
507 struct rtnl_handle rth;
581 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0)
587 if (rtnl_talk(&rth, &req.n, 0, 0, res_nlbuf, NULL, NULL) < 0)
590 rtnl_close(&rth);
626 struct rtnl_handle *rth = xb->rth;
671 new_n->nlmsg_seq = ++rth->seq;
687 struct rtnl_handle rth;
752 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0)
762 xb.rth = &rth;
771 if (rtnl_wilddump_request(&rth, preferred_family, XFRM_MSG_GETPOLICY) < 0) {
776 if (rtnl_dump_filter(&rth, xfrm_policy_keep, &xb, NULL, NULL) < 0) {
786 if (rtnl_send_check(&rth, xb.buf, xb.offset) < 0) {
797 if (rtnl_wilddump_request(&rth, preferred_family, XFRM_MSG_GETPOLICY) < 0) {
802 if (rtnl_dump_filter(&rth, xfrm_policy_print, stdout, NULL, NULL) < 0) {
808 rtnl_close(&rth);
875 struct rtnl_handle rth;
889 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0)
892 if (rtnl_talk(&rth, &req.n, 0, 0, &req.n, NULL, NULL) < 0)
897 rtnl_close(&rth);
904 struct rtnl_handle rth;
938 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0)
944 if (rtnl_talk(&rth, &req.n, 0, 0, NULL, NULL, NULL) < 0)
947 rtnl_close(&rth);