www.beck-ipc.com

TCP/IP Error Codes - SC12 @CHIP-RTOS V1.10


    IPC@CHIP Documentation Index

TCP/IP API Error Codes


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

  • PPPclient
  • PPPstatus
  • 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
    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 after socket shutdown
    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 port number or PPP server is active at this 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


    Top of list
    Index page
    TCP/IP API Listing




    End of document