diff options
Diffstat (limited to 'sys/i4b/layer2/i4b_mbuf.c')
-rw-r--r-- | sys/i4b/layer2/i4b_mbuf.c | 33 |
1 files changed, 4 insertions, 29 deletions
diff --git a/sys/i4b/layer2/i4b_mbuf.c b/sys/i4b/layer2/i4b_mbuf.c index 665ff67..95f234c 100644 --- a/sys/i4b/layer2/i4b_mbuf.c +++ b/sys/i4b/layer2/i4b_mbuf.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2001 Hellmuth Michaelis. All rights reserved. + * Copyright (c) 1997, 2002 Hellmuth Michaelis. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -29,7 +29,7 @@ * * $FreeBSD$ * - * last edit-date: [Sat Jan 13 13:15:45 2001] + * last edit-date: [Sat Mar 9 17:51:22 2002] * *---------------------------------------------------------------------------*/ @@ -46,18 +46,9 @@ #ifdef I4B_MBUF_TYPE_DEBUG -#ifdef __FreeBSD__ - #define MT_DCHAN 42 #define MT_BCHAN 43 -#else /* NetBSD */ - -#define MT_DCHAN MT_DATA -#define MT_BCHAN MT_DATA - -#endif - #define MT_I4B_D MT_DCHAN #define MT_I4B_B MT_BCHAN @@ -140,16 +131,8 @@ i4b_Dcleanifq(struct ifqueue *ifq) { int x = splimp(); -#if defined (__FreeBSD__) && __FreeBSD__ > 4 IF_DRAIN(ifq); -#else - struct mbuf *m; - while(!IF_QEMPTY(ifq)) - { - IF_DEQUEUE(ifq, m); - i4b_Dfreembuf(m); - } -#endif + splx(x); } @@ -225,16 +208,8 @@ i4b_Bcleanifq(struct ifqueue *ifq) { int x = splimp(); -#if defined (__FreeBSD__) && __FreeBSD__ > 4 IF_DRAIN(ifq); -#else - struct mbuf *m; - while(!IF_QEMPTY(ifq)) - { - IF_DEQUEUE(ifq, m); - i4b_Bfreembuf(m); - } -#endif + splx(x); } |