summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2019-02-13 23:55:57 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2019-02-13 23:55:57 +0000
commit493d832ea3cc4182790b215901a5b52609548b25 (patch)
treed063fc62c21b487241d0d96fe8caf9ef20f02df8 /sys
parent133f07ad2f74d770c57afee0907938318c3a2058 (diff)
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')
-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);
}