Lines Matching refs:next2
130 bgp_nexthop_same (struct nexthop *next1, struct nexthop *next2)
132 if (next1->type != next2->type)
138 if (! IPV4_ADDR_SAME (&next1->gate.ipv4, &next2->gate.ipv4))
143 if (next1->ifindex != next2->ifindex)
148 if (! IPV6_ADDR_SAME (&next1->gate.ipv6, &next2->gate.ipv6))
153 if (! IPV6_ADDR_SAME (&next1->gate.ipv6, &next2->gate.ipv6))
155 if (next1->ifindex != next2->ifindex)
168 struct nexthop *next1, *next2;
174 next2 = bnc2->nexthop;
178 if (! bgp_nexthop_same (next1, next2))
182 next2 = next2->next;