source: trunk/minix/servers/inet/generic/eth.h@ 11

Last change on this file since 11 was 9, checked in by Mattia Monga, 13 years ago

Minix 3.1.2a

File size: 969 bytes
RevLine 
[9]1/*
2eth.h
3
4Copyright 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
18struct acc;
19
20/* prototypes */
21
22void eth_prep ARGS(( void ));
23void eth_init ARGS(( void ));
24int 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 ));
27int eth_ioctl ARGS(( int fd, ioreq_t req));
28int eth_read ARGS(( int port, size_t count ));
29int eth_write ARGS(( int port, size_t count ));
30int eth_cancel ARGS(( int fd, int which_operation ));
31int eth_select ARGS(( int fd, unsigned operations ));
32void eth_close ARGS(( int fd ));
33int 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 */
Note: See TracBrowser for help on using the repository browser.