1 typedef struct Block Block;
13 #define BLEN(s) ((s)->wp - (s)->rp)
15 Block* allocb(int size);
16 Block* copyblock(Block*, int);
17 #define freeb(b) free(b)
21 ETHERHDRSIZE= 14, /* size of an ethernet header */
25 typedef struct Macent Macent;
32 typedef struct Etherpkt Etherpkt;
53 uchar multiaddr[32][Eaddrlen];
55 /* to be filled in by *init() */
56 uchar macaddr[Eaddrlen];
62 int (*epreceive)(Dev*);
63 void (*eptransmit)(Dev*, Block*);
64 int (*eppromiscuous)(Dev*, int);
65 int (*epmulticast)(Dev*, uchar*, int);