⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 net_err.h

📁 从Luminary官方网站下载的LM3S6000系列的UCos+Tcp/IP的源码, 经本人稍微修改后可直接在IAR6.2下编译通过,里面包括了LM3S6000系列的所有外设UART, PWn....
💻 H
📖 第 1 页 / 共 4 页
字号:
#define  NET_IP_ERR_TX_DEST_DFLT_GATEWAY               20506    /* Tx to local net dflt gateway.                        */


/*
*********************************************************************************************************
*                                       ICMP LAYER ERROR CODES
*********************************************************************************************************
*/

#define  NET_ICMP_ERR_NONE                             21000
#define  NET_ICMP_ERR_NONE_AVAIL                       21001    /* NO ICMP data type avail.                             */


#define  NET_ICMP_ERR_INVALID_TYPE                     21100    /* Invalid ICMP msg  type / ICMP data type.             */
#define  NET_ICMP_ERR_INVALID_CODE                     21101    /* Invalid ICMP msg  code.                              */
#define  NET_ICMP_ERR_INVALID_PTR                      21102    /* Invalid ICMP msg  ptr.                               */
#define  NET_ICMP_ERR_INVALID_LEN                      21103    /* Invalid ICMP msg  len.                               */
#define  NET_ICMP_ERR_INVALID_LEN_DATA                 21104    /* Invalid ICMP data len.                               */
#define  NET_ICMP_ERR_INVALID_CHK_SUM                  21105    /* Invalid ICMP chk  sum.                               */

#define  NET_ICMP_ERR_MSG_TYPE_ERR                     21150    /* ICMP err   msg type.                                 */
#define  NET_ICMP_ERR_MSG_TYPE_REQ                     21151    /* ICMP req   msg type.                                 */
#define  NET_ICMP_ERR_MSG_TYPE_REPLY                   21152    /* ICMP reply msg type.                                 */


#define  NET_ICMP_ERR_RX_BROADCAST                     21400    /* ICMP rx invalid broadcast.                           */


#define  NET_ICMP_ERR_TX_INVALID_BROADCAST             21500    /* ICMP tx invalid broadcast.                           */
#define  NET_ICMP_ERR_TX_INVALID_FRAG                  21501    /* ICMP tx invalid frag.                                */
#define  NET_ICMP_ERR_TX_INVALID_ADDR_SRC              21502    /* ICMP tx invalid addr src.                            */
#define  NET_ICMP_ERR_TX_INVALID_ERR_MSG               21503    /* ICMP tx invalid err msg.                             */


/*$PAGE*/
/*
*********************************************************************************************************
*                                        UDP LAYER ERROR CODES
*********************************************************************************************************
*/

#define  NET_UDP_ERR_NONE                              30000
#define  NET_UDP_ERR_NULL_PTR                          30020    /* Ptr arg(s) passed NULL ptr(s).                       */

#define  NET_UDP_ERR_INVALID_DATA_SIZE                 30040    /* Invalid UDP data size.                               */

#define  NET_UDP_ERR_INVALID_LEN                       30100    /* Invalid UDP datagram len.                            */
#define  NET_UDP_ERR_INVALID_LEN_DATA                  30101    /* Invalid UDP data     len.                            */
#define  NET_UDP_ERR_INVALID_PORT_NBR                  30102    /* Invalid UDP port nbr.                                */
#define  NET_UDP_ERR_INVALID_CHK_SUM                   30103    /* Invalid UDP chk  sum.                                */
#define  NET_UDP_ERR_INVALID_FLAG                      30104    /* Invalid UDP flags.                                   */


/*
*********************************************************************************************************
*                                        TCP LAYER ERROR CODES
*********************************************************************************************************
*/

#define  NET_TCP_ERR_NONE                              31000
#define  NET_TCP_ERR_NONE_AVAIL                        31010    /* NO TCP conns avail.                                  */
#define  NET_TCP_ERR_NULL_PTR                          31020    /* Ptr arg(s) passed NULL ptr(s).                       */

#define  NET_TCP_ERR_INVALID_DATA_SIZE                 31040    /* Invalid TCP data size.                               */


#define  NET_TCP_ERR_INVALID_LEN_HDR                   31100    /* Invalid TCP hdr  len.                                */
#define  NET_TCP_ERR_INVALID_LEN_SEG                   31101    /* Invalid TCP seg  len.                                */
#define  NET_TCP_ERR_INVALID_LEN_DATA                  31102    /* Invalid TCP data len.                                */
#define  NET_TCP_ERR_INVALID_PORT_NBR                  31103    /* Invalid TCP port nbr.                                */
#define  NET_TCP_ERR_INVALID_FLAG                      31104    /* Invalid TCP flags.                                   */
#define  NET_TCP_ERR_INVALID_CHK_SUM                   31105    /* Invalid TCP chk sum.                                 */
#define  NET_TCP_ERR_INVALID_OPT                       31110    /* Invalid TCP opt.                                     */
#define  NET_TCP_ERR_INVALID_OPT_TYPE                  31111    /* Invalid TCP opt type.                                */
#define  NET_TCP_ERR_INVALID_OPT_NBR                   31112    /* Invalid TCP opt nbr same opt.                        */
#define  NET_TCP_ERR_INVALID_OPT_LEN                   31113    /* Invalid TCP opt len.                                 */
#define  NET_TCP_ERR_INVALID_OPT_CFG                   31114    /* Invalid TCP opt cfg.                                 */
#define  NET_TCP_ERR_INVALID_OPT_END                   31115    /* Invalid TCP opt list ending.                         */

