1 /* UNIX RFCNB (RFC1001/RFC1002) NetBIOS implementation
4 RFCNB Error Response Defines
6 Copyright (C) Richard Sharpe 1996
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.
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.
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.
28 #define RFCNBE_Bad -1 /* Bad response */
31 /* these should follow the spec ... is there one ?*/
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 */
50 /* Text strings for the error responses */
52 static const char *RFCNB_Error_Strings[] = {
54 "RFCNBE_OK: Routine completed successfully.",
55 "RFCNBE_NoSpace: No space available for a malloc call.",
56 "RFCNBE_BadName: NetBIOS name could not be translated to IP address.",
57 "RFCNBE_BadRead: Read system call returned an error. Check errno.",
58 "RFCNBE_BadWrite: Write system call returned an error. Check errno.",
59 "RFCNBE_ProtErr: A protocol error has occurred.",
60 "RFCNBE_ConGone: Connection dropped during a read or write system call.",
61 "RFCNBE_BadHandle: Bad connection handle passed.",
62 "RFCNBE_BadSocket: Problems creating socket.",
63 "RFCNBE_ConnectFailed: Connection failed. See errno.",
64 "RFCNBE_CallRejNLOCN: Call rejected. Not listening on called name.",
65 "RFCNBE_CallRejNLFCN: Call rejected. Not listening for called name.",
66 "RFCNBE_CallRejCNNP: Call rejected. Called name not present.",
67 "RFCNBE_CallRejInfRes: Call rejected. Name present, but insufficient resources.",
68 "RFCNBE_CallRejUnSpec: Call rejected. Unspecified error.",
69 "RFCNBE_BadParam: Bad parameters passed to a routine.",
70 "RFCNBE_Timeout: IO Operation timed out ..."