summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/net/if_mpip.c10
-rw-r--r--sys/net/if_mpw.c4
2 files changed, 7 insertions, 7 deletions
diff --git a/sys/net/if_mpip.c b/sys/net/if_mpip.c
index cc2a46dae29..0929a5ed33b 100644
--- a/sys/net/if_mpip.c
+++ b/sys/net/if_mpip.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_mpip.c,v 1.13 2021/02/20 05:03:37 dlg Exp $ */
+/* $OpenBSD: if_mpip.c,v 1.14 2021/03/17 14:30:09 kn Exp $ */
/*
* Copyright (c) 2015 Rafael Zalamena <rzalamena@openbsd.org>
@@ -145,7 +145,7 @@ mpip_clone_destroy(struct ifnet *ifp)
if (sc->sc_smpls.smpls_label) {
rt_ifa_del(&sc->sc_ifa, RTF_LOCAL | RTF_MPLS,
- smplstosa(&sc->sc_smpls), 0);
+ smplstosa(&sc->sc_smpls), sc->sc_rdomain);
}
NET_UNLOCK();
@@ -165,13 +165,13 @@ mpip_set_route(struct mpip_softc *sc, uint32_t shim, unsigned int rdomain)
int error;
rt_ifa_del(&sc->sc_ifa, RTF_MPLS | RTF_LOCAL,
- smplstosa(&sc->sc_smpls), 0);
+ smplstosa(&sc->sc_smpls), sc->sc_rdomain);
sc->sc_smpls.smpls_label = shim;
sc->sc_rdomain = rdomain;
error = rt_ifa_add(&sc->sc_ifa, RTF_MPLS | RTF_LOCAL,
- smplstosa(&sc->sc_smpls), 0);
+ smplstosa(&sc->sc_smpls), sc->sc_rdomain);
if (error) {
sc->sc_smpls.smpls_label = MPLS_LABEL2SHIM(0);
return (error);
@@ -221,7 +221,7 @@ mpip_del_label(struct mpip_softc *sc)
{
if (sc->sc_smpls.smpls_label != MPLS_LABEL2SHIM(0)) {
rt_ifa_del(&sc->sc_ifa, RTF_MPLS | RTF_LOCAL,
- smplstosa(&sc->sc_smpls), 0);
+ smplstosa(&sc->sc_smpls), sc->sc_rdomain);
}
sc->sc_smpls.smpls_label = MPLS_LABEL2SHIM(0);
diff --git a/sys/net/if_mpw.c b/sys/net/if_mpw.c
index 43ad0e0f8f9..6932c6c2a93 100644
--- a/sys/net/if_mpw.c
+++ b/sys/net/if_mpw.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_mpw.c,v 1.59 2020/08/21 22:59:27 kn Exp $ */
+/* $OpenBSD: if_mpw.c,v 1.60 2021/03/17 14:30:08 kn Exp $ */
/*
* Copyright (c) 2015 Rafael Zalamena <rzalamena@openbsd.org>
@@ -323,7 +323,7 @@ mpw_del_label(struct mpw_softc *sc)
if (sc->sc_smpls.smpls_label != MPLS_LABEL2SHIM(0)) {
rt_ifa_del(&sc->sc_ifa, RTF_MPLS | RTF_LOCAL,
- smplstosa(&sc->sc_smpls), 0);
+ smplstosa(&sc->sc_smpls), sc->sc_rdomain);
}
sc->sc_smpls.smpls_label = MPLS_LABEL2SHIM(0);