From dbe4b8b1a607163ff11ada0a13a7dc3549a4c62d Mon Sep 17 00:00:00 2001 From: Sebastien Marie Date: Tue, 15 Oct 2024 07:15:45 +0000 Subject: [PATCH] unbreak OpenBSD after #3714 by properly define RTF_FMASK --- src/unix/bsd/netbsdlike/openbsd/mod.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/unix/bsd/netbsdlike/openbsd/mod.rs b/src/unix/bsd/netbsdlike/openbsd/mod.rs index 9e14e89515e47..19a43979b8318 100644 --- a/src/unix/bsd/netbsdlike/openbsd/mod.rs +++ b/src/unix/bsd/netbsdlike/openbsd/mod.rs @@ -1896,7 +1896,15 @@ pub const RTF_LOCAL: ::c_int = 0x200000; pub const RTF_BROADCAST: ::c_int = 0x400000; pub const RTF_CONNECTED: ::c_int = 0x800000; pub const RTF_BFD: ::c_int = 0x1000000; -pub const RTF_FMASK: ::c_int = b'\\' as _; +pub const RTF_FMASK: ::c_int = ::RTF_LLINFO + | ::RTF_PROTO1 + | ::RTF_PROTO2 + | ::RTF_PROTO3 + | ::RTF_BLACKHOLE + | ::RTF_REJECT + | ::RTF_STATIC + | ::RTF_MPLS + | ::RTF_BFD; pub const RTM_VERSION: ::c_int = 5; pub const RTM_RESOLVE: ::c_int = 0xb;