mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-05-13 13:09:43 +08:00

setkey uses pfkey_open to open a socket. But setkey doesn't close the socket. The libipsec functions are used only by user space applications (setkey and racoon). Adding the wrapper for socket makes sure that the opened socket is registered and closes if the application exits. Fixes #4404
IPsec-tools =========== This package provides a way to use the native IPsec functionality in the Linux 2.6+ kernel. It works as well on NetBSD and FreeBSD. - libipsec, a PF_KEYv2 library - setkey, a tool to directly manipulate policies and SAs - racoon, an IKEv1 keying daemon IPsec-tools were ported to Linux from the KAME project (http://www.kame.net) by Derek Atkins <derek@ihtfp.com>. Currently the package is actively maintained and developed by: Emmanuel Dreyfus <manu@netbsd.org> VANHULLEBUS Yvan <vanhu@free.fr> Matthew Grooms <mgrooms@shrew.net> Timo Teräs <timo.teras@iki.fi> Sources can be found at the IPsec-Tools home page at: http://ipsec-tools.sourceforge.net/ And CVS repository is hosted at NetBSD tree: cvs -danoncvs@anoncvs.netbsd.org:/cvsroot co ipsec-tools Bug reports and project wiki is located at: https://trac.ipsec-tools.net/ Please report any problems to the mailing list: ipsec-tools-devel@lists.sourceforge.net ipsec-tools-users@lists.sourceforge.net You can also browse the list archive: http://sf.net/mailarchive/forum.php?forum_name=ipsec-tools-devel Credits: IHTFP Consulting, see http://www.ihtfp.com/ SUSE Linux AG, see http://www.suse.com/