summaryrefslogtreecommitdiff
path: root/daemon/rfcnb/rfcnb-error.h
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2004-04-21 17:37:06 +0000
committerStef Walter <stef@memberwebs.com>2004-04-21 17:37:06 +0000
commitff76efc3e5e1b0e4ca3b10b7402406f619509bba (patch)
treec3b1e49235f67eabd22d31ebfc14934743b70858 /daemon/rfcnb/rfcnb-error.h
parent01430fca169c1b8d7b1b4f1bdd529aa6bc4be80b (diff)
Initial Import
Diffstat (limited to 'daemon/rfcnb/rfcnb-error.h')
-rw-r--r--daemon/rfcnb/rfcnb-error.h75
1 files changed, 75 insertions, 0 deletions
diff --git a/daemon/rfcnb/rfcnb-error.h b/daemon/rfcnb/rfcnb-error.h
new file mode 100644
index 0000000..bb49d68
--- /dev/null
+++ b/daemon/rfcnb/rfcnb-error.h
@@ -0,0 +1,75 @@
+/* UNIX RFCNB (RFC1001/RFC1002) NetBIOS implementation
+
+ Version 1.0
+ RFCNB Error Response Defines
+
+ Copyright (C) Richard Sharpe 1996
+
+*/
+
+/*
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+*/
+
+/* Error responses */
+
+#define RFCNBE_Bad -1 /* Bad response */
+#define RFCNBE_OK 0
+
+/* these should follow the spec ... is there one ?*/
+
+#define RFCNBE_NoSpace 1 /* Could not allocate space for a struct */
+#define RFCNBE_BadName 2 /* Could not translate a name */
+#define RFCNBE_BadRead 3 /* Read sys call failed */
+#define RFCNBE_BadWrite 4 /* Write Sys call failed */
+#define RFCNBE_ProtErr 5 /* Protocol Error */
+#define RFCNBE_ConGone 6 /* Connection dropped */
+#define RFCNBE_BadHandle 7 /* Handle passed was bad */
+#define RFCNBE_BadSocket 8 /* Problems creating socket */
+#define RFCNBE_ConnectFailed 9 /* Connect failed */
+#define RFCNBE_CallRejNLOCN 10 /* Call rejected, not listening on CN */
+#define RFCNBE_CallRejNLFCN 11 /* Call rejected, not listening for CN */
+#define RFCNBE_CallRejCNNP 12 /* Call rejected, called name not present */
+#define RFCNBE_CallRejInfRes 13/* Call rejetced, name ok, no resources */
+#define RFCNBE_CallRejUnSpec 14/* Call rejected, unspecified error */
+#define RFCNBE_BadParam 15/* Bad parameters passed ... */
+#define RFCNBE_Timeout 16/* IO Timed out */
+
+/* Text strings for the error responses */
+
+static char *RFCNB_Error_Strings[] = {
+
+ "RFCNBE_OK: Routine completed successfully.",
+ "RFCNBE_NoSpace: No space available for a malloc call.",
+ "RFCNBE_BadName: NetBIOS name could not be translated to IP address.",
+ "RFCNBE_BadRead: Read system call returned an error. Check errno.",
+ "RFCNBE_BadWrite: Write system call returned an error. Check errno.",
+ "RFCNBE_ProtErr: A protocol error has occurred.",
+ "RFCNBE_ConGone: Connection dropped during a read or write system call.",
+ "RFCNBE_BadHandle: Bad connection handle passed.",
+ "RFCNBE_BadSocket: Problems creating socket.",
+ "RFCNBE_ConnectFailed: Connection failed. See errno.",
+ "RFCNBE_CallRejNLOCN: Call rejected. Not listening on called name.",
+ "RFCNBE_CallRejNLFCN: Call rejected. Not listening for called name.",
+ "RFCNBE_CallRejCNNP: Call rejected. Called name not present.",
+ "RFCNBE_CallRejInfRes: Call rejected. Name present, but insufficient resources.",
+ "RFCNBE_CallRejUnSpec: Call rejected. Unspecified error.",
+ "RFCNBE_BadParam: Bad parameters passed to a routine.",
+ "RFCNBE_Timeout: IO Operation timed out ..."
+
+};
+
+
+