Skip to content

Commit 165bbc3

Browse files
author
luozijun
committed
FIX: line longer than 80 chars
1 parent 1c87180 commit 165bbc3

File tree

5 files changed

+29
-23
lines changed

5 files changed

+29
-23
lines changed

src/unix/bsd/apple/mod.rs

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1444,23 +1444,23 @@ pub const SCM_TIMESTAMP: ::c_int = 0x02;
14441444
pub const SCM_CREDS: ::c_int = 0x03;
14451445

14461446
/// https://github.com/aosm/xnu/blob/master/bsd/net/if.h#L140-L156
1447-
pub const IFF_UP: ::c_int = 0x1; // interface is up
1448-
pub const IFF_BROADCAST: ::c_int = 0x2; // broadcast address valid
1449-
pub const IFF_DEBUG: ::c_int = 0x4; // turn on debugging
1450-
pub const IFF_LOOPBACK: ::c_int = 0x8; // is a loopback net
1451-
pub const IFF_POINTOPOINT: ::c_int = 0x10; // interface is point-to-point link
1452-
pub const IFF_NOTRAILERS: ::c_int = 0x20; // obsolete: avoid use of trailers
1453-
pub const IFF_RUNNING: ::c_int = 0x40; // resources allocated
1454-
pub const IFF_NOARP: ::c_int = 0x80; // no address resolution protocol
1455-
pub const IFF_PROMISC: ::c_int = 0x100; // receive all packets
1456-
pub const IFF_ALLMULTI: ::c_int = 0x200; // receive all multicast packets
1457-
pub const IFF_OACTIVE: ::c_int = 0x400; // transmission in progress
1458-
pub const IFF_SIMPLEX: ::c_int = 0x800; // can't hear own transmissions
1459-
pub const IFF_LINK0: ::c_int = 0x1000; // per link layer defined bit
1460-
pub const IFF_LINK1: ::c_int = 0x2000; // per link layer defined bit
1461-
pub const IFF_LINK2: ::c_int = 0x4000; // per link layer defined bit
1462-
pub const IFF_ALTPHYS: ::c_int = IFF_LINK2; // use alternate physical connection
1463-
pub const IFF_MULTICAST: ::c_int = 0x8000; // supports multicast
1447+
pub const IFF_UP: ::c_int = 0x1; // interface is up
1448+
pub const IFF_BROADCAST: ::c_int = 0x2; // broadcast address valid
1449+
pub const IFF_DEBUG: ::c_int = 0x4; // turn on debugging
1450+
pub const IFF_LOOPBACK: ::c_int = 0x8; // is a loopback net
1451+
pub const IFF_POINTOPOINT: ::c_int = 0x10; // interface is point-to-point link
1452+
pub const IFF_NOTRAILERS: ::c_int = 0x20; // obsolete: avoid use of trailers
1453+
pub const IFF_RUNNING: ::c_int = 0x40; // resources allocated
1454+
pub const IFF_NOARP: ::c_int = 0x80; // no address resolution protocol
1455+
pub const IFF_PROMISC: ::c_int = 0x100;// receive all packets
1456+
pub const IFF_ALLMULTI: ::c_int = 0x200;// receive all multicast packets
1457+
pub const IFF_OACTIVE: ::c_int = 0x400;// transmission in progress
1458+
pub const IFF_SIMPLEX: ::c_int = 0x800;// can't hear own transmissions
1459+
pub const IFF_LINK0: ::c_int = 0x1000;// per link layer defined bit
1460+
pub const IFF_LINK1: ::c_int = 0x2000;// per link layer defined bit
1461+
pub const IFF_LINK2: ::c_int = 0x4000;// per link layer defined bit
1462+
pub const IFF_ALTPHYS: ::c_int = IFF_LINK2;// use alternate physical connection
1463+
pub const IFF_MULTICAST: ::c_int = 0x8000;// supports multicast
14641464

