Lines Matching defs:npt

419 post_p_rtnh(void *_attrs, struct nl_pstate *npt __unused)
434 nlattr_get_multipath(struct nlattr *nla, struct nl_pstate *npt,
446 mp = npt_alloc(npt, (max_nhops + 2) * sizeof(struct rta_mpath_nh));
454 NLMSG_REPORT_ERR_MSG(npt, "%s: bad length %u",
460 npt, mpnh);
462 NLMSG_REPORT_ERR_MSG(npt,
472 NLMSG_REPORT_ERR_MSG(npt, "invalid RTA_MULTIPATH attr");
531 post_p_rtmsg(void *_attrs, struct nl_pstate *npt __unused)
623 struct nlmsghdr *hdr, struct nl_pstate *npt)
633 NLMSG_REPORT_ERR_MSG(npt, "No RTA_DST supplied");
670 dump_px(fibnum, hdr, rt, &rnd, npt->nw);
819 struct nl_pstate *npt, struct nhop_object **pnh)
830 error = nl_set_nexthop_gw(nh, mpnh->gw, mpnh->ifp, npt);
850 struct nl_pstate *npt, int *perror)
859 struct weightened_nhop *wn = npt_alloc(npt, sizeof(*wn) * num_nhops);
864 error = create_nexthop_one(attrs, mpnh, npt, &wn[i].nh);
900 *perror = nl_set_nexthop_gw(nh, attrs->rta_gw, attrs->rta_oif, npt);
938 struct nl_pstate *npt)
945 error = nl_parse_nlmsg(hdr, &rtm_parser, npt, &attrs);
959 NLMSG_REPORT_ERR_MSG(npt, "invalid fib");
971 nh = create_nexthop_from_attrs(&attrs, npt, &error);
1006 struct nl_pstate *npt)
1012 error = nl_parse_nlmsg(hdr, &rtm_parser, npt, &attrs);
1017 NLMSG_REPORT_ERR_MSG(npt, "RTA_DST is not set");
1022 NLMSG_REPORT_ERR_MSG(npt, "invalid fib");
1035 rtnl_handle_getroute(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_pstate *npt)
1040 error = nl_parse_nlmsg(hdr, &rtm_parser, npt, &attrs);
1045 NLMSG_REPORT_ERR_MSG(npt, "invalid fib");
1050 error = handle_rtm_dump(nlp, attrs.rta_table, attrs.rtm_family, hdr, npt->nw);
1052 error = handle_rtm_getroute(nlp, &attrs, hdr, npt);