mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-06 22:44:38 +08:00
Fixed bug #33492 (fixed stats for IPv6 protocols)
This commit is contained in:
parent
af5a913019
commit
d30246dc05
@ -88,9 +88,9 @@ stats_display_proto(struct stats_proto *proto, char *name)
|
|||||||
|
|
||||||
#if IGMP_STATS
|
#if IGMP_STATS
|
||||||
void
|
void
|
||||||
stats_display_igmp(struct stats_igmp *igmp)
|
stats_display_igmp(struct stats_igmp *igmp, const char *name)
|
||||||
{
|
{
|
||||||
LWIP_PLATFORM_DIAG(("\nIGMP\n\t"));
|
LWIP_PLATFORM_DIAG(("\n%s\n\t", name));
|
||||||
LWIP_PLATFORM_DIAG(("xmit: %"STAT_COUNTER_F"\n\t", igmp->xmit));
|
LWIP_PLATFORM_DIAG(("xmit: %"STAT_COUNTER_F"\n\t", igmp->xmit));
|
||||||
LWIP_PLATFORM_DIAG(("recv: %"STAT_COUNTER_F"\n\t", igmp->recv));
|
LWIP_PLATFORM_DIAG(("recv: %"STAT_COUNTER_F"\n\t", igmp->recv));
|
||||||
LWIP_PLATFORM_DIAG(("drop: %"STAT_COUNTER_F"\n\t", igmp->drop));
|
LWIP_PLATFORM_DIAG(("drop: %"STAT_COUNTER_F"\n\t", igmp->drop));
|
||||||
@ -159,9 +159,14 @@ stats_display(void)
|
|||||||
LINK_STATS_DISPLAY();
|
LINK_STATS_DISPLAY();
|
||||||
ETHARP_STATS_DISPLAY();
|
ETHARP_STATS_DISPLAY();
|
||||||
IPFRAG_STATS_DISPLAY();
|
IPFRAG_STATS_DISPLAY();
|
||||||
|
IP6_FRAG_STATS_DISPLAY();
|
||||||
IP_STATS_DISPLAY();
|
IP_STATS_DISPLAY();
|
||||||
|
ND6_STATS_DISPLAY();
|
||||||
|
IP6_STATS_DISPLAY();
|
||||||
IGMP_STATS_DISPLAY();
|
IGMP_STATS_DISPLAY();
|
||||||
|
MLD6_STATS_DISPLAY();
|
||||||
ICMP_STATS_DISPLAY();
|
ICMP_STATS_DISPLAY();
|
||||||
|
ICMP6_STATS_DISPLAY();
|
||||||
UDP_STATS_DISPLAY();
|
UDP_STATS_DISPLAY();
|
||||||
TCP_STATS_DISPLAY();
|
TCP_STATS_DISPLAY();
|
||||||
MEM_STATS_DISPLAY();
|
MEM_STATS_DISPLAY();
|
||||||
|
@ -205,7 +205,7 @@ void stats_init(void);
|
|||||||
|
|
||||||
#if IGMP_STATS
|
#if IGMP_STATS
|
||||||
#define IGMP_STATS_INC(x) STATS_INC(x)
|
#define IGMP_STATS_INC(x) STATS_INC(x)
|
||||||
#define IGMP_STATS_DISPLAY() stats_display_igmp(&lwip_stats.igmp)
|
#define IGMP_STATS_DISPLAY() stats_display_igmp(&lwip_stats.igmp, "IGMP")
|
||||||
#else
|
#else
|
||||||
#define IGMP_STATS_INC(x)
|
#define IGMP_STATS_INC(x)
|
||||||
#define IGMP_STATS_DISPLAY()
|
#define IGMP_STATS_DISPLAY()
|
||||||
@ -309,7 +309,7 @@ void stats_init(void);
|
|||||||
|
|
||||||
#if MLD6_STATS
|
#if MLD6_STATS
|
||||||
#define MLD6_STATS_INC(x) STATS_INC(x)
|
#define MLD6_STATS_INC(x) STATS_INC(x)
|
||||||
#define MLD6_STATS_DISPLAY() stats_display_proto(&lwip_stats.mld6, "MLDv1")
|
#define MLD6_STATS_DISPLAY() stats_display_igmp(&lwip_stats.mld6, "MLDv1")
|
||||||
#else
|
#else
|
||||||
#define MLD6_STATS_INC(x)
|
#define MLD6_STATS_INC(x)
|
||||||
#define MLD6_STATS_DISPLAY()
|
#define MLD6_STATS_DISPLAY()
|
||||||
@ -326,15 +326,15 @@ void stats_init(void);
|
|||||||
/* Display of statistics */
|
/* Display of statistics */
|
||||||
#if LWIP_STATS_DISPLAY
|
#if LWIP_STATS_DISPLAY
|
||||||
void stats_display(void);
|
void stats_display(void);
|
||||||
void stats_display_proto(struct stats_proto *proto, char *name);
|
void stats_display_proto(struct stats_proto *proto, const char *name);
|
||||||
void stats_display_igmp(struct stats_igmp *igmp);
|
void stats_display_igmp(struct stats_igmp *igmp, const char *name);
|
||||||
void stats_display_mem(struct stats_mem *mem, char *name);
|
void stats_display_mem(struct stats_mem *mem, const char *name);
|
||||||
void stats_display_memp(struct stats_mem *mem, int index);
|
void stats_display_memp(struct stats_mem *mem, int index);
|
||||||
void stats_display_sys(struct stats_sys *sys);
|
void stats_display_sys(struct stats_sys *sys);
|
||||||
#else /* LWIP_STATS_DISPLAY */
|
#else /* LWIP_STATS_DISPLAY */
|
||||||
#define stats_display()
|
#define stats_display()
|
||||||
#define stats_display_proto(proto, name)
|
#define stats_display_proto(proto, name)
|
||||||
#define stats_display_igmp(igmp)
|
#define stats_display_igmp(igmp, name)
|
||||||
#define stats_display_mem(mem, name)
|
#define stats_display_mem(mem, name)
|
||||||
#define stats_display_memp(mem, index)
|
#define stats_display_memp(mem, index)
|
||||||
#define stats_display_sys(sys)
|
#define stats_display_sys(sys)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user