]> git.ipfire.org Git - thirdparty/strongswan.git/commit
socket-default: Don't set SO_REUSEADDR on IKE sockets anymore
authorTobias Brunner <tobias@strongswan.org>
Tue, 6 Sep 2022 14:11:49 +0000 (16:11 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 21 Sep 2022 11:53:44 +0000 (13:53 +0200)
commit83da1337129221935afdbc16ffd5a6573e974073
tree450079de8d3b9bc600dddf72e6d2359b46271a70
parent0da8cae671afd4b5f0371ae75912abe0171c13b5
socket-default: Don't set SO_REUSEADDR on IKE sockets anymore

This was originally required when pluto and charon both bound sockets to
the same port to send messages.  Pluto also received messages on them but
charon didn't and used a raw socket instead.  Since the removal of pluto
we don't need to set this option anymore, which might actually mask
mistakes like running charon and charon-systemd concurrently (that could
result in messages getting sent fine by both daemons but only received
by one).

Note that a failure to create/bind the sockets will not immediately
result in a shutdown of the daemon.  Instead, there will be an error
once the receiver tries to read any messages and also whenever the sender
attempts to send a request.
src/libcharon/plugins/socket_default/socket_default_socket.c