Documentation

Documentation

Includes

lwip/opt.h

#include "lwip/opt.h"
#include "lwip/opt.h"

lwip/mem.h

#include "lwip/mem.h"
#include "lwip/mem.h"

lwip/memp.h

#include "lwip/memp.h"
#include "lwip/memp.h"

Macros

Marco LWIP_HDR_STATS_H

#define LWIP_HDR_STATS_H


      

Marco LWIP_STATS_LARGE

#define LWIP_STATS_LARGE 0


      

Marco STAT_COUNTER

#define STAT_COUNTER    u32_t


      

Marco STAT_COUNTER_F

#define STAT_COUNTER_F  U32_F


      

Marco STAT_COUNTER

#define STAT_COUNTER    u16_t


      

Marco STAT_COUNTER_F

#define STAT_COUNTER_F  U16_F


      

Marco STATS_INC(x)

#define STATS_INC(x) ++lwip_stats.x


      

Marco STATS_DEC(x)

#define STATS_DEC(x) --lwip_stats.x


      

Marco STATS_INC_USED(x, y, type)

#define STATS_INC_USED(x, y, type) do { lwip_stats.x.used = (type)(lwip_stats.x.used + y); \
                               if (lwip_stats.x.max < lwip_stats.x.used) { \
                                   lwip_stats.x.max = lwip_stats.x.used; \
                               } \
                            } while(0)


      

Marco STATS_GET(x)

#define STATS_GET(x) lwip_stats.x


      

Marco stats_init

#define stats_init()


      

Marco STATS_INC

#define STATS_INC(x)


      

Marco STATS_DEC

#define STATS_DEC(x)


      

Marco STATS_INC_USED

#define STATS_INC_USED(x, y, type)


      

Marco TCP_STATS_INC(x)

#define TCP_STATS_INC(x) STATS_INC(x)


      

Marco TCP_STATS_DISPLAY()

#define TCP_STATS_DISPLAY() stats_display_proto(&lwip_stats.tcp, "TCP")


      

Marco TCP_STATS_INC

#define TCP_STATS_INC(x)


      

Marco TCP_STATS_DISPLAY

#define TCP_STATS_DISPLAY()


      

Marco UDP_STATS_INC(x)

#define UDP_STATS_INC(x) STATS_INC(x)


      

Marco UDP_STATS_DISPLAY()

#define UDP_STATS_DISPLAY() stats_display_proto(&lwip_stats.udp, "UDP")


      

Marco UDP_STATS_INC

#define UDP_STATS_INC(x)


      

Marco UDP_STATS_DISPLAY

#define UDP_STATS_DISPLAY()


      

Marco ICMP_STATS_INC(x)

#define ICMP_STATS_INC(x) STATS_INC(x)


      

Marco ICMP_STATS_DISPLAY()

#define ICMP_STATS_DISPLAY() stats_display_proto(&lwip_stats.icmp, "ICMP")


      

Marco ICMP_STATS_INC

#define ICMP_STATS_INC(x)


      

Marco ICMP_STATS_DISPLAY

#define ICMP_STATS_DISPLAY()


      

Marco IGMP_STATS_INC(x)

#define IGMP_STATS_INC(x) STATS_INC(x)


      

Marco IGMP_STATS_DISPLAY()

#define IGMP_STATS_DISPLAY() stats_display_igmp(&lwip_stats.igmp, "IGMP")


      

Marco IGMP_STATS_INC

#define IGMP_STATS_INC(x)


      

Marco IGMP_STATS_DISPLAY

#define IGMP_STATS_DISPLAY()


      

Marco IP_STATS_INC(x)

#define IP_STATS_INC(x) STATS_INC(x)


      

Marco IP_STATS_DISPLAY()

#define IP_STATS_DISPLAY() stats_display_proto(&lwip_stats.ip, "IP")


      

Marco IP_STATS_INC

#define IP_STATS_INC(x)


      

Marco IP_STATS_DISPLAY

#define IP_STATS_DISPLAY()


      

