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