[9] | 1 | /*
|
---|
| 2 | eth.h
|
---|
| 3 |
|
---|
| 4 | Copyright 1995 Philip Homburg
|
---|
| 5 | */
|
---|
| 6 |
|
---|
| 7 | #ifndef ETH_H
|
---|
| 8 | #define ETH_H
|
---|
| 9 |
|
---|
| 10 | #define NWEO_DEFAULT (NWEO_EN_LOC | NWEO_DI_BROAD | NWEO_DI_MULTI | \
|
---|
| 11 | NWEO_DI_PROMISC | NWEO_REMANY | NWEO_RWDATALL)
|
---|
| 12 |
|
---|
| 13 | #define eth_addrcmp(a,b) (memcmp((_VOIDSTAR)&a, (_VOIDSTAR)&b, \
|
---|
| 14 | sizeof(a)))
|
---|
| 15 |
|
---|
| 16 | /* Forward declatations */
|
---|
| 17 |
|
---|
| 18 | struct acc;
|
---|
| 19 |
|
---|
| 20 | /* prototypes */
|
---|
| 21 |
|
---|
| 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 ));
|
---|
| 34 |
|
---|
| 35 | #endif /* ETH_H */
|
---|
| 36 |
|
---|
| 37 | /*
|
---|
| 38 | * $PchId: eth.h,v 1.8 2005/06/28 14:16:10 philip Exp $
|
---|
| 39 | */
|
---|