netdev-dpdk: fix mbuf leaks
[cascardo/ovs.git] / lib / route-table-stub.c
index 9acc81c..70b1a3d 100644 (file)
  * limitations under the License. */
 
 #include <config.h>
-#include "route-table.h"
 
 #include "compiler.h"
+#include "ovs-router.h"
+#include "route-table.h"
 
 bool
-route_table_get_name(ovs_be32 ip OVS_UNUSED, char name[IFNAMSIZ] OVS_UNUSED)
-{
-    name[0] = '\0';
-    return false;
-}
-
-bool
-route_table_get_ifindex(ovs_be32 ip OVS_UNUSED, int *ifindex)
+route_table_fallback_lookup(ovs_be32 ip_dst OVS_UNUSED,
+                            char output_bridge[] OVS_UNUSED,
+                            ovs_be32 *gw)
 {
-    *ifindex = 0;
+    *gw = 0;
     return false;
 }
 
@@ -38,13 +34,9 @@ route_table_get_change_seq(void)
 }
 
 void
-route_table_register(void)
-{
-}
-
-void
-route_table_unregister(void)
+route_table_init(void)
 {
+    ovs_router_init();
 }
 
 void