Lines Matching defs:newinfo
660 struct ripng_info newinfo;
662 memset (&newinfo, 0, sizeof (struct ripng_info));
663 newinfo.type = ZEBRA_ROUTE_RIPNG;
664 newinfo.sub_type = RIPNG_ROUTE_RTE;
666 newinfo.nexthop = ripng_nexthop->address;
668 newinfo.nexthop = from->sin6_addr;
669 newinfo.from = from->sin6_addr;
670 newinfo.ifindex = ifp->ifindex;
671 newinfo.metric = rte->metric;
672 newinfo.metric_out = rte->metric; /* XXX */
673 newinfo.tag = ntohs(rte->tag); /* XXX */
676 (struct prefix *)&p, RMAP_RIPNG, &newinfo);
688 if (! IPV6_ADDR_SAME(&newinfo.nexthop, &ripng_nexthop->address) ) {
690 if (IN6_IS_ADDR_LINKLOCAL(&newinfo.nexthop))
691 ripng_nexthop->address = newinfo.nexthop;
696 if (! IPV6_ADDR_SAME(&newinfo.nexthop, &from->sin6_addr) ) {
698 if (IN6_IS_ADDR_LINKLOCAL(&newinfo.nexthop)) {
700 ripng_nexthop->address = newinfo.nexthop;
704 rte->tag = htons(newinfo.tag_out); /* XXX */
705 rte->metric = newinfo.metric_out; /* XXX: the routemap uses the metric_out field */
1750 struct ripng_info newinfo;
1753 memset (&newinfo, 0, sizeof (struct ripng_info));
1755 newinfo.metric = aggregate->metric;
1756 newinfo.metric_out = aggregate->metric_out;
1757 newinfo.tag = aggregate->tag;
1758 newinfo.tag_out = aggregate->tag_out;
1762 &newinfo);
1772 aggregate->metric_out = newinfo.metric_out;
1773 aggregate->tag_out = newinfo.tag_out;
1774 if (IN6_IS_ADDR_LINKLOCAL(&newinfo.nexthop_out))
1775 aggregate->nexthop_out = newinfo.nexthop_out;