Get the length of the IPsec policy
#include <netinet6/ipsec.h> int ipsec_get_policylen(char *buf);
The ipsec_get_policylen() function gets the length of the IPsec policy. See ipsec_set_policy() for details about the policies.
You may want the length of the generated buffer when calling setsockopt(). The ipsec_get_policylen() function returns the length.
The size of the buffer, or a negative value if an error occurs.
See ipsec_set_policy().
| Safety: | |
|---|---|
| Cancellation point | No | 
| Interrupt handler | Yes | 
| Signal handler | Yes | 
| Thread | Yes |