darconeous/smcp — pull request #7 by chrysn (2013-11-04 08:02:55+00:00)
Title: set IPV6_V6ONLY on the coap socket

some operating systems (bsd, some debian based systems[1]), sockets have
to explicitly request ipv6-wrapped ipv4 packages (eg. from
::ffff:192.168.0.1). this patch makes smcp request those if the
setsockopt flag to do so is defined, as this is the only way for the
code to deal with ipv4 packages.

see [1] for a discussion on the default values of this option.

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=560238