Package: ipsec-tools Version: 1:0.7.3-12 Severity: normal Tags: patch Justification: Policy 9.3.2 User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu natty ubuntu-patch
Hello, In Ubuntu we have applied the following change: - debian/patches/fix-address-already-in-use.patch: Fix address already in use. (LP: #332606) And we think you might be interested in applying it too. Attaching the patch.
Description: Fix 'address already in use'. Origin: Fedora Bug-Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=273261 Bug-Ubuntu: https://launchpad.net/bugs/332606 Applied-Upstream: yes, release 0.8~alpha20101022 --- src/racoon/isakmp.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) --- ipsec-tools-0.7.3.orig/src/racoon/isakmp.c +++ ipsec-tools-0.7.3/src/racoon/isakmp.c @@ -1678,6 +1678,19 @@ isakmp_open() return -1; } #endif + if (setsockopt(p->sock, SOL_SOCKET, +#ifdef __linux__ + SO_REUSEADDR, +#else + SO_REUSEPORT, +#endif + (void *)&yes, sizeof(yes)) < 0) { + plog(LLV_ERROR, LOCATION, NULL, + "failed to set REUSE flag on %s (%s).\n", + saddr2str(p->addr), strerror(errno)); + close(p->sock); + goto err_and_next; + } if (setsockopt(p->sock, SOL_SOCKET, #ifdef __linux__