Skip to content

Commit 315a6dc

Browse files
committed
Add missing IFA_ constants to linux/musl
1 parent 9b88158 commit 315a6dc

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

libc-test/semver/linux-musl.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ DEAD_PROCESS
99
EMPTY
1010
Elf32_Chdr
1111
Elf64_Chdr
12+
IFA_FLAGS
13+
IFA_F_MANAGETEMPADDR
14+
IFA_F_MCAUTOJOIN
15+
IFA_F_NOPREFIXROUTE
16+
IFA_F_STABLE_PRIVACY
1217
INIT_PROCESS
1318
LIO_NOP
1419
LIO_NOWAIT

src/unix/linux_like/linux/musl/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -895,6 +895,14 @@ cfg_if! {
895895
}
896896
}
897897

898+
// linux/if_addr.h
899+
pub const IFA_FLAGS: c_ushort = 8;
900+
901+
pub const IFA_F_MANAGETEMPADDR: u32 = 0x100;
902+
pub const IFA_F_NOPREFIXROUTE: u32 = 0x200;
903+
pub const IFA_F_MCAUTOJOIN: u32 = 0x400;
904+
pub const IFA_F_STABLE_PRIVACY: u32 = 0x800;
905+
898906
extern "C" {
899907
pub fn sendmmsg(
900908
sockfd: c_int,

0 commit comments

Comments
 (0)