socket-default: to bind to one dynamic port on OS X, create v4 socket before v6
authorMartin Willi <martin@revosec.ch>
Thu, 11 Apr 2013 18:22:06 +0000 (20:22 +0200)
committerMartin Willi <martin@revosec.ch>
Mon, 6 May 2013 14:10:11 +0000 (16:10 +0200)
commitdc35d097b3723d10591cce4949b15ba825b05ef8
tree8dff3cc628321ca351dc7b64952a6d6522d8cd0a
parenta30727fe2b0d1d4c83aae7b00351e529ddef536b
socket-default: to bind to one dynamic port on OS X, create v4 socket before v6

It seems that the order of binding sockets of different address families to the
same dynamic port must be v6-before-v4 on Linux, but v4-before-v6 on OS X.
src/libcharon/plugins/socket_default/socket_default_socket.c