chiark / gitweb /
socket: Support IPv6-less systems with runtime check.
authorFabiano Fidencio <fidencio@profusion.mobi>
Mon, 20 Sep 2010 19:33:14 +0000 (16:33 -0300)
committerLennart Poettering <lennart@poettering.net>
Mon, 20 Sep 2010 23:00:38 +0000 (01:00 +0200)
This patch introduces socket_ipv6_is_supported() call that checks for
IPv6 availability. Code then check for it before using specific calls.

In order to be less intrusive, this patch avoids IPv6 entries being
parsed at all, this way we don't get such entries in the system and
all other code paths are automatically ignored. However an extra check
is done at socket_address_listen() to make sure of that.

As the number of Netlink messages is not know upfront anymore,
loopback-setup.c was refactored to dynamically calculate the sequence
number and count.

Lennart's suggestions were fixed and squashed with the original patch,
that was sent by Gustavo Sverzut Barbieri (barbieri@profusion.mobi).


No differences found