Skip to content

Commit dfb119d

Browse files
committed
Fix CI errors by moving non-musl netlink constants to linux/other/mod.rs
1 parent f9441d4 commit dfb119d

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/unix/notbsd/linux/mod.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1836,15 +1836,9 @@ pub const TCA_OPTIONS: ::c_ushort = 2;
18361836
pub const TCA_STATS: ::c_ushort = 3;
18371837
pub const TCA_XSTATS: ::c_ushort = 4;
18381838
pub const TCA_RATE: ::c_ushort = 5;
1839-
1840-
// possibly should go in linux/other/mod.rs
18411839
pub const TCA_FCNT: ::c_ushort = 6;
18421840
pub const TCA_STATS2: ::c_ushort = 7;
18431841
pub const TCA_STAB: ::c_ushort = 8;
1844-
pub const TCA_PAD: ::c_ushort = 9;
1845-
pub const TCA_DUMP_INVISIBLE: ::c_ushort = 10;
1846-
pub const TCA_CHAIN: ::c_ushort = 11;
1847-
pub const TCA_HW_OFFLOAD: ::c_ushort = 12;
18481842

18491843
pub const RTM_F_NOTIFY: ::c_uint = 0x100;
18501844
pub const RTM_F_CLONED: ::c_uint = 0x200;

src/unix/notbsd/linux/other/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,11 @@ pub const LINUX_REBOOT_CMD_SW_SUSPEND: ::c_int = 0xD000FCE2;
604604
pub const LINUX_REBOOT_CMD_KEXEC: ::c_int = 0x45584543;
605605

606606
// linux/rtnetlink.h
607+
pub const TCA_PAD: ::c_ushort = 9;
608+
pub const TCA_DUMP_INVISIBLE: ::c_ushort = 10;
609+
pub const TCA_CHAIN: ::c_ushort = 11;
610+
pub const TCA_HW_OFFLOAD: ::c_ushort = 12;
611+
607612
pub const RTM_F_LOOKUP_TABLE: ::c_uint = 0x1000;
608613
pub const RTM_F_FIB_MATCH: ::c_uint = 0x2000;
609614

0 commit comments

Comments
 (0)