Home | History | Annotate | Download | only in ip

Lines Matching refs:rth

246 	struct rtnl_handle rth;
389 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0)
395 if (rtnl_talk(&rth, &req.n, NULL, 0) < 0)
398 rtnl_close(&rth);
559 struct rtnl_handle rth;
652 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0)
672 if (rtnl_talk(&rth, &req.n, res_nlbuf, res_size) < 0)
675 rtnl_close(&rth);
711 struct rtnl_handle *rth = xb->rth;
756 new_n->nlmsg_seq = ++rth->seq;
772 struct rtnl_handle rth;
837 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0)
847 xb.rth = &rth;
857 .n.nlmsg_seq = rth.dump = ++rth.seq,
866 if (rtnl_send(&rth, (void *)&req, req.n.nlmsg_len) < 0) {
871 if (rtnl_dump_filter(&rth, xfrm_policy_keep, &xb) < 0) {
881 if (rtnl_send_check(&rth, xb.buf, xb.offset) < 0) {
899 .n.nlmsg_seq = rth.dump = ++rth.seq,
902 if (rtnl_send(&rth, (void *)&req, req.n.nlmsg_len) < 0) {
907 if (rtnl_dump_filter(&rth, xfrm_policy_print, stdout) < 0) {
913 rtnl_close(&rth);
1008 struct rtnl_handle rth;
1063 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0)
1066 if (rtnl_talk(&rth, &req.n, NULL, 0) < 0)
1069 rtnl_close(&rth);
1076 struct rtnl_handle rth;
1090 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0)
1093 if (rtnl_talk(&rth, &req.n, &req.n, sizeof(req)) < 0)
1098 rtnl_close(&rth);
1105 struct rtnl_handle rth;
1139 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0)
1145 if (rtnl_talk(&rth, &req.n, NULL, 0) < 0)
1148 rtnl_close(&rth);