Skip to content

Commit 1f76300

Browse files
committed
Correct AddressFamily::System for AF_SYSTEM (and sockaddr_ctl).
1 parent f896024 commit 1f76300

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sys/socket/addr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ impl SockAddr {
720720
Some(AddressFamily::Netlink) => Some(SockAddr::Netlink(
721721
NetlinkAddr(*(addr as *mut libc::sockaddr_nl)))),
722722
#[cfg(any(target_os = "ios", target_os = "macos"))]
723-
Some(AddressFamily::SysControl) => Some(SockAddr::SysControl(
723+
Some(AddressFamily::System) => Some(SockAddr::SysControl(
724724
SysControlAddr(*(addr as *mut sys_control::sockaddr_ctl)))),
725725
// No other address families are supported, including netlink and syscontrol.
726726
Some(_) => None,

0 commit comments

Comments
 (0)