diff options
author | Philipp Buehler <pb@cvs.openbsd.org> | 2004-06-26 21:37:10 +0000 |
---|---|---|
committer | Philipp Buehler <pb@cvs.openbsd.org> | 2004-06-26 21:37:10 +0000 |
commit | c7a715ba18508ae2ff565560457c65eecbfb889b (patch) | |
tree | 01044ac925ef45dd4822b1b1a7e89383832890da /sys/netinet/ip_gre.c | |
parent | ebbd98e9e605e9e1fd9f7945626d16c10ea76030 (diff) |
use IF_INPUT_ENQUEUE
ok henning@, mcbride@
Diffstat (limited to 'sys/netinet/ip_gre.c')
-rw-r--r-- | sys/netinet/ip_gre.c | 16 |
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); } |