Skip to content

Commit

Permalink
Add missing IFA_ constants to linux/musl
Browse files Browse the repository at this point in the history
  • Loading branch information
jtt committed Dec 8, 2024
1 parent 9b88158 commit 315a6dc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libc-test/semver/linux-musl.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ DEAD_PROCESS
EMPTY
Elf32_Chdr
Elf64_Chdr
IFA_FLAGS
IFA_F_MANAGETEMPADDR
IFA_F_MCAUTOJOIN
IFA_F_NOPREFIXROUTE
IFA_F_STABLE_PRIVACY
INIT_PROCESS
LIO_NOP
LIO_NOWAIT
Expand Down
8 changes: 8 additions & 0 deletions src/unix/linux_like/linux/musl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -895,6 +895,14 @@ cfg_if! {
}
}

// linux/if_addr.h
pub const IFA_FLAGS: c_ushort = 8;

pub const IFA_F_MANAGETEMPADDR: u32 = 0x100;
pub const IFA_F_NOPREFIXROUTE: u32 = 0x200;
pub const IFA_F_MCAUTOJOIN: u32 = 0x400;
pub const IFA_F_STABLE_PRIVACY: u32 = 0x800;

extern "C" {
pub fn sendmmsg(
sockfd: c_int,
Expand Down

0 comments on commit 315a6dc

Please sign in to comment.