minix/servers/inet/generic/eth.h

40 lines
963 B
C
Raw Normal View History

2005-04-21 16:53:53 +02:00
/*
eth.h
Copyright 1995 Philip Homburg
*/
#ifndef ETH_H
#define ETH_H
#define NWEO_DEFAULT (NWEO_EN_LOC | NWEO_DI_BROAD | NWEO_DI_MULTI | \
NWEO_DI_PROMISC | NWEO_REMANY | NWEO_RWDATALL)
#define eth_addrcmp(a,b) (memcmp((void *)&a, (void *)&b, \
2005-04-21 16:53:53 +02:00
sizeof(a)))
/* Forward declatations */
struct acc;
/* prototypes */
void eth_prep ARGS(( void ));
void eth_init ARGS(( void ));
int eth_open ARGS(( int port, int srfd,
get_userdata_t get_userdata, put_userdata_t put_userdata,
put_pkt_t put_pkt, select_res_t sel_res ));
2005-04-21 16:53:53 +02:00
int eth_ioctl ARGS(( int fd, ioreq_t req));
int eth_read ARGS(( int port, size_t count ));
int eth_write ARGS(( int port, size_t count ));
int eth_cancel ARGS(( int fd, int which_operation ));
int eth_select ARGS(( int fd, unsigned operations ));
2005-04-21 16:53:53 +02:00
void eth_close ARGS(( int fd ));
int eth_send ARGS(( int port, struct acc *data, size_t data_len ));
#endif /* ETH_H */
/*
* $PchId: eth.h,v 1.8 2005/06/28 14:16:10 philip Exp $
2005-04-21 16:53:53 +02:00
*/