diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-08-24 04:01:20 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-09-01 07:20:18 -0400 |
| commit | b4c034b0330e378b51a0e516d717b5fbfcfc083f (patch) | |
| tree | 9a3ac10296d0cdc30291b51b26b444392389c341 /zebra/redistribute.c | |
| parent | 3b1098beed5c294746a9203b5de3c9da82c25d76 (diff) | |
zebra: refactor rib_add_ipv[4|6]_multipath
The rib_add_ipv[4|6]_multipath functions are functionally
equivalent. Refactor to 1 function.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/redistribute.c')
| -rw-r--r-- | zebra/redistribute.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/redistribute.c b/zebra/redistribute.c index 776c3519be..2864e0b8a5 100644 --- a/zebra/redistribute.c +++ b/zebra/redistribute.c @@ -598,7 +598,7 @@ zebra_add_import_table_entry (struct route_node *rn, struct rib *rib, const char for (nhop = rib->nexthop; nhop; nhop = nhop->next) rib_copy_nexthops(newrib, nhop); - rib_add_ipv4_multipath((struct prefix_ipv4 *)&p, newrib, SAFI_UNICAST); + rib_add_multipath(AFI_IP, SAFI_UNICAST, &p, newrib); } } } |
