1.\" $OpenBSD: mpe.4,v 1.12 2021/05/14 13:10:20 kn Exp $ 2.\" 3.\" Copyright (C) 2008 Pierre-Yves Ritschard <pyr@openbsd.org> 4.\" 5.\" Permission to use, copy, modify, and distribute this software for any 6.\" purpose with or without fee is hereby granted, provided that the above 7.\" copyright notice and this permission notice appear in all copies. 8.\" 9.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16.\" 17.Dd $Mdocdate: May 14 2021 $ 18.Dt MPE 4 19.Os 20.Sh NAME 21.Nm mpe 22.Nd MPLS Provider Edge 23.Sh SYNOPSIS 24.Cd "pseudo-device mpe" 25.Sh DESCRIPTION 26The 27.Nm 28interface is a Multiprotocol Label Switching (MPLS) Provider Edge 29pseudo-device used to enter and leave an MPLS domain. 30.Pp 31An 32.Nm 33interface can be created at runtime using the 34.Ic ifconfig mpe Ns Ar N Ic create 35command or by setting up a 36.Xr hostname.if 5 37configuration file for 38.Xr netstart 8 . 39The interface itself can be configured with 40.Xr ifconfig 8 ; 41see its manual page for more information. 42.Sh IOCTLS 43The following 44.Xr ioctl 2 45calls are specific to 46.Nm , 47.Xr mpip 4 48and 49.Xr mpw 4 50interfaces: 51.Bl -tag -width "SIOCSETLABEL" -offset 3n 52.It SIOCSETLABEL 53Encapsulate packets entering this interface in MPLS using 54the specified label. 55.It SIOCGETLABEL 56Report the label that packets entering this interface will be 57tagged with. 58.It SIOCDELLABEL 59Unset the MPLS label. 60.El 61.\" 62.Sh SEE ALSO 63.Xr sysctl 2 , 64.Xr mpip 4 , 65.Xr mpw 4 , 66.Xr hostname.if 5 , 67.Xr ifconfig 8 , 68.Xr ldpd 8 , 69.Xr netstart 8 70.\" 71.Sh HISTORY 72The 73.Nm 74device first appeared in 75.Ox 4.4 . 76.\" 77.Sh AUTHORS 78The 79.Nm 80driver was written by 81.An Pierre-Yves Ritschard Aq Mt pyr@openbsd.org . 82