.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "IP6IP6_TNL_LOCATE" "" "06 October 2005" "" ""
.SH NAME
ip6ip6_tnl_locate \- find or create tunnel matching given parameters
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int ip6ip6_tnl_locate (struct ip6_tnl_parm * \fIp\fB, struct ip6_tnl ** \fIpt\fB, int \fIcreate\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIp\fB\fR
tunnel parameters
.TP
\fB\fIpt\fB\fR
-- undescribed --
.TP
\fB\fIcreate\fB\fR
!= 0 if allowed to create new tunnel if no match found
.SH "DESCRIPTION"
.PP
\fBip6ip6_tnl_locate\fR first tries to locate an existing tunnel
based on \fIparms\fR\&. If this is unsuccessful, but \fIcreate\fR is set a new
tunnel device is created and registered for use.
.SH "RETURN"
.PP
0 if tunnel located or created,
-EINVAL if parameters incorrect,
-ENODEV if no matching tunnel available