Marco IPFRAG_STATS_INC(x)

#define IPFRAG_STATS_INC(x) STATS_INC(x)


      

Marco IPFRAG_STATS_DISPLAY()

#define IPFRAG_STATS_DISPLAY() stats_display_proto(&lwip_stats.ip_frag, "IP_FRAG")


      

Marco IPFRAG_STATS_INC

#define IPFRAG_STATS_INC(x)


      

Marco IPFRAG_STATS_DISPLAY

#define IPFRAG_STATS_DISPLAY()


      

Marco ETHARP_STATS_INC(x)

#define ETHARP_STATS_INC(x) STATS_INC(x)


      

Marco ETHARP_STATS_DISPLAY()

#define ETHARP_STATS_DISPLAY() stats_display_proto(&lwip_stats.etharp, "ETHARP")


      

Marco ETHARP_STATS_INC

#define ETHARP_STATS_INC(x)


      

Marco ETHARP_STATS_DISPLAY

#define ETHARP_STATS_DISPLAY()


      
      
#define LINK_STATS_INC(x) STATS_INC(x)


      
      
#define LINK_STATS_DISPLAY() stats_display_proto(&lwip_stats.link, "LINK")


      
      
#define LINK_STATS_INC(x)


      
      
#define LINK_STATS_DISPLAY()


      

Marco MEM_STATS_AVAIL(x, y)

#define MEM_STATS_AVAIL(x, y) lwip_stats.mem.x = y


      

Marco MEM_STATS_INC(x)

#define MEM_STATS_INC(x) STATS_INC(mem.x)


      

Marco MEM_STATS_INC_USED(x, y)

#define MEM_STATS_INC_USED(x, y) STATS_INC_USED(mem, y, mem_size_t)


      

Marco MEM_STATS_DEC_USED(x, y)

#define MEM_STATS_DEC_USED(x, y) lwip_stats.mem.x = (mem_size_t)((lwip_stats.mem.x) - (y))


      

Marco MEM_STATS_DISPLAY()

#define MEM_STATS_DISPLAY() stats_display_mem(&lwip_stats.mem, "HEAP")


      

Marco MEM_STATS_AVAIL

#define MEM_STATS_AVAIL(x, y)


      

Marco MEM_STATS_INC

#define MEM_STATS_INC(x)


      

Marco MEM_STATS_INC_USED

#define MEM_STATS_INC_USED(x, y)


      

Marco MEM_STATS_DEC_USED

#define MEM_STATS_DEC_USED(x, y)


      

Marco MEM_STATS_DISPLAY

#define MEM_STATS_DISPLAY()


      

Marco MEMP_STATS_DEC(x, i)

#define MEMP_STATS_DEC(x, i) STATS_DEC(memp[i]->x)


      

Marco MEMP_STATS_DISPLAY(i)

#define MEMP_STATS_DISPLAY(i) stats_display_memp(lwip_stats.memp[i], i)


      

Marco MEMP_STATS_GET(x, i)

#define MEMP_STATS_GET(x, i) STATS_GET(memp[i]->x)


      

Marco MEMP_STATS_DEC

#define MEMP_STATS_DEC(x, i)


      

Marco MEMP_STATS_DISPLAY

#define MEMP_STATS_DISPLAY(i)


      

Marco MEMP_STATS_GET(x, i)

#define MEMP_STATS_GET(x, i) 0


      

Marco SYS_STATS_INC(x)

#define SYS_STATS_INC(x) STATS_INC(sys.x)


      

Marco SYS_STATS_DEC(x)

#define SYS_STATS_DEC(x) STATS_DEC(sys.x)


      

Marco SYS_STATS_INC_USED(x)

#define SYS_STATS_INC_USED(x) STATS_INC_USED(sys.x, 1, STAT_COUNTER)


      

Marco SYS_STATS_DISPLAY()

#define SYS_STATS_DISPLAY() stats_display_sys(&lwip_stats.sys)


      

Marco SYS_STATS_INC

