File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
unix/bsd/netbsdlike/openbsd Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 2929 }
3030}
3131
32+ pub const LINK_STATE_UNKNOWN : c_int = 0 ; // link invalid/unknown
33+ pub const LINK_STATE_DOWN : c_int = 1 ; // link is down
34+ pub const LINK_STATE_UP : c_int = 2 ; // link is up
35+
3236pub const IFF_UP : c_int = 0x0001 ; // interface is up
3337pub const IFF_BROADCAST : c_int = 0x0002 ; // broadcast address valid
3438pub const IFF_DEBUG : c_int = 0x0004 ; // turn on debugging
Original file line number Diff line number Diff line change @@ -1445,6 +1445,15 @@ const SI_PAD: size_t = (SI_MAXSZ / size_of::<c_int>()) - 3;
14451445pub const MAP_STACK : c_int = 0x4000 ;
14461446pub const MAP_CONCEAL : c_int = 0x8000 ;
14471447
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
1456+
14481457// https://github.com/openbsd/src/blob/HEAD/sys/net/if.h#L187
14491458pub const IFF_UP : c_int = 0x1 ; // interface is up
14501459pub const IFF_BROADCAST : c_int = 0x2 ; // broadcast address valid
You can’t perform that action at this time.
0 commit comments