1: /* vmhsbr.h - definitions for the vmh protocol */
2:
3:
4: #define RC_VRSN 1
5:
6: struct record {
7: struct {
8: char rh_type; /* type of record */
9: #define RC_INI 0x01 /* must be greater than OK */
10: #define RC_ACK 0x02
11: #define RC_ERR 0x03
12: #define RC_CMD 0x04
13: #define RC_QRY 0x05
14: #define RC_TTY 0x06
15: #define RC_WIN 0x07
16: #define RC_DATA 0x08
17: #define RC_EOF 0x09
18: #define RC_FIN 0x0a
19: #define RC_XXX 0x0b
20:
21: int rh_len; /* length of data */
22: } rc_header;
23: #define rc_head(rc) (&rc -> rc_header)
24: #define RHSIZE(rc) (sizeof rc -> rc_header)
25: #define rc_type rc_header.rh_type
26: #define rc_len rc_header.rh_len
27:
28: char *rc_data; /* extensible array */
29: };
30: #define initrc(rc) rc -> rc_data = NULL
31:
32:
33: int rcinit (), rcdone (), rc2rc (), str2rc (), peer2rc (), rc2peer (),
34: str2peer (), fmt2peer (), err2peer ();
Defined struct's
defined in line
7;
never used
record
defined in line
6; used 52 times
- in /usr/src/new/mh/uip/msh.c line
1440(2),
1830(2),
2150(2),
2186(2),
2223(2),
2263(2),
2430(2)
- in /usr/src/new/mh/uip/vmh.c line
306-307(4),
346-347(4),
402-406(6),
496-497(4)
- in /usr/src/new/mh/uip/vmhsbr.c line
72(2),
84(2),
92(2),
127-128(4),
217(2)
- in /usr/src/new/mh/uip/vmhtest.c line
99(2),
151(2),
203(2),
247(2)
Defined macros
RC_EOF
defined in line
17; used 13 times
RC_ERR
defined in line
11; used 34 times
- in /usr/src/new/mh/uip/msh.c line
1465,
1842-1846(2),
1874,
2118,
2208,
2248,
2288-2293(2),
2299,
2320,
2337-2342(2),
2450-2455(2),
2461,
2495,
2507-2511(2),
2557
- in /usr/src/new/mh/uip/vmh.c line
363,
522
- in /usr/src/new/mh/uip/vmhtest.c line
111-115(2),
143,
173,
219,
233,
264-269(2),
275,
305,
317-321(2)
RC_INI
defined in line
9; used 1 times
initrc
defined in line
30; used 15 times
- in /usr/src/new/mh/uip/msh.c line
1443,
1833,
2153,
2189,
2233,
2269,
2433
- in /usr/src/new/mh/uip/vmh.c line
310,
349,
408,
499
- in /usr/src/new/mh/uip/vmhtest.c line
102,
154,
206,
250
rc_len
defined in line
26; used 24 times
- in /usr/src/new/mh/uip/vmh.c line
325,
375,
383,
426,
456,
513,
543
- in /usr/src/new/mh/uip/vmhsbr.c line
99-104(6),
112-113(3),
131-137(4),
144-145(3),
230
Usage of this include