Only load kernel plugins in starter when flushing SAD/SPD entries
authorTobias Brunner <tobias@strongswan.org>
Tue, 14 Aug 2012 14:59:22 +0000 (16:59 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 16 Aug 2012 14:14:15 +0000 (16:14 +0200)
commit71b89d672234e84e387f7c65883babe486d74edc
tree25739f9d771afa86fc0f7418eab5fd30d3382f6b
parentaaefeafb4943689c3882b3a434a484cc85c4c10e
Only load kernel plugins in starter when flushing SAD/SPD entries

This avoids keeping the kernel sockets open when they are not actually
needed, which could lead to resource problems (in particular with PF_KEY
where all open sockets receive all messages).

Fixes #217.
src/starter/netkey.c
src/starter/starter.c