diff options
author | Jonh Wendell <jonh.wendell@vexcorp.com> | 2012-02-09 15:14:33 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-02-09 15:14:33 +0100 |
commit | 9106107a509cfb23806e46765ea2704cdd130654 (patch) | |
tree | dbc6ac28d378479b3b841c763e9b1c4bd49e9ef9 /libbb/procps.c | |
parent | 638dbc34b3dd2a6e340a2370056913ed5770d196 (diff) | |
download | busybox-9106107a509cfb23806e46765ea2704cdd130654.tar.gz |
Make unix (local) sockets work without IPv6 enabled
The xsocket_type() function had an optional "family" argument
that was enabled only if IPv6 is enabled. In the case of the
function was called with a valid AF_UNIX argument, and IPv6 is
disabled, this argument was silently ignored.
This patch makes the "family" argument mandatory, while keeping
the old behavior i.e., if AF_UNSPEC is passed, we try first IPv6
(if it's enabled) and fallback to IPv4.
Also I changed all callers of xsocket_type() to reflect its new
interface.
Signed-off-by: Jonh Wendell <jonh.wendell@vexcorp.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/procps.c')
0 files changed, 0 insertions, 0 deletions