summaryrefslogtreecommitdiff
path: root/zebra/zserv.c
diff options
context:
space:
mode:
authorPaul Jakma <paul.jakma@sun.com>2006-07-27 16:11:02 +0000
committerPaul Jakma <paul.jakma@sun.com>2006-07-27 16:11:02 +0000
commit171eee31edbddbd8906447dc8725e0513227d013 (patch)
treeedf6f16fe912232d92dac1eeb6d9adadb93082c6 /zebra/zserv.c
parent1fe6ed38cd0136c514aabae01389653beab27fb9 (diff)
[zebra] Connected routes must always be added to main table
2006-07-27 Rumen Svobodnikov <rumen@telecoms.bg> * connected.c: (connected_up_ipv4) interface connected routes always go to table main (or otherwise they cannot be used by linux as nexthops) * zserv.c: (zread_ipv4_add) send route to the correct routing table * zebra_rib.c (static_install_ipv4) set routing table
Diffstat (limited to 'zebra/zserv.c')
-rw-r--r--zebra/zserv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/zebra/zserv.c b/zebra/zserv.c
index 5b38fc19..1703d3f5 100644
--- a/zebra/zserv.c
+++ b/zebra/zserv.c
@@ -801,6 +801,8 @@ zread_ipv4_add (struct zserv *client, u_short length)
if (CHECK_FLAG (message, ZAPI_MESSAGE_METRIC))
rib->metric = stream_getl (s);
+ /* Table */
+ rib->table=zebrad.rtm_table_default;
rib_add_ipv4_multipath (&p, rib);
return 0;
}