Please wait until the page is fully downloaded and then press the "Expand" button or the blue line numbers.

0013001 /*
0013002 inet/osdep_eth.h
0013003 
0013004 Created:       Dec 30, 1991 by Philip Homburg
0013005 
0013006 Copyright 1995 Philip Homburg
0013007 */
0013008 
0013009 #ifndef INET__OSDEP_ETH_H
0013010 #define INET__OSDEP_ETH_H
0013011 
0013012 #include "generic/event.h"
0013013 
0013014 #define IOVEC_NR       16
0013015 #define RD_IOVEC       ((ETH_MAX_PACK_SIZE + BUF_S -1)/BUF_S)
0013016 
0013017 typedef struct osdep_eth_port
0013018 {
0013019          int etp_task;
0013020          int etp_port;
0013021          int etp_recvconf;
0013022          iovec_t etp_wr_iovec[IOVEC_NR];
0013023          iovec_t etp_rd_iovec[RD_IOVEC];
0013024          event_t etp_recvev;
0013025          message etp_sendrepl;
0013026          message etp_recvrepl;
etp_sendrepl and etp_recvrepl are set in setup_read(). setup_read() tries to read from a port and if the port is sending or receiving packets, it will put the block message that it received from the task into this queue.


0013027 } osdep_eth_port_t;
0013028 
0013029 #endif /* INET__OSDEP_ETH_H */
0013030 
0013031 /*
0013032  * $PchId: osdep_eth.h,v 1.5 1995/11/21 06:41:28 philip Exp $
0013033  */