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 authored and jabedude committed Oct 15, 2018
1 parent e030707 commit 632a600
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -19,6 +19,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- Added `futimens` and `utimesat` wrappers ([#944](https://github.com/nix-rust/nix/pull/944))
and a `utimes` wrapper ([#946](https://github.com/nix-rust/nix/pull/946)).
- Added a `acct` wrapper module for enabling and disabling process accounting ([#952](https://github.com/nix-rust/nix/pull/952))
- Added `AF_UNSPEC` wrapper to `AddressFamily` ([#948](https://github.com/nix-rust/nix/pull/948))

### Changed
- Increased required Rust version to 1.22.1/
Expand Down
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 632a600

Please sign in to comment.