|
|
1.1 root 1: ...
2:
3: if ((sz = is2saddr (argv[1], NULLCP, is)) == NULLSA)
4: error ("address translation failed");
5: (void) bzero ((char *) sf, sizeof *sf);
6:
7: settings = 0;
8: #define dotoken(requires,shift,bit,type) \
9: { \
10: if (requirements & requires) \
11: settings |= ST_INIT_VALUE << shift; \
12: }
13: dotokens ();
14: #undef dotoken
15:
16: if (SConnRequest (sf, NULLSA, sz, requirements, settings, SERIAL_NONE,
17: NULLCP, 0, NULLQOS, sc, si) == NOTOK)
18: error ("S-CONNECT.REQUEST: %s", SErrString (sa -> sa_reason));
19: if (sc -> sc_result != SC_ACCEPT)
20: error ("connection rejected by sink[%s]: %s",
21: SErrString (sa -> sa_reason),
22: SErrString (sc -> sc_result));
23:
24: sd = sc -> sc_sd;
25: requirements = sc -> sc_requirements;
26:
27: #define dotoken(requires,shift,bit,type) \
28: { \
29: if (requirements & requires) \
30: if ((sc -> sc_settings & (ST_MASK << shift)) == ST_INIT_VALUE) \
31: owned |= bit; \
32: }
33: dotokens ();
34: #undef dotoken
35:
36: ...
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.