Skip to content

Commit 0f712b3

Browse files
committed
NetBSD 8 adds new address family chaning AF_MAX and new ifaddrs flags.
1 parent 16b6c0e commit 0f712b3

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

src/unix/bsd/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ s! {
5757
pub ifa_addr: *mut ::sockaddr,
5858
pub ifa_netmask: *mut ::sockaddr,
5959
pub ifa_dstaddr: *mut ::sockaddr,
60-
pub ifa_data: *mut ::c_void
60+
pub ifa_data: *mut ::c_void,
61+
#[cfg(target_os = "netbsd")]
62+
pub ifa_addrflags: ::c_uint
6163
}
6264

6365
pub struct fd_set {

src/unix/bsd/netbsdlike/netbsd/mod.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -523,15 +523,16 @@ pub const AF_BLUETOOTH: ::c_int = 31;
523523
pub const AF_IEEE80211: ::c_int = 32;
524524
pub const AF_MPLS: ::c_int = 33;
525525
pub const AF_ROUTE: ::c_int = 34;
526-
pub const AF_MAX: ::c_int = 35;
526+
pub const AF_MAX: ::c_int = 36;
527527

528528
pub const NET_MAXID: ::c_int = AF_MAX;
529529
pub const NET_RT_DUMP: ::c_int = 1;
530530
pub const NET_RT_FLAGS: ::c_int = 2;
531-
pub const NET_RT_OOIFLIST: ::c_int = 3;
532-
pub const NET_RT_OIFLIST: ::c_int = 4;
533-
pub const NET_RT_IFLIST: ::c_int = 5;
534-
pub const NET_RT_MAXID: ::c_int = 6;
531+
pub const NET_RT_OOOIFLIST: ::c_int = 3;
532+
pub const NET_RT_OOIFLIST: ::c_int = 4;
533+
pub const NET_RT_OIFLIST: ::c_int = 5;
534+
pub const NET_RT_IFLIST: ::c_int = 6;
535+
pub const NET_RT_MAXID: ::c_int = 7;
535536

536537
pub const PF_OROUTE: ::c_int = AF_OROUTE;
537538
pub const PF_ARP: ::c_int = AF_ARP;

0 commit comments

Comments
 (0)