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 + + * include/net/if.h: Define macro IF_IS_EMPTY. + 2003-02-24 Jonathan Larmour * cdl/openbsd_net.cdl: Improve doc links. 2003-01-30 Jonathan Larmour 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 */ /*