diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2016-12-20 14:10:54 +0000 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2017-01-10 15:29:04 +0000 |
commit | 882ac6e769c5c8d1742e49028043ba2ce691b045 (patch) | |
tree | 16a5cdccb61998e723fab3b489d7aa1464933d20 /src/test/test-fdset.c | |
parent | 4e0399e69b369f3d3543285592e977063cdcc014 (diff) |
socket-util: introduce port argument in sockaddr_port()
sockaddr_port() either returns a >= 0 port number or a negative errno.
This works for AF_INET and AF_INET6 because port ranges are only 16-bit.
In AF_VSOCK ports are 32-bit so an int cannot represent all port number
and negative errnos. Separate the port and the return code.
Diffstat (limited to 'src/test/test-fdset.c')
0 files changed, 0 insertions, 0 deletions