#define SYS_STATS_INC(x)


      

Marco SYS_STATS_DEC

#define SYS_STATS_DEC(x)


      

Marco SYS_STATS_INC_USED

#define SYS_STATS_INC_USED(x)


      

Marco SYS_STATS_DISPLAY

#define SYS_STATS_DISPLAY()


      

Marco IP6_STATS_INC(x)

#define IP6_STATS_INC(x) STATS_INC(x)


      

Marco IP6_STATS_DISPLAY()

#define IP6_STATS_DISPLAY() stats_display_proto(&lwip_stats.ip6, "IPv6")


      

Marco IP6_STATS_INC

#define IP6_STATS_INC(x)


      

Marco IP6_STATS_DISPLAY

#define IP6_STATS_DISPLAY()


      

Marco ICMP6_STATS_INC(x)

#define ICMP6_STATS_INC(x) STATS_INC(x)


      

Marco ICMP6_STATS_DISPLAY()

#define ICMP6_STATS_DISPLAY() stats_display_proto(&lwip_stats.icmp6, "ICMPv6")


      

Marco ICMP6_STATS_INC

#define ICMP6_STATS_INC(x)


      

Marco ICMP6_STATS_DISPLAY

#define ICMP6_STATS_DISPLAY()


      

Marco IP6_FRAG_STATS_INC(x)

#define IP6_FRAG_STATS_INC(x) STATS_INC(x)


      

Marco IP6_FRAG_STATS_DISPLAY()

#define IP6_FRAG_STATS_DISPLAY() stats_display_proto(&lwip_stats.ip6_frag, "IPv6 FRAG")


      

Marco IP6_FRAG_STATS_INC

#define IP6_FRAG_STATS_INC(x)


      

Marco IP6_FRAG_STATS_DISPLAY

#define IP6_FRAG_STATS_DISPLAY()


      

Marco MLD6_STATS_INC(x)

#define MLD6_STATS_INC(x) STATS_INC(x)


      

Marco MLD6_STATS_DISPLAY()

#define MLD6_STATS_DISPLAY() stats_display_igmp(&lwip_stats.mld6, "MLDv1")


      

Marco MLD6_STATS_INC

#define MLD6_STATS_INC(x)


      

Marco MLD6_STATS_DISPLAY

#define MLD6_STATS_DISPLAY()


      

Marco ND6_STATS_INC(x)

#define ND6_STATS_INC(x) STATS_INC(x)


      

Marco ND6_STATS_DISPLAY()

#define ND6_STATS_DISPLAY() stats_display_proto(&lwip_stats.nd6, "ND")


      

Marco ND6_STATS_INC

#define ND6_STATS_INC(x)


      

Marco ND6_STATS_DISPLAY

#define ND6_STATS_DISPLAY()


      

Marco MIB2_STATS_INC(x)

#define MIB2_STATS_INC(x) STATS_INC(x)


      

Marco MIB2_STATS_INC

#define MIB2_STATS_INC(x)


      

Marco stats_display

#define stats_display()


      

Marco stats_display_proto

#define stats_display_proto(proto, name)


      

Marco stats_display_igmp

#define stats_display_igmp(igmp, name)


      

Marco stats_display_mem

#define stats_display_mem(mem, name)


      

Marco stats_display_memp

#define stats_display_memp(mem, index)


      

Marco stats_display_sys

#define stats_display_sys(sys)

      

Functions

Func stats_init

void stats_init(void);
/** Init statistics */

Func stats_display

void stats_display(void);


      

Func stats_display_proto

void stats_display_proto(struct stats_proto *proto, const char *name);


      

Func stats_display_igmp

void stats_display_igmp(struct stats_igmp *igmp, const char *name);


      

Func stats_display_mem

void stats_display_mem(struct stats_mem *mem, const char *name);


      

Func stats_display_memp

void stats_display_memp(struct stats_mem *mem, int index);


      

Func stats_display_sys

void stats_display_sys(struct stats_sys *sys);

      

Vars

Consts

Types

Typedefs