]>
Commit | Line | Data |
---|---|---|
462566c5 | 1 | /* |
77b1029d | 2 | * Copyright (C) 1996-2020 The Squid Software Foundation and contributors |
462566c5 AJ |
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 | ||
7c16470c | 9 | /* UNIX RFCNB (RFC1001/RFC1002) NetBIOS implementation |
6ca34f6f HN |
10 | * |
11 | * Version 1.0 | |
12 | * RFCNB Error Response Defines | |
13 | * | |
14 | * Copyright (C) Richard Sharpe 1996 | |
6ca34f6f | 15 | */ |
7c16470c AJ |
16 | |
17 | /* | |
6ca34f6f HN |
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 | */ | |
7c16470c AJ |
32 | |
33 | #ifndef _RFCNB_ERROR_H_ | |
34 | #define _RFCNB_ERROR_H_ | |
35 | ||
36 | #ifdef __cplusplus | |
37 | extern "C" { | |
38 | #endif | |
39 | ||
f53969cc | 40 | /* Error responses */ |
7c16470c | 41 | |
6ca34f6f | 42 | #define RFCNBE_Bad -1 /* Bad response */ |
7c16470c AJ |
43 | #define RFCNBE_OK 0 |
44 | ||
f53969cc | 45 | /* these should follow the spec ... is there one ? */ |
7c16470c | 46 | |
6ca34f6f HN |
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 */ | |
7c16470c | 63 | |
f53969cc | 64 | /* Text strings for the error responses */ |
7c16470c | 65 | |
f53969cc | 66 | extern const char *RFCNB_Error_Strings[]; |
7c16470c AJ |
67 | |
68 | #ifdef __cplusplus | |
69 | } | |
6ca34f6f | 70 | |
7c16470c | 71 | #endif |
6ca34f6f | 72 | #endif /* _RFCNB_ERROR_H_ */ |
f53969cc | 73 |