From ff8b815d19026830301d17e04e54803d10a11fec Mon Sep 17 00:00:00 2001 From: Esben Norby Date: Wed, 7 May 2008 12:58:55 +0000 Subject: Add MPLS support to loopback. Makes it possible to do evil tricks locally. ok claudio@ --- sys/net/if_loop.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/sys/net/if_loop.c b/sys/net/if_loop.c index 8966b45016c..195f3cefc59 100644 --- a/sys/net/if_loop.c +++ b/sys/net/if_loop.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_loop.c,v 1.43 2007/12/20 02:53:02 brad Exp $ */ +/* $OpenBSD: if_loop.c,v 1.44 2008/05/07 12:58:54 norby Exp $ */ /* $NetBSD: if_loop.c,v 1.15 1996/05/07 02:40:33 thorpej Exp $ */ /* @@ -144,6 +144,10 @@ #include #endif +#ifdef MPLS +#include +#endif + #if NBPFILTER > 0 #include #endif @@ -299,6 +303,12 @@ looutput(ifp, m, dst, rt) isr = NETISR_ATALK; break; #endif /* NETATALK */ +#ifdef MPLS + case AF_MPLS: + ifq = &mplsintrq; + isr = NETISR_MPLS; + break; +#endif /* MPLS */ default: printf("%s: can't handle af%d\n", ifp->if_xname, dst->sa_family); @@ -355,6 +365,12 @@ lo_altqstart(ifp) isr = NETISR_IPV6; break; #endif +#ifdef MPLS + case AF_MPLS: + ifq = &mplsintrq; + isr = NETISR_MPLS; + break; +#endif #ifdef NETATALK case AF_APPLETALK: ifq = &atintrq2; -- cgit v1.2.3