diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2008-05-10 01:56:33 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2008-05-10 01:56:33 +0000 |
commit | a78fda83c38d040af173e172985fe83d04dc0982 (patch) | |
tree | 27efdbaf9d0d67e2f46da9bc6afedd418b8238de /sys | |
parent | 1a188db0ecb6471d861af6a47492abfcf6eecf79 (diff) |
Make MPLS code compile without pseudo device mpe. OK norby
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netmpls/mpls_input.c | 6 |
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; |