summaryrefslogtreecommitdiff
path: root/lib/libipsec/ipsec_set_policy.3
diff options
context:
space:
mode:
authorAlexey Zelkin <phantom@FreeBSD.org>2000-05-01 14:40:06 +0000
committerAlexey Zelkin <phantom@FreeBSD.org>2000-05-01 14:40:06 +0000
commit6be6c650067a56c8b7ac891ccbffb6c530cf259e (patch)
tree7d58ff3e645569e76daf46aeee940150854167c8 /lib/libipsec/ipsec_set_policy.3
parentb4bc89bdd18e762f277c047525be473e74a5ac40 (diff)
downloadsrc-test2-6be6c650067a56c8b7ac891ccbffb6c530cf259e.tar.gz
src-test2-6be6c650067a56c8b7ac891ccbffb6c530cf259e.zip
Notes
Diffstat (limited to 'lib/libipsec/ipsec_set_policy.3')
-rw-r--r--lib/libipsec/ipsec_set_policy.321
1 files changed, 7 insertions, 14 deletions
diff --git a/lib/libipsec/ipsec_set_policy.3 b/lib/libipsec/ipsec_set_policy.3
index 52385ccff7de..9870749d8d8d 100644
--- a/lib/libipsec/ipsec_set_policy.3
+++ b/lib/libipsec/ipsec_set_policy.3
@@ -30,14 +30,14 @@
.\"
.Dd May 5, 1998
.Dt IPSEC_SET_POLICY 3
-.Os KAME
-.\"
+.Os
.Sh NAME
.Nm ipsec_set_policy ,
.Nm ipsec_get_policylen ,
.Nm ipsec_dump_policy
.Nd manipulate IPsec policy specification structure from readable string
-.\"
+.Sh LIBRARY
+.Lb libipsec
.Sh SYNOPSIS
.Fd #include <sys/types.h>
.Fd #include <netinet6/ipsec.h>
@@ -47,7 +47,6 @@
.Fn ipsec_get_policylen "char *buf"
.Ft "char *"
.Fn ipsec_dump_policy "char *buf" "char *delim"
-.\"
.Sh DESCRIPTION
.Fn ipsec_set_policy
generates IPsec policy specification structure, namely
@@ -90,7 +89,6 @@ returns pointer to dynamically allocated string.
It is caller's responsibility to reclaim the region, by using
.Xr free 3 .
.Pp
-.\"
.Fa policy
is formatted as either of the following:
.Bl -tag -width "discard"
@@ -108,9 +106,7 @@ means to consult to SPD defined by
.It Ar direction Li bypass
.Li bypass
means to be bypassed the IPsec processing.
-.Po
-packet will be transmitted in clear
-.Pc .
+.Pq packet will be transmitted in clear .
This is for privileged socket.
.It Xo
.Ar direction
@@ -228,7 +224,6 @@ in ipsec esp/transport/10.1.1.2-10.1.1.1/use
in ipsec ipcomp/transport/10.1.1.2-10.1.1.1/use
esp/transport/10.1.1.2-10.1.1.1/use
.Ed
-.\"
.Sh RETURN VALUES
.Fn ipsec_set_policy
returns a pointer to the allocated buffer of policy specification if successful; otherwise a NULL pointer is returned.
@@ -241,14 +236,12 @@ returns a pointer to dynamically allocated region on success,
and
.Dv NULL
on errors.
-.\"
.Sh SEE ALSO
.Xr ipsec_strerror 3 ,
.Xr ipsec 4 ,
.Xr setkey 8
-.\"
.Sh HISTORY
The functions first appeared in WIDE/KAME IPv6 protocol stack kit.
-.\"
-.\" .Sh BUGS
-.\" (to be written)
+IPv6 and IPsec support based on the KAME Project (http://www.kame.net/) stack
+was initialy integrated into
+.Fx 4.0