]> git.ipfire.org Git - thirdparty/squid.git/blob - lib/rfcnb/rfcnb-error.h
SourceFormat Enforcement
[thirdparty/squid.git] / lib / rfcnb / rfcnb-error.h
1 /*
2 * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9 /* UNIX RFCNB (RFC1001/RFC1002) NetBIOS implementation
10 *
11 * Version 1.0
12 * RFCNB Error Response Defines
13 *
14 * Copyright (C) Richard Sharpe 1996
15 */
16
17 /*
18 * This program is free software; you can redistribute it and/or modify
19 * it under the terms of the GNU General Public License as published by
20 * the Free Software Foundation; either version 2 of the License, or
21 * (at your option) any later version.
22 *
23 * This program is distributed in the hope that it will be useful,
24 * but WITHOUT ANY WARRANTY; without even the implied warranty of
25 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26 * GNU General Public License for more details.
27 *
28 * You should have received a copy of the GNU General Public License
29 * along with this program; if not, write to the Free Software
30 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
31 */
32
33 #ifndef _RFCNB_ERROR_H_
34 #define _RFCNB_ERROR_H_
35
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39
40 /* Error responses */
41
42 #define RFCNBE_Bad -1 /* Bad response */
43 #define RFCNBE_OK 0
44
45 /* these should follow the spec ... is there one ? */
46
47 #define RFCNBE_NoSpace 1 /* Could not allocate space for a struct */
48 #define RFCNBE_BadName 2 /* Could not translate a name */
49 #define RFCNBE_BadRead 3 /* Read sys call failed */
50 #define RFCNBE_BadWrite 4 /* Write Sys call failed */
51 #define RFCNBE_ProtErr 5 /* Protocol Error */
52 #define RFCNBE_ConGone 6 /* Connection dropped */
53 #define RFCNBE_BadHandle 7 /* Handle passed was bad */
54 #define RFCNBE_BadSocket 8 /* Problems creating socket */
55 #define RFCNBE_ConnectFailed 9 /* Connect failed */
56 #define RFCNBE_CallRejNLOCN 10 /* Call rejected, not listening on CN */
57 #define RFCNBE_CallRejNLFCN 11 /* Call rejected, not listening for CN */
58 #define RFCNBE_CallRejCNNP 12 /* Call rejected, called name not present */
59 #define RFCNBE_CallRejInfRes 13 /* Call rejetced, name ok, no resources */
60 #define RFCNBE_CallRejUnSpec 14 /* Call rejected, unspecified error */
61 #define RFCNBE_BadParam 15 /* Bad parameters passed ... */
62 #define RFCNBE_Timeout 16 /* IO Timed out */
63
64 /* Text strings for the error responses */
65
66 extern const char *RFCNB_Error_Strings[];
67
68 #ifdef __cplusplus
69 }
70
71 #endif
72 #endif /* _RFCNB_ERROR_H_ */
73