轉自:http://blog.csdn.net/zhzht19861011/article/details/6617903
在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 /* 操作正在進行*/