/*$PAGE*/
#define  NET_TCP_ERR_INVALID_CONN_TYPE                 31200    /* Invalid   TCP conn type.                             */
#define  NET_TCP_ERR_INVALID_CONN                      31201    /* Invalid   TCP conn/id.                               */
#define  NET_TCP_ERR_INVALID_CONN_ID                   31202    /* Invalid   TCP conn's conn id.                        */
#define  NET_TCP_ERR_INVALID_CONN_OP                   31203    /* Invalid   TCP conn op.                               */
#define  NET_TCP_ERR_INVALID_CONN_STATE                31204    /* Invalid   TCP conn state.                            */

#define  NET_TCP_ERR_CONN_NONE                         31210    /* NO        TCP conn.                                  */
#define  NET_TCP_ERR_CONN_NOT_USED                     31211    /*           TCP conn NOT used.                         */
#define  NET_TCP_ERR_CONN_CLOSED                       31220    /*           TCP conn successfully closed.              */
#define  NET_TCP_ERR_CONN_CLOSE                        31221    /*           TCP conn abort        closed.              */
#define  NET_TCP_ERR_CONN_FAULT                        31222    /*           TCP conn fault        closed.              */
#define  NET_TCP_ERR_CONN_FAIL                         31225    /*           TCP conn op failed.                        */
#define  NET_TCP_ERR_CONN_LISTEN_Q_MAX                 31230    /*           TCP conn listen Q max limit.               */

#define  NET_TCP_ERR_CONN_SEQ_NONE                     31250    /* NO        TCP conn seq.                              */
#define  NET_TCP_ERR_CONN_SEQ_SYNC                     31251    /*   Valid   TCP conn sync.                             */
#define  NET_TCP_ERR_CONN_SEQ_SYNC_INVALID             31252    /* Invalid   TCP conn sync.                             */
#define  NET_TCP_ERR_CONN_SEQ_VALID                    31253    /*   Valid   TCP conn seq.                              */
#define  NET_TCP_ERR_CONN_SEQ_INVALID                  31254    /* Invalid   TCP conn seq.                              */
#define  NET_TCP_ERR_CONN_SEQ_FIN_VALID                31255    /*   Valid   TCP conn fin.                              */
#define  NET_TCP_ERR_CONN_SEQ_FIN_INVALID              31256    /* Invalid   TCP conn fin.                              */

#define  NET_TCP_ERR_CONN_ACK_NONE                     31260    /* NO        TCP conn ack.                              */
#define  NET_TCP_ERR_CONN_ACK_VALID                    31261    /*   Valid   TCP conn ack.                              */
#define  NET_TCP_ERR_CONN_ACK_INVALID                  31262    /* Invalid   TCP conn ack.                              */
#define  NET_TCP_ERR_CONN_ACK_DUP                      31263    /* Duplicate TCP conn ack.                              */
#define  NET_TCP_ERR_CONN_ACK_DLYD                     31265    /* Dly'd     TCP conn ack.                              */
#define  NET_TCP_ERR_CONN_ACK_PREVLY_TXD               31266    /*           TCP conn ack prev'ly tx'd.                 */

#define  NET_TCP_ERR_CONN_RESET_NONE                   31270    /* NO        TCP conn reset.                            */
#define  NET_TCP_ERR_CONN_RESET_VALID                  31271    /*   Valid   TCP conn reset.                            */
#define  NET_TCP_ERR_CONN_RESET_INVALID                31272    /* Invalid   TCP conn reset.                            */

#define  NET_TCP_ERR_CONN_PROBE_INVALID                31282    /* Invalid   TCP conn probe.                            */

#define  NET_TCP_ERR_CONN_DATA_NONE                    31290    /* NO        TCP conn data.                             */
#define  NET_TCP_ERR_CONN_DATA_VALID                   31291    /*   Valid   TCP conn data.                             */
#define  NET_TCP_ERR_CONN_DATA_INVALID                 31292    /* Invalid   TCP conn data.                             */
#define  NET_TCP_ERR_CONN_DATA_DUP                     31293    /* Duplicate TCP conn data.                             */


