.\" 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_IOCTL" "" "06 October 2005" "" ""
.SH NAME
ip6ip6_tnl_ioctl \- configure ipv6 tunnels from userspace
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int ip6ip6_tnl_ioctl (struct net_device * \fIdev\fB, struct ifreq * \fIifr\fB, int \fIcmd\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIdev\fB\fR
virtual device associated with tunnel
.TP
\fB\fIifr\fB\fR
parameters passed from userspace
.TP
\fB\fIcmd\fB\fR
command to be performed
.SH "DESCRIPTION"
.PP
\fBip6ip6_tnl_ioctl\fR is used for managing IPv6 tunnels
from userspace.
.SH "RETURN"
.PP
0 on success,
-EFAULT if unable to copy data to or from userspace,
-EPERM if current process hasn't CAP_NET_ADMIN set
-EINVAL if passed tunnel parameters are invalid,
-EEXIST if changing a tunnel's parameters would cause a conflict
-ENODEV if attempting to change or delete a nonexisting device