Skip to content

Commit 029c1e7

Browse files
committed
update comments and permalink
1 parent a86bef5 commit 029c1e7

File tree

1 file changed

+8
-15
lines changed
  • src/unix/bsd/netbsdlike/openbsd

1 file changed

+8
-15
lines changed

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

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1445,21 +1445,14 @@ const SI_PAD: size_t = (SI_MAXSZ / size_of::<c_int>()) - 3;
14451445
pub const MAP_STACK: c_int = 0x4000;
14461446
pub const MAP_CONCEAL: c_int = 0x8000;
14471447

1448-
// https://github.com/openbsd/src/blob/HEAD/sys/net/if.h#L135
1449-
/// link unknown
1450-
pub const LINK_STATE_UNKNOWN: c_int = 0;
1451-
/// link invalid
1452-
pub const LINK_STATE_INVALID: c_int = 1;
1453-
/// link is down
1454-
pub const LINK_STATE_DOWN: c_int = 2;
1455-
/// keepalive reports down
1456-
pub const LINK_STATE_KALIVE_DOWN: c_int = 3;
1457-
/// link is up
1458-
pub const LINK_STATE_UP: c_int = 4;
1459-
/// link is up and half duplex
1460-
pub const LINK_STATE_HALF_DUPLEX: c_int = 5;
1461-
/// link is up and full duplex
1462-
pub const LINK_STATE_FULL_DUPLEX: c_int = 6;
1448+
// https://github.com/openbsd/src/blob/f8a2f73b6503213f5eb24ca315ac7e1f9421c0c9/sys/net/if.h#L135
1449+
pub const LINK_STATE_UNKNOWN: c_int = 0; // link unknown
1450+
pub const LINK_STATE_INVALID: c_int = 1; // link invalid
1451+
pub const LINK_STATE_DOWN: c_int = 2; // link is down
1452+
pub const LINK_STATE_KALIVE_DOWN: c_int = 3; // keepalive reports down
1453+
pub const LINK_STATE_UP: c_int = 4; // link is up
1454+
pub const LINK_STATE_HALF_DUPLEX: c_int = 5; // link is up and half duplex
1455+
pub const LINK_STATE_FULL_DUPLEX: c_int = 6; // link is up and full duplex
14631456

14641457
// https://github.com/openbsd/src/blob/HEAD/sys/net/if.h#L187
14651458
pub const IFF_UP: c_int = 0x1; // interface is up

0 commit comments

Comments
 (0)