1: #define CRASH
2: #define MAD HEX /* format for octal/hex dumps */
3: #define DUMP(x) hexout((x)) /* format for octal/hex dumps */
4:
5: /*
6: * Arena (Mbuf) cross-reference table entry
7: */
8: struct arenas {
9: struct arenas *as_next; /* link */
10: unsigned as_addr; /* address in arena*/
11: short as_ref; /* reference counter */
12: short as_size;
13: short as_flags;
14: };
15: #define AS_SOCK 01
16: #define AS_MBUF 02
17: #define AS_ARCK 04
18: #define AS_BDSZ 010
19: #define AS_FREE 020
20: #define AS_INPCB 040
21: #define AS_TCPCB 0100
22: #define AS_RTENT 0200
23: #define AS_RAWCB 0400
24:
25: struct arenas *getars(),
26: *putars();
27:
28: char *arenap; /* stuffed with addr of arena, an auto variable */
29: unsigned int allocs,
30: alloct;
31:
32: #define klseek(fd,base,off) lseek(fd, (off_t)((unsigned)base), off)
33: #define VALADD(a,type) ((unsigned)(a) > allocs && \
34: (unsigned)(a) < alloct-sizeof (type))
35: #define VALMBA(a) VALADD(a,struct mbuf)
36: #define VALMBXA(a) ((unsigned)(a) >= mbstat.m_mbxbase && \
37: (unsigned)(a) <= mbend-(sizeof (struct mbufx)/64))
38: #define XLATE(a,type) (type)(arenap + (unsigned)(a) - allocs)
Defined variables
allocs
defined in line
29; used 10 times
Defined struct's
arenas
defined in line
8; used 40 times
- in line 9(2),
25(2)
- in /usr/src/new/crash/dispnet.c line
47(2),
400(2),
456(2),
609(2),
643(2),
660(2),
708-709(4),
715(2),
722-728(6),
743(4),
763-767(4),
773(2)
- in /usr/src/new/crash/route.c line
52(2)
Defined macros
CRASH
defined in line
1; used 9 times
DUMP
defined in line
3; used 19 times
MAD
defined in line
2; used 15 times
XLATE
defined in line
38; used 11 times
klseek
defined in line
32; used 26 times
- in /usr/src/new/crash/dispnet.c line
326
- in /usr/src/new/crash/if.c line
55,
80-82(2),
101,
196,
212-214(2),
256
- in /usr/src/new/crash/inet.c line
68,
88,
111,
126,
187,
212,
233,
291
- in /usr/src/new/crash/route.c line
75-83(3),
111,
121,
175-177(2),
188,
313
Usage of this include