14651465
pub const SHUT_RD: ::c_int = 0;
14661466
pub const SHUT_WR: ::c_int = 1;

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,8 @@ pub const IFF_LINK1: ::c_int = 0x2000; // per link layer defined bit
404404
pub const IFF_LINK2: ::c_int = 0x4000; // per link layer defined bit
405405
pub const IFF_ALTPHYS: ::c_int = IFF_LINK2; // use alternate physical connection
406406
pub const IFF_MULTICAST: ::c_int = 0x8000; // supports multicast
407-
pub const IFF_POLLING_COMPAT: ::c_int = 0x10000; // was interface is in polling mode
407+
// was interface is in polling mode
408+
pub const IFF_POLLING_COMPAT: ::c_int = 0x10000;
408409
pub const IFF_PPROMISC: ::c_int = 0x20000; // user-requested promisc mode
409410
pub const IFF_MONITOR: ::c_int = 0x40000; // user-requested monitor mode
410411
pub const IFF_STATICARP: ::c_int = 0x80000; // static ARP

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,8 @@ pub const IFF_LINK1: ::c_int = 0x2000; // per link layer defined bit
443443
pub const IFF_LINK2: ::c_int = 0x4000; // per link layer defined bit
444444
pub const IFF_ALTPHYS: ::c_int = IFF_LINK2; // use alternate physical connection
445445
pub const IFF_MULTICAST: ::c_int = 0x8000; // (i) supports multicast
446-
pub const IFF_CANTCONFIG: ::c_int = 0x10000; // (i) unconfigurable using ioctl(2)
446+
// (i) unconfigurable using ioctl(2)
447+
pub const IFF_CANTCONFIG: ::c_int = 0x10000;
447448
pub const IFF_PPROMISC: ::c_int = 0x20000; // (n) user-requested promisc mode
448449
pub const IFF_MONITOR: ::c_int = 0x40000; // (n) user-requested monitor mode
449450
pub const IFF_STATICARP: ::c_int = 0x80000; // (n) static ARP

src/unix/solaris/mod.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -880,12 +880,14 @@ pub const IFF_PROMISC: ::c_int = 0x0000000100; // Receive all packets
880880
pub const IFF_ALLMULTI: ::c_int = 0x0000000200; // Receive all multicast pkts
881881
pub const IFF_INTELLIGENT: ::c_int = 0x0000000400; // Protocol code on board
882882
pub const IFF_MULTICAST: ::c_int = 0x0000000800; // Supports multicast
883-
pub const IFF_MULTI_BCAST: ::c_int = 0x0000001000; // Multicast using broadcst. add.
883+
// Multicast using broadcst. add.
884+
pub const IFF_MULTI_BCAST: ::c_int = 0x0000001000;
884885
pub const IFF_UNNUMBERED: ::c_int = 0x0000002000; // Non-unique address
885886
pub const IFF_DHCPRUNNING: ::c_int = 0x0000004000; // DHCP controls interface
886887
pub const IFF_PRIVATE: ::c_int = 0x0000008000; // Do not advertise
887888
pub const IFF_NOXMIT: ::c_int = 0x0000010000; // Do not transmit pkts
888-
pub const IFF_NOLOCAL: ::c_int = 0x0000020000; // No address - just on-link subnet
889+
// No address - just on-link subnet
890+
pub const IFF_NOLOCAL: ::c_int = 0x0000020000;
889891
pub const IFF_DEPRECATED: ::c_int = 0x0000040000; // Address is deprecated
890892
pub const IFF_ADDRCONF: ::c_int = 0x0000080000; // Addr. from stateless addrconf
891893
pub const IFF_ROUTER: ::c_int = 0x0000100000; // Router on interface
@@ -899,7 +901,8 @@ pub const IFF_FAILED: ::c_int = 0x0010000000; // Interface has failed
899901
pub const IFF_STANDBY: ::c_int = 0x0020000000; // Interface is a hot-spare
900902
pub const IFF_INACTIVE: ::c_int = 0x0040000000; // Functioning but not used
901903
pub const IFF_OFFLINE: ::c_int = 0x0080000000; // Interface is offline
902-
pub const IFF_COS_ENABLED: ::c_int = 0x0200000000; // If CoS marking is supported
904+
// If CoS marking is supported
905+
pub const IFF_COS_ENABLED: ::c_int = 0x0200000000;
903906
pub const IFF_PREFERRED: ::c_int = 0x0400000000; // Prefer as source address
904907
pub const IFF_TEMPORARY: ::c_int = 0x0800000000; // RFC3041
905908
pub const IFF_FIXEDMTU: ::c_int = 0x1000000000; // MTU set with SIOCSLIFMTU

src/unix/uclibc/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,8 @@ pub const IFF_SLAVE: ::c_int = 0x800; // Slave of a load balancer.
670670
pub const IFF_MULTICAST: ::c_int = 0x1000; // Supports multicast.
671671
pub const IFF_PORTSEL: ::c_int = 0x2000; // Can set media type.
672672
pub const IFF_AUTOMEDIA: ::c_int = 0x4000; // Auto media select active.
673-
pub const IFF_DYNAMIC: ::c_int = 0x8000; // Dialup device with changing addresses.
673+
// Dialup device with changing addresses.
674+
pub const IFF_DYNAMIC: ::c_int = 0x8000;
674675

675676
pub const SOL_IP: ::c_int = 0;
676677
pub const SOL_TCP: ::c_int = 6;

0 commit comments

Comments
 (0)