#define  NET_TCP_ERR_RX                                31400    /*    Rx err.                                           */
#define  NET_TCP_ERR_RX_Q_CLOSED                       31410    /*    Rx Q closed; i.e.   do NOT rx   pkt(s) to Q.      */
#define  NET_TCP_ERR_RX_Q_EMPTY                        31411    /*    Rx Q empty;  i.e.      NO  rx'd pkt(s) in Q.      */
#define  NET_TCP_ERR_RX_Q_FULL                         31412    /*    Rx Q full;   i.e. too many rx'd pkt(s) in Q.      */
#define  NET_TCP_ERR_RX_Q_ABORT                        31415    /*    Rx Q abort      failed.                           */
#define  NET_TCP_ERR_RX_Q_SIGNAL                       31420    /*    Rx Q signal     failed.                           */
#define  NET_TCP_ERR_RX_Q_SIGNAL_CLR                   31421    /*    Rx Q signal clr failed.                           */
#define  NET_TCP_ERR_RX_Q_SIGNAL_TIMEOUT               31422    /*    Rx Q signal timeout.                              */
#define  NET_TCP_ERR_RX_Q_SIGNAL_ABORT                 31423    /*    Rx Q signal aborted.                              */
#define  NET_TCP_ERR_RX_Q_SIGNAL_FAULT                 31424    /*    Rx Q signal fault.                                */

#define  NET_TCP_ERR_TX                                31500    /*    Tx err.                                           */
#define  NET_TCP_ERR_TX_Q_CLOSED                       31510    /*    Tx Q closed; i.e.   do NOT Q tx   pkt(s) to Q.    */
#define  NET_TCP_ERR_TX_Q_EMPTY                        31511    /*    Tx Q empty;  i.e.      NO    tx   pkt(s) in Q.    */
#define  NET_TCP_ERR_TX_Q_FULL                         31512    /*    Tx Q full;   i.e. too many   tx'd pkt(s) in Q.    */
#define  NET_TCP_ERR_TX_Q_ABORT                        31515    /*    Tx Q abort      failed.                           */
#define  NET_TCP_ERR_TX_Q_SUSPEND                      31516    /*    Tx Q suspended.                                   */
#define  NET_TCP_ERR_TX_Q_SIGNAL                       31520    /*    Tx Q signal     failed.                           */
#define  NET_TCP_ERR_TX_Q_SIGNAL_CLR                   31521    /*    Tx Q signal clr failed.                           */
#define  NET_TCP_ERR_TX_Q_SIGNAL_TIMEOUT               31522    /*    Tx Q signal timeout.                              */
#define  NET_TCP_ERR_TX_Q_SIGNAL_ABORT                 31523    /*    Tx Q signal aborted.                              */
#define  NET_TCP_ERR_TX_Q_SIGNAL_FAULT                 31524    /*    Tx Q signal fault.                                */

#define  NET_TCP_ERR_RE_TX_SEG_TH                      31550    /* Re-tx Q seg(s) re-tx'd > th.                         */


/*$PAGE*/
/*
*********************************************************************************************************
*                                    APPLICATION LAYER ERROR CODES
*********************************************************************************************************
*/

#define  NET_APP_ERR_NONE                              40000
#define  NET_APP_ERR_NULL_PTR                          40020    /* Ptr  arg(s) passed NULL ptr(s).                      */


/*
*********************************************************************************************************
*                                  NETWORK SOCKET LAYER ERROR CODES
*********************************************************************************************************
*/

#define  NET_SOCK_ERR_NONE                             41000
#define  NET_SOCK_ERR_NONE_AVAIL                       41010    /* NO socks avail.                                      */
#define  NET_SOCK_ERR_NOT_USED                         41011    /* Sock NOT used.                                       */
#define  NET_SOCK_ERR_CLOSED                           41020    /* Sock       closed.                                   */
#define  NET_SOCK_ERR_FAULT                            41021    /* Sock fault closed.                                   */
#define  NET_SOCK_ERR_NULL_PTR                         41030    /* Ptr  arg(s) passed NULL ptr(s).                      */
#define  NET_SOCK_ERR_NULL_SIZE                        41031    /* Size arg(s) passed NULL size(s).                     */
#define  NET_SOCK_ERR_INVALID_FLAG                     41040    /* Invalid sock flag.                                   */
#define  NET_SOCK_ERR_INVALID_DATA_SIZE                41041    /* Invalid sock data size.                              */


#define  NET_SOCK_ERR_INVALID_FAMILY                   41050    /* Invalid sock protocol family.                        */
#define  NET_SOCK_ERR_INVALID_PROTOCOL                 41051    /* Invalid sock protocol.                               */
#define  NET_SOCK_ERR_INVALID_TYPE                     41052    /* Invalid sock type.                                   */
#define  NET_SOCK_ERR_INVALID_SOCK                     41053    /* Invalid sock id.                                     */
#define  NET_SOCK_ERR_INVALID_CONN                     41054    /* Invalid sock conn.                                   */
#define  NET_SOCK_ERR_INVALID_STATE                    41055    /* Invalid sock state.                                  */
#define  NET_SOCK_ERR_INVALID_OP                       41056    /* Invalid sock op.                                     */

#define  NET_SOCK_ERR_INVALID_ADDR                     41060    /* Invalid sock addr.                                   */
#define  NET_SOCK_ERR_INVALID_ADDR_LEN                 41061    /* Invalid sock addr len.                               */
#define  NET_SOCK_ERR_ADDR_IN_USE                      41062    /* Sock addr cur in use.                                */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -