"Fossies" - the Fresh Open Source Software Archive

Member "mod_ntlm2-0.1/smbval/rfcnb-error.h" (21 Feb 2003, 2352 Bytes) of package /linux/www/apache_httpd_modules/old/mod_ntlm2-0.1.tgz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 /* mod_ntlm file: $Id: rfcnb-error.h,v 1.3 2003/02/21 01:55:14 casz Exp $ */
    2 
    3 #ifndef RFCNB_ERROR_H
    4 #define RFCNB_ERROR_H
    5 
    6 /* UNIX RFCNB (RFC1001/RFC1002) NetBIOS implementation
    7  * 
    8  * Version 1.0 RFCNB Error Response Defines
    9  * 
   10  * Copyright (C) Richard Sharpe 1996
   11  * 
   12  */
   13 
   14 /* 
   15  * This program is free software; you can redistribute it and/or modify it 
   16  * under the terms of the GNU General Public License as published by the
   17  * Free Software Foundation; either version 2 of the License, or (at your
   18  * option) any later version.  This program is distributed in the hope
   19  * that it will be useful, but WITHOUT ANY WARRANTY; without even the
   20  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
   21  * PURPOSE.  See the GNU General Public License for more details.  You
   22  * should have received a copy of the GNU General Public License along
   23  * with this program; if not, write to the Free Software Foundation, Inc., 
   24  * 675 Mass Ave, Cambridge, MA 02139, USA. */
   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 #endif