Skip to content

Commit be634d9

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

File tree

1 file changed

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

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1896,7 +1896,9 @@ 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 | ::RTF_PROTO1 | ::RTF_PROTO2
1900+
| ::RTF_PROTO3 | ::RTF_BLACKHOLE | ::RTF_REJECT | ::RTF_STATIC
1901+
| ::RTF_MPLS | ::RTF_BFD;
19001902

19011903
pub const RTM_VERSION: ::c_int = 5;
19021904
pub const RTM_RESOLVE: ::c_int = 0xb;

0 commit comments

Comments
 (0)