This will be also used on the OVN side to parse route table updates.

Signed-off-by: Felix Huettner <[email protected]>
---
 lib/route-table.c | 4 +---
 lib/route-table.h | 3 ++-
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/lib/route-table.c b/lib/route-table.c
index d7d86f9ae..a9a9c6b85 100644
--- a/lib/route-table.c
+++ b/lib/route-table.c
@@ -65,8 +65,6 @@ static bool route_table_valid = false;
 static void route_table_reset(void);
 static void route_table_handle_msg(const struct route_table_msg *,
                                    void *);
-static int route_table_parse_ns(struct ofpbuf *, void *change,
-                                const char *netns);
 static void route_table_change(const struct route_table_msg *, void *);
 static void route_map_clear(void);
 
@@ -207,7 +205,7 @@ route_table_reset(void)
 
 /* Return RTNLGRP_IPV4_ROUTE or RTNLGRP_IPV6_ROUTE on success, 0 on parse
  * error. */
-static int
+int
 route_table_parse_ns(struct ofpbuf *buf, void *change_,
                      const char *netns OVS_UNUSED)
 {
diff --git a/lib/route-table.h b/lib/route-table.h
index b3d2a8741..1e9f51a98 100644
--- a/lib/route-table.h
+++ b/lib/route-table.h
@@ -24,7 +24,7 @@
 #include <stdbool.h>
 #include <stdint.h>
 
-#include "openvswitch/types.h"
+#include "openvswitch/ofpbuf.h"
 
 struct route_data {
     /* Copied from struct rtmsg. */
@@ -55,6 +55,7 @@ uint64_t route_table_get_change_seq(void);
 void route_table_init(void);
 void route_table_run(void);
 void route_table_wait(void);
+int route_table_parse_ns(struct ofpbuf *, void *change, const char *netns);
 bool route_table_fallback_lookup(const struct in6_addr *ip6_dst,
                                  char name[],
                                  struct in6_addr *gw6);
-- 
2.47.0


_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to