Skip to content

Commit 34d3ce3

Browse files
semarietgross35
authored andcommitted
unbreak OpenBSD after #3714 by properly define RTF_FMASK
(backport <#3970>) (cherry picked from commit dbe4b8b)
1 parent ded2ae1 commit 34d3ce3

File tree

1 file changed

+9
-1
lines changed
  • src/unix/bsd/netbsdlike/openbsd

1 file changed

+9
-1
lines changed

src/unix/bsd/netbsdlike/openbsd/mod.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1931,7 +1931,15 @@ pub const RTF_LOCAL: ::c_int = 0x200000;
19311931
pub const RTF_BROADCAST: ::c_int = 0x400000;
19321932
pub const RTF_CONNECTED: ::c_int = 0x800000;
19331933
pub const RTF_BFD: ::c_int = 0x1000000;
1934-
pub const RTF_FMASK: ::c_int = b'\\' as _;
1934+
pub const RTF_FMASK: ::c_int = ::RTF_LLINFO
1935+
| ::RTF_PROTO1
1936+
| ::RTF_PROTO2
1937+
| ::RTF_PROTO3
1938+
| ::RTF_BLACKHOLE
1939+
| ::RTF_REJECT
1940+
| ::RTF_STATIC
1941+
| ::RTF_MPLS
1942+
| ::RTF_BFD;
19351943

19361944
pub const RTM_VERSION: ::c_int = 5;
19371945
pub const RTM_RESOLVE: ::c_int = 0xb;

0 commit comments

Comments
 (0)