diff options
author | 2008-10-28 01:16:14 +0000 | |
---|---|---|
committer | 2008-10-28 01:16:14 +0000 | |
commit | bf64af94e691781de678f955a0dd93173c3c979c (patch) | |
tree | 09b203c912208de481ba2ae0f3854b3303ad241e /sys/net/if_mpe.c | |
parent | Try to use ACPI a little bit harder. Skip it only if ncpu < 2 and the (diff) | |
download | wireguard-openbsd-bf64af94e691781de678f955a0dd93173c3c979c.tar.xz wireguard-openbsd-bf64af94e691781de678f955a0dd93173c3c979c.zip |
Added mpls_output() used to output mpls packets originating from local host.
Strictly similar to mpls_input().
Input and OK claudio@, OK laurent@
Diffstat (limited to 'sys/net/if_mpe.c')
-rw-r--r-- | sys/net/if_mpe.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/net/if_mpe.c b/sys/net/if_mpe.c index 518220355d2..20f21292570 100644 --- a/sys/net/if_mpe.c +++ b/sys/net/if_mpe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_mpe.c,v 1.11 2008/10/18 12:30:40 michele Exp $ */ +/* $OpenBSD: if_mpe.c,v 1.12 2008/10/28 01:16:14 michele Exp $ */ /* * Copyright (c) 2008 Pierre-Yves Ritschard <pyr@spootnik.org> @@ -165,7 +165,7 @@ mpestart(struct ifnet *ifp) continue; } m->m_pkthdr.rcvif = ifp; - mpls_input(m); + mpls_output(m); } } @@ -289,9 +289,6 @@ mpe_input(struct mbuf *m, struct ifnet *ifp, struct sockaddr_mpls *smpls, bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_OUT); #endif s = splnet(); - /* - * assume we only get fed ipv4 packets for now. - */ IF_ENQUEUE(&ipintrq, m); schednetisr(NETISR_IP); splx(s); @@ -311,9 +308,6 @@ mpe_input6(struct mbuf *m, struct ifnet *ifp, struct sockaddr_mpls *smpls, bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_OUT); #endif s = splnet(); - /* - * assume we only get fed ipv4 packets for now. - */ IF_ENQUEUE(&ip6intrq, m); schednetisr(NETISR_IPV6); splx(s); |