summaryrefslogtreecommitdiffstats
path: root/sys/netatm/ipatm/ipatm_input.c
diff options
context:
space:
mode:
authorarr <arr@FreeBSD.org>2002-04-21 01:41:05 +0000
committerarr <arr@FreeBSD.org>2002-04-21 01:41:05 +0000
commitab6fdd245b7105f237c28d1ef4105422a65b8ec1 (patch)
tree561c7b3bfe7901c0c84e088740e10a21d9fb43ec /sys/netatm/ipatm/ipatm_input.c
parent3881ce8d9cdfa95c64777d7ca9506a825dfdd6a3 (diff)
downloadFreeBSD-src-ab6fdd245b7105f237c28d1ef4105422a65b8ec1.zip
FreeBSD-src-ab6fdd245b7105f237c28d1ef4105422a65b8ec1.tar.gz
- Nuke some more not needed #ifdef cruft.
Diffstat (limited to 'sys/netatm/ipatm/ipatm_input.c')
-rw-r--r--sys/netatm/ipatm/ipatm_input.c49
1 files changed, 0 insertions, 49 deletions
diff --git a/sys/netatm/ipatm/ipatm_input.c b/sys/netatm/ipatm/ipatm_input.c
index 30f6326..8e44bdb 100644
--- a/sys/netatm/ipatm/ipatm_input.c
+++ b/sys/netatm/ipatm/ipatm_input.c
@@ -127,9 +127,6 @@ ipatm_ipinput(inp, m)
struct ip_nif *inp;
KBuffer *m;
{
-#if BSD < 199103
- int space;
-#endif
#ifdef DIAGNOSTIC
if (ipatm_print) {
@@ -137,9 +134,6 @@ ipatm_ipinput(inp, m)
}
#endif
-#if defined(BSD)
-#if BSD >= 199103
-
#ifdef DIAGNOSTIC
if (!KB_ISPKT(m)) {
panic("ipatm_ipinput: no packet header");
@@ -162,43 +156,6 @@ ipatm_ipinput(inp, m)
*/
m->m_pkthdr.rcvif = (struct ifnet *)inp->inf_nif;
-#else /* ! BSD >= 199103 */
- /*
- * Stick ifnet pointer onto front of packet - hopefully
- * there'll be room in the first buffer.
- */
- KB_HEADROOM(m, space);
- if (space < sizeof(struct ifnet *)) {
- KBuffer *n;
-
- /*
- * We have to allocate another buffer and tack it
- * onto the front of the packet
- */
- KB_ALLOCPKT(n, sizeof(struct ifnet *),
- KB_F_NOWAIT, KB_T_HEADER);
- if (n == 0) {
- KB_FREEALL(m);
- ipatm_stat.ias_rcvnobuf++;
- return (1);
- }
- KB_LEN(n) = sizeof(struct ifnet *);
- KB_LINKHEAD(n, m);
- m = n;
- } else {
- /*
- * Header fits, just adjust buffer controls
- */
- KB_HEADADJ(m, sizeof(struct ifnet *));
- }
- {
- struct ifnet **p;
-
- KB_DATASTART(m, p, struct ifnet **);
- *p = (struct ifnet *)inp->inf_nif;
- }
-#endif /* ! BSD >= 199103 */
-
/*
* Finally, hand packet off to IP.
*
@@ -208,13 +165,7 @@ ipatm_ipinput(inp, m)
*/
if (! IF_HANDOFF(&ipintrq, m, NULL))
return (1);
-#if BSD < 199506
- ipintr();
-#else
schednetisr ( NETISR_IP );
-#endif /* BSD >= 199506 */
-#endif /* defined(BSD) */
-
return (0);
}
OpenPOWER on IntegriCloud