|
|
1.1 root 1: /* psap2error.c - return PSAP error code in string form */
2:
3: #ifndef lint
4: static char *rcsid = "$Header: /f/osi/psap2/RCS/psap2error.c,v 7.0 89/11/23 22:14:16 mrose Rel $";
5: #endif
6:
7: /*
8: * $Header: /f/osi/psap2/RCS/psap2error.c,v 7.0 89/11/23 22:14:16 mrose Rel $
9: *
10: *
11: * $Log: psap2error.c,v $
12: * Revision 7.0 89/11/23 22:14:16 mrose
13: * Release 6.0
14: *
15: */
16:
17: /*
18: * NOTICE
19: *
20: * Acquisition, use, and distribution of this module and related
21: * materials are subject to the restrictions of a license agreement.
22: * Consult the Preface in the User's Manual for the full terms of
23: * this agreement.
24: *
25: */
26:
27:
28: /* LINTLIBRARY */
29:
30: #include <stdio.h>
31: #include "psap2.h"
32:
33: /* */
34:
35: static char *reject_err0[] = {
36: "Rejected by peer",
37: "Reason not specified",
38: "Temporary congestion",
39: "Local limit exceeded",
40: "Called presentation address unknown",
41: "Protocol version not supported",
42: "Default context not supported",
43: "User-data not readable",
44: "No PSAP available",
45: "Unrecognized PPDU",
46: "Unexpected PPDU",
47: "Unexpected session service primitive",
48: "Unrecognized PPDU parameter",
49: "Unexpected PPDU parameter",
50: "Invalid PPDU parameter value",
51: "Abstract syntax not supported",
52: "Proposed transfer syntaxes not supported",
53: "Local limit on DCS exceeded",
54: "Connect request refused on this network connection",
55: "Session disconnect",
56: "Protocol error",
57: "Peer aborted connection",
58: "Invalid parameter",
59: "Invalid operation",
60: "Timer expired",
61: "Indications waiting"
62: };
63:
64: static int reject_err0_cnt = sizeof reject_err0 / sizeof reject_err0[0];
65:
66: /* */
67:
68: char *PErrString (code)
69: register int code;
70: {
71: static char buffer[BUFSIZ];
72:
73: if (code < reject_err0_cnt)
74: return reject_err0[code];
75:
76: (void) sprintf (buffer, "unknown error code %d", code);
77: return buffer;
78: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.