Age | Commit message (Collapse) | Author | |
---|---|---|---|
2018-04-10 | Refactor the ioctl API and documentation | Bryant Mairs | |
* Split `ioctl!` into separate macros. This makes documentation easier to read. * For every `ioctl_*!` macro include a description of the macro arguments as, the function prototype for the generated wrapper function, and an example if we have one. * Expose `request_code_*!` in the documentation to make the `ioctl_*_bad` macros easier to use. * Reorganize the file hierarchy to be simpler | |||
2018-01-28 | Replace sockaddr_ctl with one from libc | Bryant Mairs | |
Also alter Debug to output all fields. | |||
2018-01-28 | Implement Copy/Clone for all types missing it | Bryant Mairs | |
2018-01-28 | Disallow unnecessary import braces | Bryant Mairs | |
2018-01-08 | Impl LinkAddr(MAC Addr) | luozijun | |
2018-01-08 | impl `Debug` for all sockaddr types | luozijun | |
2017-12-20 | Remove unnecessary impl Clones | Bryant Mairs | |
2017-12-20 | Merge redundant match arms | Bryant Mairs | |
2017-12-05 | Merge #696 | bors[bot] | |
696: Stop reexporting `Errno` variants r=Susurrus a=jonas-schievink Closes #664 (unsure if this is everything needed) | |||
2017-12-04 | Stop reexporting `Errno` and its variants | Jonas Schievink | |
cc #664 (unsure if this is everything needed) | |||
2017-12-03 | Add support for getifaddrs. Closes: #650. | Markus Wanner | |
2017-11-19 | sys/socket: add UnixAddr abstract name getter | Luca Bruno | |
This introduces an `as_abstract()` getter to `UnixAddr` in order to retrieve the name of an abstract unix socket. This also adds tests around abstract addresses and clarify docs, adding explicit semantics. | |||
2017-08-11 | Get rid of a lot of transmutes | Jonas Schievink | |
Most could be replaced by simple raw pointer casts (or even perfectly safe coercions!). cc #373 | |||
2017-08-01 | Document AddressFamily and SockType | Nicolas Dusart | |
2017-08-01 | add socket constants already present in libc | Nicolas Dusart | |
2017-08-01 | remove sys::sockets::consts module as it's libc goal to define them | Nicolas Dusart | |
2016-12-10 | Add support for system control sockets for XNU | Conrad Kramer | |
2016-11-18 | Fix Unix domain sockets. | Alan Somers | |
There were multiple errors regarding Unix domain sockets: * UnixAddr::path assumed that gethostbyname and similar functions would include the terminating null as part of len. That is not universally true. In fact, POSIX only guarantees that len will be at least large enough to store the non-null-terminated path. So it could be larger or smaller than nix was assuming. Since abstract sockets' paths are not strings, we can't modify gethostbyname. Instead, I implemented the fix in UnixAddr::path and UnixAddr::new. I clarified the documentation too. * SockAddr::as_ffi_pair contained a Linuxism. * sockaddr_storage_to_addr forgot to adjust sun_len when creating a UnixAddr | |||
2016-09-17 | Fixed a bug where UnixAddr::new_abstract forgot to count the null-byte. | Mathias Svensson | |
2016-04-14 | fixed a few clippy warnings | Andre Bogus | |
2016-03-30 | socket: Respect IPv6 flowinfo and scope_id in InetAddr::from_std | Kamal Marhubi | |
Fixes #329 | |||
2016-02-23 | Add support for AF_PACKET on linux | Herman J. Radtke III | |
2016-02-04 | Add comment on IPv6 address endianness. | Philipp Matthias Schaefer | |
2016-02-04 | IPv6 addresses are always in big endian order | Frank Denis | |
no matter what the architecture is. | |||
2016-01-28 | Use sockaddr_nl from libc | Kamal Marhubi | |
2016-01-28 | Derive all the things | Alexander Polakov | |
as suggested by @kamalmarhubi | |||
2016-01-28 | Fix style suggestions regarding #cfg | Alexander Polakov | |
as pointed out by @kamalmarhubi | |||
2016-01-28 | Netlink bits | Alexander Polakov | |
2016-01-28 | Move errno::Result back to crate root | arcnmx | |
2016-01-28 | Errno::result() | arcnmx | |
2016-01-18 | update libc to 0.2.2 | Mattis Marjak | |
2015-10-28 | Fix handling of sockaddr_un lengths | Geoffrey Thomas | |
The returned length of AF_UNIX sockaddrs is significant, and generally does not match the length of the entire structure. For filesystem sockets, this is ignorable because the path is also NUL-terminated, but for unbound sockets (e.g., a socketpair) or abstract-namespace sockets (a Linux extension where the address is an arbitrary bytestring), we need to keep track of the length. Fixes #177. Also add a UnixAddr::new_abstract function and some better handling of abstract-namespace socket addresses to fix #169. | |||
2015-05-21 | Fix NixPath yield with CStr instead of OsStr | Carl Lerche | |
As described in #117, the `AsExtStr` trait is defined to return a raw `*const libc::c_char`. Its impl for `OsStr` simply borrowed the byte slice from its `OsStr` argument and cast it to a `*const libc::c_char`, which does not construct a proper null-terminated C string. Given this, the `AsExtStr` is not necessary and is removed. `NixPath` is updated to yield `CStr`. Fixes #117, #120 Thanks to @dead10ck | |||
2015-04-24 | FromPrimitive is no more | Florian Hartwig | |
2015-04-03 | 'derive(Copy)' needs Clone now | Florian Hartwig | |
2015-04-01 | Remove usage of std::num::Int | Carl Lerche | |
2015-04-01 | Fix argument order for copy* functions | Florian Hartwig | |
2015-03-24 | NixResult -> nix::Result; NixError -> nix::Error | Carl Lerche | |
2015-03-19 | Track Rust nightlies | Carl Lerche | |
2015-03-14 | Derive FromPrimitive for AddressFamily. | Jan Bujak | |
2015-03-10 | Track Rust nightlies | Carl Lerche | |
2015-02-27 | Further SockAddr & NixPath cleanup | Carl Lerche | |
2015-02-25 | Large cleanup, mostly of socket functions | Carl Lerche | |
2015-02-23 | in_addr conversions + IP_DROP_MEMBERSHIP support | Carl Lerche | |
2015-02-22 | Remove prefix from SockAddr variants | Carl Lerche | |
2015-02-22 | Split up socket module | Carl Lerche | |