use new RCSID macro to prevent Id keyword from being optimized out
[freeradius.git] / src / modules / rlm_smb / rfcnb-error.h
1 /* UNIX RFCNB (RFC1001/RFC1002) NetBIOS implementation
2
3    Version 1.0
4    RFCNB Error Response Defines
5
6    Copyright (C) Richard Sharpe 1996
7    Copyright 2006 The FreeRADIUS server project
8
9 */
10
11 /*
12    This program is free software; you can redistribute it and/or modify
13    it under the terms of the GNU General Public License as published by
14    the Free Software Foundation; either version 2 of the License, or
15    (at your option) any later version.
16
17    This program is distributed in the hope that it will be useful,
18    but WITHOUT ANY WARRANTY; without even the implied warranty of
19    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20    GNU General Public License for more details.
21
22    You should have received a copy of the GNU General Public License
23    along with this program; if not, write to the Free Software
24    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
25 */
26
27 #include <freeradius-devel/ident.h>
28 RCSIDH(rfcnb_error_h, "$Id$")
29
30 /* Error responses */
31
32 #define RFCNBE_Bad -1          /* Bad response */
33 #define RFCNBE_OK 0
34
35 /* these should follow the spec ... is there one ?*/
36
37 #define RFCNBE_NoSpace 1       /* Could not allocate space for a struct */
38 #define RFCNBE_BadName 2       /* Could not translate a name            */
39 #define RFCNBE_BadRead 3       /* Read sys call failed                  */
40 #define RFCNBE_BadWrite 4      /* Write Sys call failed                 */
41 #define RFCNBE_ProtErr 5       /* Protocol Error                        */
42 #define RFCNBE_ConGone 6       /* Connection dropped                    */
43 #define RFCNBE_BadHandle 7     /* Handle passed was bad                 */
44 #define RFCNBE_BadSocket 8     /* Problems creating socket              */
45 #define RFCNBE_ConnectFailed 9 /* Connect failed                        */
46 #define RFCNBE_CallRejNLOCN 10 /* Call rejected, not listening on CN    */
47 #define RFCNBE_CallRejNLFCN 11 /* Call rejected, not listening for CN   */
48 #define RFCNBE_CallRejCNNP  12 /* Call rejected, called name not present */
49 #define RFCNBE_CallRejInfRes 13/* Call rejetced, name ok, no resources   */
50 #define RFCNBE_CallRejUnSpec 14/* Call rejected, unspecified error      */
51 #define RFCNBE_BadParam      15/* Bad parameters passed ...             */
52 #define RFCNBE_Timeout       16/* IO Timed out                          */
53
54 /* Text strings for the error responses                                 */
55
56 static const char *RFCNB_Error_Strings[] = {
57
58   "RFCNBE_OK: Routine completed successfully.",
59   "RFCNBE_NoSpace: No space available for a malloc call.",
60   "RFCNBE_BadName: NetBIOS name could not be translated to IP address.",
61   "RFCNBE_BadRead: Read system call returned an error. Check errno.",
62   "RFCNBE_BadWrite: Write system call returned an error. Check errno.",
63   "RFCNBE_ProtErr: A protocol error has occurred.",
64   "RFCNBE_ConGone: Connection dropped during a read or write system call.",
65   "RFCNBE_BadHandle: Bad connection handle passed.",
66   "RFCNBE_BadSocket: Problems creating socket.",
67   "RFCNBE_ConnectFailed: Connection failed. See errno.",
68   "RFCNBE_CallRejNLOCN: Call rejected. Not listening on called name.",
69   "RFCNBE_CallRejNLFCN: Call rejected. Not listening for called name.",
70   "RFCNBE_CallRejCNNP: Call rejected. Called name not present.",
71   "RFCNBE_CallRejInfRes: Call rejected. Name present, but insufficient resources.",
72   "RFCNBE_CallRejUnSpec: Call rejected. Unspecified error.",
73   "RFCNBE_BadParam: Bad parameters passed to a routine.",
74   "RFCNBE_Timeout: IO Operation timed out ..."
75
76 };
77
78
79