return;
}
- if (in_addr_cmp((uint8_t *)&(*re)->ng.nexthop->gate.ipv4,
- (uint8_t *)&re2->ng.nexthop->gate.ipv4)
+ if (in_addr_cmp((uint8_t *)&(*re)->ng->nexthop->gate.ipv4,
+ (uint8_t *)&re2->ng->nexthop->gate.ipv4)
<= 0)
return;
(uint8_t *)&dest)) {
RNODE_FOREACH_RE (*np, *re) {
if (!in_addr_cmp((uint8_t *)&(*re)
- ->ng.nexthop
+ ->ng->nexthop
->gate.ipv4,
(uint8_t *)&nexthop))
if (proto
|| ((policy == policy2) && (proto < proto2))
|| ((policy == policy2) && (proto == proto2)
&& (in_addr_cmp(
- (uint8_t *)&re2->ng.nexthop
+ (uint8_t *)&re2->ng->nexthop
->gate.ipv4,
(uint8_t *)&nexthop)
>= 0)))
{
struct nexthop *nexthop;
- nexthop = (*re)->ng.nexthop;
+ nexthop = (*re)->ng->nexthop;
if (nexthop) {
pnt = (uint8_t *)&nexthop->gate.ipv4;
for (i = 0; i < 4; i++)
if (!np)
return NULL;
- nexthop = re->ng.nexthop;
+ nexthop = re->ng->nexthop;
if (!nexthop)
return NULL;