Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/i/ipsec_dump_policy.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/i/ipsec_dump_policy.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/i/ipsec_dump_policy.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/i/ipsec_dump_policy.html on line 8

ipsec_dump_policy()

Generate a readable string from an IPsec policy specification

Synopsis:

#include <netinet6/ipsec.h>

char* ipsec_dump_policy(char *buf, 
                        char *delim);

Arguments:

buf
A pointer to an IPsec policy structure struct sadb_x_policy.
delim
Delimiter string, usually a NULL which indicates a space (“ ”).

Library:

libipsec

Use the -l ipsec option to qcc to link against this library.

Description:

The function ipsec_dump_policy() generates a readable string from an IPSEC policy specification. Please refer to ipsec_set_policy() for details about the policies.

The ipsec_dump_policy() function converts IPsec policy structure into a readable form. Therefore, ipsec_dump_policy() is the inverse of ipsec_set_policy(). If you set delim to NULL, a single whitespace is assumed. The function ipsec_dump_policy() returns a pointer to a dynamically allocated string. It is the caller's responsibility to reclaim the region, by using free().

Returns:

A pointer to dynamically allocated string, or NULL if an error occurs.

Examples:

See ipsec_set_policy().

Classification:

Unix

Safety:
Cancellation point No
Interrupt handler No
Signal handler No
Thread Yes

See also:

IPsec, ipsec_get_policylen(), ipsec_set_policy(), ipsec_strerror()

setkey in the Utilities Reference


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/i/ipsec_dump_policy.html on line 135

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/i/ipsec_dump_policy.html on line 135