still had this hack in. This needs to be revisted and better understood.
It may be needed to add a mplsrdomain to mpe(4) but MPLS only in the rtable 0
is hardcoded in more places and we should fix them all.
OK mpi@
-/* $OpenBSD: route.c,v 1.367 2017/09/05 10:56:04 mpi Exp $ */
+/* $OpenBSD: route.c,v 1.368 2017/11/29 19:15:48 claudio Exp $ */
/* $NetBSD: route.c,v 1.14 1996/02/13 22:00:46 christos Exp $ */
/*
info.rti_info[RTAX_LABEL] = rtlabel_id2sa(ifp->if_rtlabelid, &sa_rl);
#ifdef MPLS
- if ((flags & RTF_MPLS) == RTF_MPLS)
+ if ((flags & RTF_MPLS) == RTF_MPLS) {
info.rti_mpls = MPLS_OP_POP;
+ /* MPLS routes only exist in rdomain 0 */
+ rtableid = 0;
+ }
#endif /* MPLS */
if ((flags & RTF_HOST) == 0)