lwip协议栈函数返回值定义

 

 

在lwip1.3.0/src/include/lwip/err.h中定义。

数据类型:typedef s8_t err_t

 

#define ERR_OK          0    /* 没有错误,万事OK*/
#define ERR_MEM        -1    /* 存储器输出错误*/
#define ERR_BUF        -2    /* 缓冲区错误*/
#define ERR_RTE        -3    /* 路由问题*/

#define ERR_IS_FATAL(e) ((e) < ERR_RTE)

#define ERR_ABRT       -4    /* 链接中止*/
#define ERR_RST        -5    /* 链接复位*/
#define ERR_CLSD       -6    /* 链接关闭*/
#define ERR_CONN       -7    /* 不能链接*/

#define ERR_VAL        -8    /* 值非法*/

#define ERR_ARG        -9    /* 参数非法*/

#define ERR_USE        -10   /* 地址正在使用*/

#define ERR_IF         -11   /* 底层网络接口错误*/
#define ERR_ISCONN     -12   /* 已经链接*/

#define ERR_TIMEOUT    -13   /* 超时*/

#define ERR_INPROGRESS -14   /* 操作正在进行*/

 

你可能感兴趣的:(网络,存储)