Fix for OpenBSD stack

Christoph Csebits christoph.csebits@frequentis.com
Mon Sep 22 14:36:00 GMT 2003


hallo,

if using the "old" stack the macro IF_IS_EMPTY is not 
defined, but is used in io/eth/current/src/net/eth_drv.c.

This patch should help

regards, Christoph
-- 
-------------- next part --------------
Index: ChangeLog
===================================================================
RCS file: /project/cvsroot/vcs_3020_series/vds6000/software/os/ecos/ecos/packages/net/tcpip/current/ChangeLog,v
retrieving revision 1.1.2.1
diff -u -5 -r1.1.2.1 ChangeLog
--- ChangeLog	2003/06/30 10:12:42	1.1.2.1
+++ ChangeLog	2003/09/22 13:50:31
@@ -1,5 +1,9 @@
+2003-09-22  Reinhard Jessich  <Reinhard.Jessich@frequentis.com>
+
+	* include/net/if.h: Define macro IF_IS_EMPTY.
+
 2003-02-24  Jonathan Larmour  <jifl@eCosCentric.com>
 
 	* cdl/openbsd_net.cdl: Improve doc links.
 
 2003-01-30  Jonathan Larmour  <jifl@eCosCentric.com>
Index: include/net/if.h
===================================================================
RCS file: /project/cvsroot/vcs_3020_series/vds6000/software/os/ecos/ecos/packages/net/tcpip/current/include/net/if.h,v
retrieving revision 1.1.2.1
retrieving revision 1.1.1.1.12.1
diff -u -5 -r1.1.2.1 -r1.1.1.1.12.1
--- include/net/if.h	2003/06/30 10:12:42	1.1.2.1
+++ include/net/if.h	2003/09/18 13:52:12	1.1.1.1.12.1
@@ -252,10 +252,11 @@
 			(ifq)->ifq_tail = 0; \
 		(m)->m_nextpkt = 0; \
 		(ifq)->ifq_len--; \
 	} \
 }
+#define	IF_IS_EMPTY(ifq)	((ifq)->ifq_len == 0)
 
 #define	IFQ_MAXLEN	50
 #define	IFNET_SLOWHZ	1		/* granularity is 1 second */
 
 /*


More information about the Ecos-patches mailing list