opendir change: refinement
[minix.git] / servers / inet / generic / eth.h
blob8c0be61da78268b49bbc06358abfcdcc461535ea
1 /*
2 eth.h
4 Copyright 1995 Philip Homburg
5 */
7 #ifndef ETH_H
8 #define ETH_H
10 #define NWEO_DEFAULT (NWEO_EN_LOC | NWEO_DI_BROAD | NWEO_DI_MULTI | \
11 NWEO_DI_PROMISC | NWEO_REMANY | NWEO_RWDATALL)
13 #define eth_addrcmp(a,b) (memcmp((void *)&a, (void *)&b, \
14 sizeof(a)))
16 /* Forward declatations */
18 struct acc;
20 /* prototypes */
22 void eth_prep ARGS(( void ));
23 void eth_init ARGS(( void ));
24 int eth_open ARGS(( int port, int srfd,
25 get_userdata_t get_userdata, put_userdata_t put_userdata,
26 put_pkt_t put_pkt, select_res_t sel_res ));
27 int eth_ioctl ARGS(( int fd, ioreq_t req));
28 int eth_read ARGS(( int port, size_t count ));
29 int eth_write ARGS(( int port, size_t count ));
30 int eth_cancel ARGS(( int fd, int which_operation ));
31 int eth_select ARGS(( int fd, unsigned operations ));
32 void eth_close ARGS(( int fd ));
33 int eth_send ARGS(( int port, struct acc *data, size_t data_len ));
35 #endif /* ETH_H */
38 * $PchId: eth.h,v 1.8 2005/06/28 14:16:10 philip Exp $