]> git.proxmox.com Git - mirror_frr.git/commit - nhrpd/vici.c
nhrpd: lookup appropriate ipsec path
authorPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 16 Jul 2019 13:21:29 +0000 (15:21 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 9 Apr 2021 16:29:58 +0000 (18:29 +0200)
commit40307370446db46a08096368332aa21bd3f0ab71
tree31f0131eeb691f320e8ed796dae33ec9bd174425
parentf99b9d6eb1c058ba00d33ac7ad032187d5c6efb8
nhrpd: lookup appropriate ipsec path

lookup appropriate ipsec path. there are systems where the path where
the charon.vici file is not in standard paths. For that, 'ipsec
--piddir' may help in solving the path.

result of ipsec --piddir is as follow for example:
'
/etc/ike/ipsec.d/run
'

Note that the assumption is done that even if there are several
instances of strongswan across the vrfs, the charon.vici path file is
the same across vrfs. Consequently, as there is a thread per vrf that
performs vici initialisation, and file path retrieval is part of the
vici initialisation procedure, in order to avoid intempestive system
calls, use a boolean 'vici_charon_filepath_done' to avoid doing
unnecessary calls.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
nhrpd/vici.c