Skip to content

Commit 0b63f0a

Browse files
committed
unbreak OpenBSD after #3714 by properly define RTF_FMASK
1 parent a31cb99 commit 0b63f0a

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
@@ -1896,7 +1896,15 @@ pub const RTF_LOCAL: ::c_int = 0x200000;
18961896
pub const RTF_BROADCAST: ::c_int = 0x400000;
18971897
pub const RTF_CONNECTED: ::c_int = 0x800000;
18981898
pub const RTF_BFD: ::c_int = 0x1000000;
1899-
pub const RTF_FMASK: ::c_int = b'\\' as _;
1899+
pub const RTF_FMASK: ::c_int = ::RTF_LLINFO
1900+
| ::RTF_PROTO1
1901+
| ::RTF_PROTO2
1902+
| ::RTF_PROTO3
1903+
| ::RTF_BLACKHOLE
1904+
| ::RTF_REJECT
1905+
| ::RTF_STATIC
1906+
| ::RTF_MPLS
1907+
| ::RTF_BFD;
19001908

19011909
pub const RTM_VERSION: ::c_int = 5;
19021910
pub const RTM_RESOLVE: ::c_int = 0xb;

0 commit comments

Comments
 (0)