diff options
author | 2008-05-10 01:56:32 +0000 | |
---|---|---|
committer | 2008-05-10 01:56:32 +0000 | |
commit | 9fc4e188f89f7560b99049acf2998f41e9246633 (patch) | |
tree | da8f129914586effc66a7615c66f8795131fb846 | |
parent | convert sdltosa to a real cast because I removed the silly makro last night. (diff) | |
download | wireguard-openbsd-9fc4e188f89f7560b99049acf2998f41e9246633.tar.xz wireguard-openbsd-9fc4e188f89f7560b99049acf2998f41e9246633.zip |
Make MPLS code compile without pseudo device mpe. OK norby
-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; |