1 typedef struct Block Block;
15 #define BLEN(s) ((s)->wp - (s)->rp)
17 Block* allocb(int size);
19 Block* copyblock(Block*, int);
21 typedef struct Ehdr Ehdr;
44 /* to be filled in by *init() */
49 uchar multiaddr[32][6];
51 void etheriq(Block*, int wire);
53 int (*epreceive)(Dev*);
54 void (*eptransmit)(Dev*, Block*);
55 int (*eppromiscuous)(Dev*, int);
56 int (*epmulticast)(Dev*, uchar*, int);