www.beck-ipc.com

@CHIP-RTOS - TCP/IP Error Codes


    IPC@CHIP® Documentation Index

TCP/IP API Error Codes


Network API error codes returned by API calls (stated here in decimal):

IPsec error codes

  • PPPclient
  • PPPstatus
  • DNSdns
  • PKIerror

  • 201 Operation not permitted
    202 No such file or directory
    203 No such process
    204 Interrupted system call
    205 Input/output error
    206 Device not configured
    209 Bad file descriptor
    210 No child processes
    211 Cannot allocate memory
    213 Permission denied
    214 Bad address
    217 File exists
    219 Operation not supported by device
    220 Not a directory
    221 Is a directory
    222 Invalid argument
    224 No resource available
    235 Operation would block, no data is available to be read.
    236 Operation now in progress
    237 Operation already in progress
    238 Socket operation on non-socket
    239 Destination address required
    240 Message too long
    241 Protocol wrong type for socket
    242 Protocol not available
    243 Protocol not supported
    244 Socket type not supported
    245 Operation not supported
    246 Protocol family not supported
    247 Address family not supported by protocol family
    248 Address already in use
    249 Can't assign requested address
    250 Network is down
    251 Network is unreachable
    252 Network dropped connection on reset
    253 Software caused connection abort
    254 Connection reset by peer
    255 No buffer space available
    256 Socket is already connected
    257 Socket is not connected
    258 Can't send/receive after socket shutdown. There is no more data to be received.
    259 Too many references: can't splice
    260 Operation timed out
    261 Connection refused
    264 Host is down
    265 No route to host

    -1 socket call failed
    0 no error


    PPP client error codes

                
    //  Possible client error codes
    #define PPP_INV_COMPORT  -1 // Invalid serial port or PPP server already uses port.
            // This error code also occurs, if
            // the PPP client is interrupted while dialing
            // (e.g. user break by setting the flag modem_break
            //  in the  pppclient_init structure
            //  or another modem error.
    #define PPP_INUSE        -2  // Client is already active.
    #define PPP_INV_USER     -3  // Invalid user or password
    #define PPP_OPEN_FAIL    -4  // Opening the interface failed.
    #define PPP_INV_DEV      -5  // Interface was not found.
    #define PPP_IPCFG_FAIL   -6  // Got an invalid IP from the peer.
    #define PPP_CONNECT_FAIL -7  // Connection to the peer failed.
    #define PPP_CLOSETIMEOUT -8  // Closing connection timed out.


    Top of list
    Index page

    PPP client status codes

                
    // Possible states of a PPP client connection
    #define PPP_NOTAVAIL    -1    // Client is not running
    #define PPP_LNKDOWN      0    // Link is down
    #define PPP_LNKWILLOPEN  1    // Link opening in progress
    #define PPP_LNKUP        2    // Link is established
    #define PPP_HALTED       3    // Halted by PPP_Client_Pause() call


    Top of list
    Index page

    DNS resolver error codes

                
    #define DNS_ERROR_ILLEGAL_ARGUMENT     -1   // An argument with an invalid value was passed
    #define DNS_ERROR_RESOURCE_LACK        -2   // Lack of a resource such as memory or sockets
    #define DNS_ERROR_SERVERS_UNREACHABLE  -3   // No name server could be reached
    #define DNS_ERROR_NO_RESOLUTION        -4   // No resolution could be found


    Top of list
    Index page

    PKI error codes

                
    // Possible error flags for PKI certificate add function.
    // (Error codes can be bit-wise combinations of these flags.)
    #define PKI_CERT_BADCERT        0x01  // Critical error
    #define PKI_CERT_REVOKED        0x02  // Revoked certiticate
    #define PKI_CERT_EXPIRED        0x04  // Expired certificate
    #define PKI_CERT_UNMATCHED      0x08  // Identity not matched
    #define PKI_CERT_UNKNOWNCA      0x10  // CA is unknown
    #define PKI_CERT_NOTVERIFIED    0x20  // The mentioned CA fails to verify the certificate


    Top of list
    Index page
    TCP/IP API List




    End of document