[packages] quagga: Add connected routes to multicast RIB
authoracinonyx <acinonyx@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 13 Jul 2012 16:35:27 +0000 (16:35 +0000)
committeracinonyx <acinonyx@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 13 Jul 2012 16:35:27 +0000 (16:35 +0000)
git-svn-id: svn+ssh://svn.openwrt.org/openwrt@32696 3c298f89-4303-0410-b956-a3cf2f4a3e73

patches/005-zebra-connected-in-mrib.patch [new file with mode: 0644]

diff --git a/patches/005-zebra-connected-in-mrib.patch b/patches/005-zebra-connected-in-mrib.patch
new file mode 100644 (file)
index 0000000..ba74317
--- /dev/null
@@ -0,0 +1,23 @@
+Index: quagga-0.99.21/zebra/connected.c
+===================================================================
+--- quagga-0.99.21.orig/zebra/connected.c
++++ quagga-0.99.21/zebra/connected.c
+@@ -191,6 +191,9 @@ connected_up_ipv4 (struct interface *ifp
+   rib_add_ipv4 (ZEBRA_ROUTE_CONNECT, 0, &p, NULL, NULL, ifp->ifindex,
+       RT_TABLE_MAIN, ifp->metric, 0, SAFI_UNICAST);
++  rib_add_ipv4 (ZEBRA_ROUTE_CONNECT, 0, &p, NULL, NULL, ifp->ifindex,
++      RT_TABLE_MAIN, ifp->metric, 0, SAFI_MULTICAST);
++
+   rib_update ();
+ }
+@@ -297,6 +300,8 @@ connected_down_ipv4 (struct interface *i
+   /* Same logic as for connected_up_ipv4(): push the changes into the head. */
+   rib_delete_ipv4 (ZEBRA_ROUTE_CONNECT, 0, &p, NULL, ifp->ifindex, 0, SAFI_UNICAST);
++  rib_delete_ipv4 (ZEBRA_ROUTE_CONNECT, 0, &p, NULL, ifp->ifindex, 0, SAFI_MULTICAST);
++
+   rib_update ();
+ }