diff options
Diffstat (limited to 'zebra/connected.c')
-rw-r--r-- | zebra/connected.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/zebra/connected.c b/zebra/connected.c index 44002e76..2b31aa3a 100644 --- a/zebra/connected.c +++ b/zebra/connected.c @@ -200,8 +200,13 @@ connected_up_ipv4 (struct interface *ifp, struct connected *ifc) if (prefix_ipv4_any (&p)) return; +#ifndef SUPPORT_REALMS rib_add_ipv4 (ZEBRA_ROUTE_CONNECT, 0, &p, NULL, ifp->ifindex, RT_TABLE_MAIN, ifp->metric, 0); +#else + rib_add_ipv4 (ZEBRA_ROUTE_CONNECT, 0, &p, NULL, ifp->ifindex, RT_TABLE_MAIN, + ifp->metric, 0, 0); +#endif rib_update (); } |