RTPROT_BGP was added in Linux v4.18.  We should define it if it's
not available, otherwise build fails on older kernels.

Fixes: 91fc51106cfe ("route-table: Support parsing multipath routes.")
Signed-off-by: Ilya Maximets <[email protected]>
---
 tests/test-lib-route-table.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/test-lib-route-table.c b/tests/test-lib-route-table.c
index 4d4fbe0d3..4ba17826e 100644
--- a/tests/test-lib-route-table.c
+++ b/tests/test-lib-route-table.c
@@ -33,6 +33,11 @@
 #define RTPROT_OVN 84
 #endif
 
+/* Definition was added in Linux v4.18. */
+#ifndef RTPROT_BGP
+#define RTPROT_BGP 186
+#endif
+
 static char *
 rt_prot_name(unsigned char p)
 {
-- 
2.51.0

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

Reply via email to