mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-08-09 17:13:49 +08:00
renamed (hopefully everywhere) stats to lwip_stats.closes bug #1901
This commit is contained in:
@@ -260,7 +260,7 @@ mintapif_input(struct netif *netif)
|
||||
if(p != NULL) {
|
||||
|
||||
#ifdef LINK_STATS
|
||||
stats.link.recv++;
|
||||
lwip_stats.link.recv++;
|
||||
#endif /* LINK_STATS */
|
||||
|
||||
ethhdr = p->payload;
|
||||
|
||||
@@ -294,7 +294,7 @@ low_level_output(struct netif *ethernetif, struct pbuf *p)
|
||||
PacketFreePacket(lpPacket);
|
||||
|
||||
#ifdef LINK_STATS
|
||||
stats.link.xmit++;
|
||||
lwip_stats.link.xmit++;
|
||||
#endif /* LINK_STATS */
|
||||
return ERR_OK;
|
||||
}
|
||||
@@ -346,14 +346,14 @@ low_level_input(struct netif *ethernetif)
|
||||
/* acknowledge that packet has been read(); */
|
||||
cur_length=0;
|
||||
#ifdef LINK_STATS
|
||||
stats.link.recv++;
|
||||
lwip_stats.link.recv++;
|
||||
#endif /* LINK_STATS */
|
||||
} else {
|
||||
/* drop packet(); */
|
||||
cur_length=0;
|
||||
#ifdef LINK_STATS
|
||||
stats.link.memerr++;
|
||||
stats.link.drop++;
|
||||
lwip_stats.link.memerr++;
|
||||
lwip_stats.link.drop++;
|
||||
#endif /* LINK_STATS */
|
||||
}
|
||||
|
||||
@@ -405,7 +405,7 @@ ethernetif_input(struct netif *netif)
|
||||
if(p != NULL) {
|
||||
|
||||
#ifdef LINK_STATS
|
||||
stats.link.recv++;
|
||||
lwip_stats.link.recv++;
|
||||
#endif /* LINK_STATS */
|
||||
|
||||
ethhdr = p->payload;
|
||||
|
||||
@@ -441,7 +441,7 @@ com_stat(struct command *com)
|
||||
u16_t len;
|
||||
|
||||
for(i = 0; i < sizeof(struct stats_) / 2; i++) {
|
||||
len = sprintf(buf, "%d", ((u16_t *)&stats)[i]);
|
||||
len = sprintf(buf, "%d", ((u16_t *)&lwip_stats)[i]);
|
||||
sendstr(stat_msgs[i], com->conn);
|
||||
netconn_write(com->conn, buf, len, NETCONN_COPY);
|
||||
sendstr("\n", com->conn);
|
||||
|
||||
Reference in New Issue
Block a user