summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_gre.c
diff options
context:
space:
mode:
authorPhilipp Buehler <pb@cvs.openbsd.org>2004-06-26 21:37:10 +0000
committerPhilipp Buehler <pb@cvs.openbsd.org>2004-06-26 21:37:10 +0000
commitc7a715ba18508ae2ff565560457c65eecbfb889b (patch)
tree01044ac925ef45dd4822b1b1a7e89383832890da /sys/netinet/ip_gre.c
parentebbd98e9e605e9e1fd9f7945626d16c10ea76030 (diff)
use IF_INPUT_ENQUEUE
ok henning@, mcbride@
Diffstat (limited to 'sys/netinet/ip_gre.c')
-rw-r--r--sys/netinet/ip_gre.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/sys/netinet/ip_gre.c b/sys/netinet/ip_gre.c
index 7f4ca578fb1..a97d8c83654 100644
--- a/sys/netinet/ip_gre.c
+++ b/sys/netinet/ip_gre.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_gre.c,v 1.24 2003/12/10 07:22:43 itojun Exp $ */
+/* $OpenBSD: ip_gre.c,v 1.25 2004/06/26 21:37:09 pb Exp $ */
/* $NetBSD: ip_gre.c,v 1.9 1999/10/25 19:18:11 drochner Exp $ */
/*
@@ -224,12 +224,7 @@ gre_input2(m , hlen, proto)
#endif
s = splimp(); /* possible */
- if (IF_QFULL(ifq)) {
- IF_DROP(ifq);
- m_freem(m);
- } else {
- IF_ENQUEUE(ifq, m);
- }
+ IF_INPUT_ENQUEUE(ifq, m);
splx(s);
return (1); /* packet is done, no further processing needed */
@@ -371,12 +366,7 @@ gre_mobile_input(struct mbuf *m, ...)
#endif
s = splimp(); /* possible */
- if (IF_QFULL(ifq)) {
- IF_DROP(ifq);
- m_freem(m);
- } else {
- IF_ENQUEUE(ifq, m);
- }
+ IF_INPUT_ENQUEUE(ifq, m);
splx(s);
}