shell.c.rej

来自「lwIP-Softools-11Jul2002-alpha」· REJ 代码 · 共 128 行

REJ
128
字号
****************** 30,36 ****   *    * Author: Adam Dunkels <adam@sics.se>   *-  * $Id: shell.c,v 1.1 2001/12/12 10:00:54 adam Exp $   */    #include <string.h>--- 30,36 ----   *    * Author: Adam Dunkels <adam@sics.se>   *+  * $Id: shell.c,v 1.4 2002/01/02 17:35:40 adam Exp $   */    #include <string.h>****************** 91,96 ****    "             protocol errors ",    "             option errors ",    "           * misc errors ",    "IP         * transmitted ",    "             retransmitted ",    "           * received ",--- 91,97 ----    "             protocol errors ",    "             option errors ",    "           * misc errors ",+   "             cache hits ",      "IP         * transmitted ",    "             retransmitted ",    "           * received ",****************** 103,108 ****    "           * protocol errors ",    "           * option errors ",    "           * misc errors ",    "ICMP       * transmitted ",    "             retransmitted ",    "           * received ",--- 104,110 ----    "           * protocol errors ",    "           * option errors ",    "           * misc errors ",+   "             cache hits ",    "ICMP       * transmitted ",    "             retransmitted ",    "           * received ",****************** 115,120 ****    "           * protocol errors ",    "             option errors ",    "           * misc errors ",    "UDP        * transmitted ",    "             retransmitted ",    "           * received ",--- 117,123 ----    "           * protocol errors ",    "             option errors ",    "           * misc errors ",+   "             cache hits ",      "UDP        * transmitted ",    "             retransmitted ",    "           * received ",****************** 127,132 ****    "           * protocol errors ",    "             option errors ",    "           * misc errors ",    "TCP        * transmitted ",    "           * retransmitted ",    "           * received ",--- 130,136 ----    "           * protocol errors ",    "             option errors ",    "           * misc errors ",+   "             cache hits ",      "TCP        * transmitted ",    "           * retransmitted ",    "           * received ",****************** 139,144 ****    "           * protocol errors ",    "           * option errors ",    "           * misc errors ",    "Pbufs      * avaiable ",    "           * used ",    "           * high water mark ",--- 143,149 ----    "           * protocol errors ",    "           * option errors ",    "           * misc errors ",+   "           * cache hits ",      "Pbufs      * avaiable ",    "           * used ",    "           * high water mark ",****************** 418,430 ****    char buf[100];    u16_t len;    -   for(i = 60; i < sizeof(struct stats_) / 2; i++) {      len = sprintf(buf, "%d", ((u16_t *)&stats)[i]);      sendstr(stat_msgs[i], com->conn);      netconn_write(com->conn, buf, len, NETCONN_COPY);      sendstr("\n", com->conn);    }      return ESUCCESS;  }  /*-----------------------------------------------------------------------------------*/--- 424,437 ----    char buf[100];    u16_t len;    +   for(i = 0; i < sizeof(struct stats_) / 2; i++) {      len = sprintf(buf, "%d", ((u16_t *)&stats)[i]);      sendstr(stat_msgs[i], com->conn);      netconn_write(com->conn, buf, len, NETCONN_COPY);      sendstr("\n", com->conn);    }  +       return ESUCCESS;  }  /*-----------------------------------------------------------------------------------*/

⌨️ 快捷键说明

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