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 a7e1fd0
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 @@ -10,6 +10,11 @@ EMPTY
Elf32_Chdr
Elf64_Chdr
INIT_PROCESS
IFA_FLAGS
IFA_F_MANAGETEMPADDR
IFA_F_MCAUTOJOIN
IFA_F_NOPREFIXROUTE
IFA_F_STABLE_PRIVACY
LIO_NOP
LIO_NOWAIT
LIO_READ
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 a7e1fd0

Please sign in to comment.