tunnel: test VXLAN receive and UDP checksum
[cascardo/ovs.git] / lib / route-table-stub.c
index a4a0991..70b1a3d 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2012 Nicira, Inc.
+/* Copyright (c) 2012, 2013, 2014 Nicira, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * 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;
 }
 
-void
-route_table_register(void)
+uint64_t
+route_table_get_change_seq(void)
 {
+    return 0;
 }
 
 void
-route_table_unregister(void)
+route_table_init(void)
 {
+    ovs_router_init();
 }
 
 void