Skip to content

Commit

Permalink
socket: add AF_UNSPEC to AddressFamily
Browse files Browse the repository at this point in the history
Signed-off-by: Levente Kurusa <lkurusa@acm.org>
  • Loading branch information
levex committed Oct 6, 2018
1 parent 771a2fc commit 4567832
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sys/socket/addr.rs
Expand Up @@ -209,6 +209,9 @@ pub enum AddressFamily {
target_os = "netbsd",
target_os = "openbsd"))]
Natm = libc::AF_NATM,
/// Unspecified address family, (see [`getaddrinfo(3)`](http://man7.org/linux/man-pages/man3/getaddrinfo.3.html))
#[cfg(any(target_os = "android", target_os = "linux"))]
Unspec = libc::AF_UNSPEC,
}

impl AddressFamily {
Expand Down

0 comments on commit 4567832

Please sign in to comment.