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

  • PPP_status
  • PPP_client
  • PPP_status
  • DNS
  • SSL
  • PKI_error

  • 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 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

    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

    SSL specific error codes

                
    20    Certificate signature or hash algorithm not supported
    21    Certificate signature or hash algorithm not supported by peer
    22    Hello handshake extensions parse failed
    23    No hash overlap with peer
    24    Internal error
    25    Secure Renegotiation extension from legacy peer.
    26    Secure Renegotiation extension content mismatch.
    27    Renegotiation extension missing.
    28    RSA PKCS1v15 Prefix failed
    29    Hash lookup failed
    30    No signature algorithm match.
    31    Server Hello message length too short.
    32    Server SSL version not supported.
    33    Server SSL no version overlap.
    34    Server session ID invalid.
    35    No cipher match to peer's list for selected SSL/TLS version.
    36    No cipher match due to no hash agreement overlap.
    37    No cipher match to peer's list.
    38    Compression not supported.
    39    Wrong cipher number at resume.
    
    40    Certificate Request message length too short.
    41    No certificate found.
    42    Only RSA signatures supported on certificates.
    43    Certificate signature or hash algorithm not supported by us.
    44    Certificate signature or hash algorithm not supported by peer.
    45    No hash support available for certificate.
    46    Key Exchange message length too short.
    47    Key Exchange signature method must be RSA.
    48    Key Exchange with prime smaller than public value.
    49    Key Exchange signature - hash pair not supported.
    
    50    Key Exchange prefix length wrong.
    51    Key Exchange cipher not supported for selected SSL version.
    52    Record MAC block size error
    53    Record MAC padding error
    54    Record MAC verify error
    55    Server problem when adding client CA certificate
    56    Server requires an ephemeral RSA key.
    57    Renegotiation info extension missing.
    58    Unexpected handshake message sequence.
    59    Problem with message content.
    
    60    Invalid session ID.
    61    Key Exchange message ASN.1 value invalid.
    62    Finish message length wrong.
    63    Finish message hash verify failed
    64    Cipher change message problem
    65    Client Authorization option required
    66    No signature method agreement with peer
    67    Wrong signature length.
    68    Cached session not found.
    69    Insufficient space or data found in send packet.
    70    Insufficient data found in received packet.
    71    Galois Counter Mode (GCM) decode failed.
    
    
    400   RSA sign failed
    401   RSA verify failed
    402   RSA encryption failed
    403   Certificate length zero
    404   Certificate chain exceeded limit of eight maximum
    405   Certificate validation failed


    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