[strongSwan-dev] intra-kernel-plugin access.

Tobias Brunner tobias at strongswan.org
Mon Feb 24 14:26:46 CET 2020


Hi Christian,

> It's very tempting to just store a pointer to my private "net" interfaces in a global variable and use that rather than replicating code between the "ipsec" and "net". :)

Depends on the details, but I guess if both parts are in the same plugin
calling a "public" function that operates on a cached instance of the
"net" part should be fine (you can find similar code in the eap-radius
plugin, in particular the accounting component).

Regards,
Tobias


More information about the Dev mailing list