Skip to content

Commit ae6a262

Browse files
committed
Handle inconsistent spelling
1 parent 0f9d41f commit ae6a262

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

src/unix/bsd/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ pub const IPV6_MULTICAST_HOPS: ::c_int = 10;
190190
pub const IPV6_MULTICAST_LOOP: ::c_int = 11;
191191
pub const IPV6_V6ONLY: ::c_int = 27;
192192

193+
pub const IPTOS_ECN_NOTECT: u8 = 0x00;
194+
193195
pub const ST_RDONLY: ::c_ulong = 1;
194196

195197
pub const SCM_RIGHTS: ::c_int = 0x01;

src/unix/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,6 @@ pub const IPPROTO_IP: ::c_int = 0;
297297
pub const IPPROTO_IPV6: ::c_int = 41;
298298

299299
pub const IPTOS_ECN_MASK: u8 = 0x03;
300-
pub const IPTOS_ECN_NOT_ECT: u8 = 0x00;
301300
pub const IPTOS_ECN_ECT1: u8 = 0x01;
302301
pub const IPTOS_ECN_ECT0: u8 = 0x02;
303302
pub const IPTOS_ECN_CE: u8 = 0x03;

src/unix/notbsd/android/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,8 @@ pub const SO_RXQ_OVFL: ::c_int = 40;
666666
pub const SO_PEEK_OFF: ::c_int = 42;
667667
pub const SO_BUSY_POLL: ::c_int = 46;
668668

669+
pub const IPTOS_ECN_NOTECT: u8 = 0x00;
670+
669671
pub const O_ACCMODE: ::c_int = 3;
670672
pub const O_APPEND: ::c_int = 1024;
671673
pub const O_CREAT: ::c_int = 64;

src/unix/notbsd/linux/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1612,6 +1612,8 @@ pub const SIOCSIFMAP: ::c_ulong = 0x00008971;
16121612
pub const IPTOS_TOS_MASK: u8 = 0x1E;
16131613
pub const IPTOS_PREC_MASK: u8 = 0xE0;
16141614

1615+
pub const IPTOS_ECN_NOT_ECT: u8 = 0x00;
1616+
16151617
pub const RTF_UP: ::c_ushort = 0x0001;
16161618
pub const RTF_GATEWAY: ::c_ushort = 0x0002;
16171619

0 commit comments

Comments
 (0)