1 typedef struct { 2 uchar dst[6]; 3 uchar src[6]; 4 ushort etype; 5 uchar type; 6 uchar conn; 7 uchar seq; 8 uchar len; 9 uchar data[1500]; 10 } Pkt; 11 12 enum { 13 Fkbd, 14 Fcec, 15 Ffatal, 16 }; 17 18 typedef struct Mux Mux; 19 #pragma incomplete Mux; 20 21 enum{ 22 Iowait = 2000, 23 Etype = 0xbcbc, 24 }; 25 int debug; 26 27 Mux *mux(int fd[2]); 28 void muxfree(Mux*); 29 int muxread(Mux*, Pkt*); 30 31 int netget(void *, int); 32 int netopen(char *name); 33 int netsend(void *, int); 34 35 void dump(uchar*, int); 36 void exits0(char*); 37 void rawoff(void); 38 void rawon(void); 39