summaryrefslogtreecommitdiffstats
path: root/sys/net/if_mpe.c
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2019-02-13 23:55:56 +0000
committerdlg <dlg@openbsd.org>2019-02-13 23:55:56 +0000
commitb8ee1e413bb074c69cdb89ad15e7f465598c5293 (patch)
tree3d225db926af38719eb222e6198d728078de1a9c /sys/net/if_mpe.c
parentRemove IMPLEMENTATION NOTES, they only apply to one of the two in-tree (diff)
downloadwireguard-openbsd-b8ee1e413bb074c69cdb89ad15e7f465598c5293.tar.xz
wireguard-openbsd-b8ee1e413bb074c69cdb89ad15e7f465598c5293.zip
don't confuse the interface rdomain with the one the local label is in.
SIOCSIFRDOMAIN is about the routes on top of an mpe interface. the rdomain mpls operates in is independent of that, and currently restricted to rdomain 0.
Diffstat (limited to 'sys/net/if_mpe.c')
-rw-r--r--sys/net/if_mpe.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/sys/net/if_mpe.c b/sys/net/if_mpe.c
index c6a260ad9ed..d2a9d5448ed 100644
--- a/sys/net/if_mpe.c
+++ b/sys/net/if_mpe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_mpe.c,v 1.81 2019/02/13 23:47:42 dlg Exp $ */
+/* $OpenBSD: if_mpe.c,v 1.82 2019/02/13 23:55:56 dlg Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@spootnik.org>
@@ -327,17 +327,6 @@ mpe_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
break;
}
break;
- case SIOCSIFRDOMAIN:
- /* must readd the MPLS "route" for our label */
- /* XXX does not make sense, the MPLS route is on rtable 0 */
- if (ifr->ifr_rdomainid != ifp->if_rdomain) {
- if (sc->sc_smpls.smpls_label) {
- rt_ifa_add(&sc->sc_ifa, RTF_MPLS,
- smplstosa(&sc->sc_smpls), 0);
- }
- }
- /* return with ENOTTY so that the parent handler finishes */
- return (ENOTTY);
default:
return (ENOTTY);
}