]> git.feebdaed.xyz Git - 0xmirror/ovs.git/commitdiff
test-lib-route-table: Add missing RTPROT_BGP definition.
authorIlya Maximets <i.maximets@ovn.org>
Thu, 9 Oct 2025 09:21:23 +0000 (11:21 +0200)
committerIlya Maximets <i.maximets@ovn.org>
Fri, 10 Oct 2025 18:04:38 +0000 (20:04 +0200)
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.")
Acked-by: Kevin Traynor <ktraynor@redhat.com>
Acked-by: Eelco Chaudron <echaudro@redhat.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
tests/test-lib-route-table.c

index 4d4fbe0d35d74d0af9a72be6e4cc59f6f0cf58ef..4ba17826e1f16b83087d1b6ffdbd504b3b082b11 100644 (file)
 #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)
 {