gsocket: improve sockopt handling for IPv4-wrapped-IPv6 sockets
authorDan Winship <danw@gnome.org>
Wed, 12 Dec 2012 15:39:02 +0000 (16:39 +0100)
committerDan Winship <danw@gnome.org>
Mon, 17 Dec 2012 14:01:05 +0000 (09:01 -0500)
commitdf334d6e00917d2ba8d8e722f9192da65c09827e
treeaf9aee1ef9dc3d4c9760042fae1d2e3e580f0aa4
parent72d7d23402ff33c1bb92069829749dba0c509328
gsocket: improve sockopt handling for IPv4-wrapped-IPv6 sockets

On IPv6 sockets, set both the IPv4 and IPv6 versions of IP socket
options, in case the socket is (or might become) IPv4-wrapped. (But
ignore errors when setting the IPv4 version.)

Similarly, when joining or leaving a multicast group, pick the sockopt
to use based on the address family of the multicast address rather
than the address family of the socket.

https://bugzilla.gnome.org/show_bug.cgi?id=687092
gio/gsocket.c