Mercurial > ecos
changeset 1232:dcff141b7c9c
* include/net/if.h: Define macro IF_IS_EMPTY needed by eth_drv.c
| author | asl |
|---|---|
| date | Mon, 22 Sep 2003 15:33:36 +0000 |
| parents | 3c221a743075 |
| children | 85cbb6510cfd |
| files | packages/net/tcpip/current/ChangeLog packages/net/tcpip/current/include/net/if.h |
| diffstat | 2 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/net/tcpip/current/ChangeLog +++ b/packages/net/tcpip/current/ChangeLog @@ -1,3 +1,7 @@ +2003-09-22 Reinhard Jessich <Reinhard.Jessich@frequentis.com> + + * include/net/if.h: Define macro IF_IS_EMPTY needed by eth_drv.c + 2003-02-24 Jonathan Larmour <jifl@eCosCentric.com> * cdl/openbsd_net.cdl: Improve doc links.
--- a/packages/net/tcpip/current/include/net/if.h +++ b/packages/net/tcpip/current/include/net/if.h @@ -254,6 +254,7 @@ struct ifnet { /* and the entries */ (ifq)->ifq_len--; \ } \ } +#define IF_IS_EMPTY(ifq) ((ifq)->ifq_len == 0) #define IFQ_MAXLEN 50 #define IFNET_SLOWHZ 1 /* granularity is 1 second */
