summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/netmpls/mpls_input.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/netmpls/mpls_input.c b/sys/netmpls/mpls_input.c
index 7bf6519e669..c488b5b687d 100644
--- a/sys/netmpls/mpls_input.c
+++ b/sys/netmpls/mpls_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpls_input.c,v 1.11 2008/05/08 03:18:39 claudio Exp $ */
+/* $OpenBSD: mpls_input.c,v 1.12 2008/05/10 01:56:32 claudio Exp $ */
/*
* Copyright (c) 2008 Claudio Jeker <claudio@openbsd.org>
@@ -16,6 +16,8 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include "mpe.h"
+
#include <sys/param.h>
#include <sys/mbuf.h>
#include <sys/systm.h>
@@ -153,10 +155,12 @@ mpls_input(struct mbuf *m)
hasbos = MPLS_BOS_ISSET(shim->shim_label);
m = mpls_shim_pop(m);
if (hasbos) {
+#if NMPE > 0
if (rt->rt_ifp->if_type == IFT_MPLS) {
mpe_input(m, rt->rt_ifp, smpls, ttl);
goto done;
}
+#endif
/* last label but we have no clue so drop */
m_freem(m);
goto done;