summaryrefslogtreecommitdiff
path: root/sys/net/if_mpe.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2010-05-31 11:46:03 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2010-05-31 11:46:03 +0000
commite5955f8851764136f2259115f5db7def90e28ef0 (patch)
treeebd1ab8c89ad3acacaf649adf7cd24a8696fb8f8 /sys/net/if_mpe.c
parent31606dbda80fa9770f6688d61fde311be5485e93 (diff)
Do not use IF_ENQUEUE() but IF_INPUT_ENQUEUE() instead. The first makro
does no overflow checking and does not set the congestion flag. Protocol input queues (inet, inet6, ...) should always use IF_INPUT_ENQUEUE(). OK henning@
Diffstat (limited to 'sys/net/if_mpe.c')
-rw-r--r--sys/net/if_mpe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if_mpe.c b/sys/net/if_mpe.c
index 721c78cfddc..1527222b033 100644
--- a/sys/net/if_mpe.c
+++ b/sys/net/if_mpe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_mpe.c,v 1.19 2010/05/28 12:09:09 claudio Exp $ */
+/* $OpenBSD: if_mpe.c,v 1.20 2010/05/31 11:46:02 claudio Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@spootnik.org>
@@ -393,7 +393,7 @@ mpe_input(struct mbuf *m, struct ifnet *ifp, struct sockaddr_mpls *smpls,
bpf_mtap_af(ifp->if_bpf, AF_INET, m, BPF_DIRECTION_IN);
#endif
s = splnet();
- IF_ENQUEUE(&ipintrq, m);
+ IF_INPUT_ENQUEUE(&ipintrq, m);
schednetisr(NETISR_IP);
splx(s);
}
@@ -427,7 +427,7 @@ mpe_input6(struct mbuf *m, struct ifnet *ifp, struct sockaddr_mpls *smpls,
bpf_mtap_af(ifp->if_bpf, AF_INET6, m, BPF_DIRECTION_IN);
#endif
s = splnet();
- IF_ENQUEUE(&ip6intrq, m);
+ IF_INPUT_ENQUEUE(&ip6intrq, m);
schednetisr(NETISR_IPV6);
splx(s);
}