Home | History | Annotate | Download | only in ip

Lines Matching refs:rth

228 	struct rtnl_handle rth;
352 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0)
358 if (rtnl_talk(&rth, &req.n, 0, 0, NULL, NULL, NULL) < 0)
361 rtnl_close(&rth);
522 struct rtnl_handle rth;
599 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0)
614 if (rtnl_talk(&rth, &req.n, 0, 0, res_nlbuf, NULL, NULL) < 0)
617 rtnl_close(&rth);
653 struct rtnl_handle *rth = xb->rth;
698 new_n->nlmsg_seq = ++rth->seq;
714 struct rtnl_handle rth;
779 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0)
789 xb.rth = &rth;
798 if (rtnl_wilddump_request(&rth, preferred_family, XFRM_MSG_GETPOLICY) < 0) {
803 if (rtnl_dump_filter(&rth, xfrm_policy_keep, &xb, NULL, NULL) < 0) {
813 if (rtnl_send_check(&rth, xb.buf, xb.offset) < 0) {
824 if (rtnl_wilddump_request(&rth, preferred_family, XFRM_MSG_GETPOLICY) < 0) {
829 if (rtnl_dump_filter(&rth, xfrm_policy_print, stdout, NULL, NULL) < 0) {
835 rtnl_close(&rth);
902 struct rtnl_handle rth;
916 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0)
919 if (rtnl_talk(&rth, &req.n, 0, 0, &req.n, NULL, NULL) < 0)
924 rtnl_close(&rth);
931 struct rtnl_handle rth;
965 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0)
971 if (rtnl_talk(&rth, &req.n, 0, 0, NULL, NULL, NULL) < 0)
974 rtnl_close(&rth);