err.h

来自「完整的TCP/IP源代码,绝对好用」· C头文件 代码 · 共 41 行

H
41
字号
/*
 * Author: yugz <yugz@bhnec.nec.com.cn>
 *
 */
#ifndef __LWIP_ERR_H__
#define __LWIP_ERR_H__

#include "target.h"

typedef UINT8 err_t;

/* Definitions for error constants. */

#define ERR_OK    0      /* No error, everything OK. */
#define ERR_MEM  -1      /* Out of memory error.     */
#define ERR_BUF  -2      /* Buffer error.            */


#define ERR_ABRT -3      /* Connection aborted.      */
#define ERR_RST  -4      /* Connection reset.        */
#define ERR_CLSD -5      /* Connection closed.       */
#define ERR_CONN -6      /* Not connected.           */

#define ERR_VAL  -7      /* Illegal value.           */

#define ERR_ARG  -8      /* Illegal argument.        */

#define ERR_RTE  -9      /* Routing problem.         */

#define ERR_USE  -10     /* Address in use.          */

#define ERR_IF   -11     /* Low-level netif error    */

#define ERR_MTXBFF	-12	 /* MAC transmit buffer is full */

#define	ERR_MRXEMP	-13	 /*MAC receive buffer has no pkts*/

#define ERR_MRPKT_INVALID -14

#endif /* __LWIP_ERR_H__ */

⌨️ 快捷键说明

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