|
|
1.1 root 1: /*
2: * datakit common-control interface definitions
3: */
4:
5:
6:
7: /*
8: * protocol codes generated by driver
9: */
10: #define T_CHG 3 /* status change to/from cmc */
11: #define D_CLOSE 1 /* close a channel */
12: #define D_ISCLOSED 2 /* channel is closed */
13: #define D_CLOSEALL 3 /* close all channels */
14:
15: #define T_LSTNR 4 /* keep-alive message */
16:
17: #define T_REPLY 2 /* reply to channel setup */
18: #define D_OK 1 /* setup OK */
19: #define D_OPEN 2 /* channel now open */
20: #define D_FAIL 3 /* setup failed */
21:
22: #define T_RESTART 8 /* cmc crashed, we should init circuit */
23:
24: struct lmsg {
25: char type ; /* message type T_??? */
26: char srv ; /* message code D_??? */
27: short param0 ; /* various aditional info */
28: short param1 ;
29: short param2 ;
30: short param3 ;
31: short param4 ;
32: } ;
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.