diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-01-26 10:12:35 -0500 | 
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-03-09 11:07:41 -0500 | 
| commit | 7ee30f288e9d572d971c2a36b68775c7d2fac299 (patch) | |
| tree | 6e24b4fde63b53cff251a69fa54fa69afff046b1 /zebra/rt_socket.c | |
| parent | ba1849ef8c8560cff44008e06c5668b8261b033e (diff) | |
lib: Isolate nexthop_group functions to nexthop_group.c
Also modify `struct route_entry` to use nexthop_groups.
Move ALL_NEXTHOPS loop to nexthop_group.h
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/rt_socket.c')
| -rw-r--r-- | zebra/rt_socket.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/rt_socket.c b/zebra/rt_socket.c index 1aa402672e..433faf789a 100644 --- a/zebra/rt_socket.c +++ b/zebra/rt_socket.c @@ -123,7 +123,7 @@ static int kernel_rtm_ipv4(int cmd, struct prefix *p, struct route_entry *re)  #endif /* HAVE_STRUCT_SOCKADDR_IN_SIN_LEN */  	/* Make gateway. */ -	for (ALL_NEXTHOPS(re->nexthop, nexthop)) { +	for (ALL_NEXTHOPS(re->ng, nexthop)) {  		if (CHECK_FLAG(nexthop->flags, NEXTHOP_FLAG_RECURSIVE))  			continue; @@ -303,7 +303,7 @@ static int kernel_rtm_ipv6(int cmd, struct prefix *p, struct route_entry *re)  #endif /* HAVE_STRUCT_SOCKADDR_IN_SIN_LEN */  	/* Make gateway. */ -	for (ALL_NEXTHOPS(re->nexthop, nexthop)) { +	for (ALL_NEXTHOPS(re->ng, nexthop)) {  		if (CHECK_FLAG(nexthop->flags, NEXTHOP_FLAG_RECURSIVE))  			continue;  | 
