Skip to content

Commit 8a67ed1

Browse files
author
Markus Wanner (mwa)
committed
Use IFF_OACTIVE and IFF_RUNNING even on FreeBSD. Deprecate the DRV ones.
1 parent 1a2f963 commit 8a67ed1

File tree

1 file changed

+6
-2
lines changed
  • src/unix/bsd/freebsdlike/freebsd

1 file changed

+6
-2
lines changed

src/unix/bsd/freebsdlike/freebsd/mod.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,11 +432,15 @@ pub const IFF_DEBUG: ::c_int = 0x4; // (n) turn on debugging
432432
pub const IFF_LOOPBACK: ::c_int = 0x8; // (i) is a loopback net
433433
pub const IFF_POINTOPOINT: ::c_int = 0x10; // (i) is a point-to-point link
434434
// 0x20 was IFF_SMART
435-
pub const IFF_DRV_RUNNING: ::c_int = 0x40; // (d) resources allocated
435+
pub const IFF_RUNNING: ::c_int = 0x40; // (d) resources allocated
436+
#[deprecated(since="0.2.34", note="please use the portable `IFF_RUNNING` instead")]
437+
pub const IFF_DRV_RUNNING: ::c_int = 0x40; // (d) resources allocated (deprecated)
436438
pub const IFF_NOARP: ::c_int = 0x80; // (n) no address resolution protocol
437439
pub const IFF_PROMISC: ::c_int = 0x100; // (n) receive all packets
438440
pub const IFF_ALLMULTI: ::c_int = 0x200; // (n) receive all multicast packets
439-
pub const IFF_DRV_OACTIVE: ::c_int = 0x400; // (d) tx hardware queue is full
441+
pub const IFF_OACTIVE: ::c_int = 0x400; // (d) tx hardware queue is full
442+
#[deprecated(since="0.2.34", note="please use the portable `IFF_OACTIVE` instead")]
443+
pub const IFF_DRV_OACTIVE: ::c_int = 0x400; // (d) tx hardware queue is full (deprecated)
440444
pub const IFF_SIMPLEX: ::c_int = 0x800; // (i) can't hear own transmissions
441445
pub const IFF_LINK0: ::c_int = 0x1000; // per link layer defined bit
442446
pub const IFF_LINK1: ::c_int = 0x2000; // per link layer defined bit

0 commit comments

Comments
 (0)