Home | History | Annotate | Download | only in ip

Lines Matching defs:rth

232 	struct rtnl_handle rth;
493 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0)
499 if (rtnl_talk(&rth, &req.n, 0, 0, NULL, NULL, NULL) < 0)
502 rtnl_close(&rth);
509 struct rtnl_handle rth;
617 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0)
624 if (rtnl_talk(&rth, &req.n, 0, 0, res_n, NULL, NULL) < 0)
632 rtnl_close(&rth);
754 struct rtnl_handle rth;
793 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0)
800 if (rtnl_talk(&rth, &req.n, 0, 0, NULL, NULL, NULL) < 0)
808 if (rtnl_talk(&rth, &req.n, 0, 0, res_n, NULL, NULL) < 0)
817 rtnl_close(&rth);
831 struct rtnl_handle *rth = xb->rth;
861 new_n->nlmsg_seq = ++rth->seq;
881 struct rtnl_handle rth;
920 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0)
930 xb.rth = &rth;
939 if (rtnl_wilddump_request(&rth, preferred_family, XFRM_MSG_GETSA) < 0) {
944 if (rtnl_dump_filter(&rth, xfrm_state_keep, &xb, NULL, NULL) < 0) {
954 if (rtnl_send_check(&rth, xb.buf, xb.offset) < 0) {
966 if (rtnl_wilddump_request(&rth, preferred_family, XFRM_MSG_GETSA) < 0) {
971 if (rtnl_dump_filter(&rth, xfrm_state_print, stdout, NULL, NULL) < 0) {
977 rtnl_close(&rth);
1033 struct rtnl_handle rth;
1046 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0)
1049 if (rtnl_talk(&rth, &req.n, 0, 0, &req.n, NULL, NULL) < 0)
1054 rtnl_close(&rth);
1061 struct rtnl_handle rth;
1096 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0)
1103 if (rtnl_talk(&rth, &req.n, 0, 0, NULL, NULL, NULL) < 0)
1106 rtnl_close(&rth);