Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
net_stats.h
Go to the documentation of this file.
1
8/*
9 * Copyright (c) 2016 Intel Corporation
10 *
11 * SPDX-License-Identifier: Apache-2.0
12 */
13
14#ifndef ZEPHYR_INCLUDE_NET_NET_STATS_H_
15#define ZEPHYR_INCLUDE_NET_NET_STATS_H_
16
17#include <zephyr/types.h>
18#include <zephyr/net/net_core.h>
19#include <zephyr/net/net_mgmt.h>
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
39
49
59
76
103
123
169
186
200
214
228
242
256
270
281
292
295#if NET_TC_TX_COUNT == 0
296#define NET_TC_TX_STATS_COUNT 1
297#else
298#define NET_TC_TX_STATS_COUNT NET_TC_TX_COUNT
299#endif
300
301#if NET_TC_RX_COUNT == 0
302#define NET_TC_RX_STATS_COUNT 1
303#else
304#define NET_TC_RX_STATS_COUNT NET_TC_RX_COUNT
305#endif
306
314 struct {
317#if defined(CONFIG_NET_PKT_TXTIME_STATS_DETAIL)
319 struct net_stats_tx_time
320 tx_time_detail[NET_PKT_DETAIL_STATS_COUNT];
321#endif
328 } sent[NET_TC_TX_STATS_COUNT];
329
331 struct {
333 struct net_stats_rx_time rx_time;
334#if defined(CONFIG_NET_PKT_RXTIME_STATS_DETAIL)
336 struct net_stats_rx_time
337 rx_time_detail[NET_PKT_DETAIL_STATS_COUNT];
338#endif
340 net_stats_t pkts;
342 net_stats_t bytes;
344 uint8_t priority;
345 } recv[NET_TC_RX_STATS_COUNT];
346};
347
348
362
363
367struct net_stats {
370
376
379
380#if defined(CONFIG_NET_STATISTICS_IPV6)
382 struct net_stats_ip ipv6;
383#endif
384
385#if defined(CONFIG_NET_STATISTICS_IPV4)
387 struct net_stats_ip ipv4;
388#endif
389
390#if defined(CONFIG_NET_STATISTICS_ICMP)
392 struct net_stats_icmp icmp;
393#endif
394
395#if defined(CONFIG_NET_STATISTICS_TCP)
397 struct net_stats_tcp tcp;
398#endif
399
400#if defined(CONFIG_NET_STATISTICS_UDP)
402 struct net_stats_udp udp;
403#endif
404
405#if defined(CONFIG_NET_STATISTICS_IPV6_ND)
407 struct net_stats_ipv6_nd ipv6_nd;
408#endif
409
410#if defined(CONFIG_NET_STATISTICS_IPV6_PMTU)
412 struct net_stats_ipv6_pmtu ipv6_pmtu;
413#endif
414
415#if defined(CONFIG_NET_STATISTICS_IPV4_PMTU)
417 struct net_stats_ipv4_pmtu ipv4_pmtu;
418#endif
419
420#if defined(CONFIG_NET_STATISTICS_MLD)
422 struct net_stats_ipv6_mld ipv6_mld;
423#endif
424
425#if defined(CONFIG_NET_STATISTICS_IGMP)
427 struct net_stats_ipv4_igmp ipv4_igmp;
428#endif
429
430#if defined(CONFIG_NET_STATISTICS_DNS)
432 struct net_stats_dns dns;
433#endif
434
435#if NET_TC_COUNT > 1
437 struct net_stats_tc tc;
438#endif
439
440#if defined(CONFIG_NET_PKT_TXTIME_STATS)
442 struct net_stats_tx_time tx_time;
443#endif
444
445#if defined(CONFIG_NET_PKT_RXTIME_STATS)
447 struct net_stats_rx_time rx_time;
448#endif
449
450#if defined(CONFIG_NET_PKT_TXTIME_STATS_DETAIL)
452 struct net_stats_tx_time tx_time_detail[NET_PKT_DETAIL_STATS_COUNT];
453#endif
454#if defined(CONFIG_NET_PKT_RXTIME_STATS_DETAIL)
456 struct net_stats_rx_time rx_time_detail[NET_PKT_DETAIL_STATS_COUNT];
457#endif
458
459#if defined(CONFIG_NET_STATISTICS_POWER_MANAGEMENT)
461 struct net_stats_pm pm;
462#endif
463};
464
526
543
554
568
569#ifdef CONFIG_NET_STATISTICS_ETHERNET_VENDOR
573struct net_stats_eth_vendor {
574 const char * const key;
575 uint32_t value;
576};
577#endif
578
630
647
658
687
688#if defined(CONFIG_NET_STATISTICS_USER_API)
689/* Management part definitions */
690
693#define _NET_STATS_LAYER NET_MGMT_LAYER_L3
694#define _NET_STATS_CODE 0x101
695#define _NET_STATS_BASE (NET_MGMT_LAYER(_NET_STATS_LAYER) | \
696 NET_MGMT_LAYER_CODE(_NET_STATS_CODE))
697
698enum net_request_stats_cmd {
699 NET_REQUEST_STATS_CMD_GET_ALL = 1,
700 NET_REQUEST_STATS_CMD_GET_PROCESSING_ERROR,
701 NET_REQUEST_STATS_CMD_GET_BYTES,
702 NET_REQUEST_STATS_CMD_GET_IP_ERRORS,
703 NET_REQUEST_STATS_CMD_GET_IPV4,
704 NET_REQUEST_STATS_CMD_GET_IPV6,
705 NET_REQUEST_STATS_CMD_GET_IPV6_ND,
706 NET_REQUEST_STATS_CMD_GET_IPV6_PMTU,
707 NET_REQUEST_STATS_CMD_GET_IPV4_PMTU,
708 NET_REQUEST_STATS_CMD_GET_ICMP,
709 NET_REQUEST_STATS_CMD_GET_UDP,
710 NET_REQUEST_STATS_CMD_GET_TCP,
711 NET_REQUEST_STATS_CMD_GET_ETHERNET,
712 NET_REQUEST_STATS_CMD_GET_PPP,
713 NET_REQUEST_STATS_CMD_GET_PM,
714 NET_REQUEST_STATS_CMD_GET_WIFI,
715 NET_REQUEST_STATS_CMD_RESET_WIFI,
716};
717
721#define NET_REQUEST_STATS_GET_ALL \
722 (_NET_STATS_BASE | NET_REQUEST_STATS_CMD_GET_ALL)
723
725#define NET_REQUEST_STATS_GET_PROCESSING_ERROR \
726 (_NET_STATS_BASE | NET_REQUEST_STATS_CMD_GET_PROCESSING_ERROR)
727
729#define NET_REQUEST_STATS_GET_BYTES \
730 (_NET_STATS_BASE | NET_REQUEST_STATS_CMD_GET_BYTES)
731
733#define NET_REQUEST_STATS_GET_IP_ERRORS \
734 (_NET_STATS_BASE | NET_REQUEST_STATS_CMD_GET_IP_ERRORS)
735
738NET_MGMT_DEFINE_REQUEST_HANDLER(NET_REQUEST_STATS_GET_ALL);
739NET_MGMT_DEFINE_REQUEST_HANDLER(NET_REQUEST_STATS_GET_PROCESSING_ERROR);
740NET_MGMT_DEFINE_REQUEST_HANDLER(NET_REQUEST_STATS_GET_BYTES);
741NET_MGMT_DEFINE_REQUEST_HANDLER(NET_REQUEST_STATS_GET_IP_ERRORS);
742
745#if defined(CONFIG_NET_STATISTICS_IPV4)
747#define NET_REQUEST_STATS_GET_IPV4 \
748 (_NET_STATS_BASE | NET_REQUEST_STATS_CMD_GET_IPV4)
749
751NET_MGMT_DEFINE_REQUEST_HANDLER(NET_REQUEST_STATS_GET_IPV4);
753#endif /* CONFIG_NET_STATISTICS_IPV4 */
754
755#if defined(CONFIG_NET_STATISTICS_IPV6)
757#define NET_REQUEST_STATS_GET_IPV6 \
758 (_NET_STATS_BASE | NET_REQUEST_STATS_CMD_GET_IPV6)
759
761NET_MGMT_DEFINE_REQUEST_HANDLER(NET_REQUEST_STATS_GET_IPV6);
763#endif /* CONFIG_NET_STATISTICS_IPV6 */
764
765#if defined(CONFIG_NET_STATISTICS_IPV6_ND)
767#define NET_REQUEST_STATS_GET_IPV6_ND \
768 (_NET_STATS_BASE | NET_REQUEST_STATS_CMD_GET_IPV6_ND)
769
771NET_MGMT_DEFINE_REQUEST_HANDLER(NET_REQUEST_STATS_GET_IPV6_ND);
773#endif /* CONFIG_NET_STATISTICS_IPV6_ND */
774
775#if defined(CONFIG_NET_STATISTICS_IPV6_PMTU)
777#define NET_REQUEST_STATS_GET_IPV6_PMTU \
778 (_NET_STATS_BASE | NET_REQUEST_STATS_CMD_GET_IPV6_PMTU)
779
781NET_MGMT_DEFINE_REQUEST_HANDLER(NET_REQUEST_STATS_GET_IPV6_PMTU);
783#endif /* CONFIG_NET_STATISTICS_IPV6_PMTU */
784
785#if defined(CONFIG_NET_STATISTICS_IPV4_PMTU)
787#define NET_REQUEST_STATS_GET_IPV4_PMTU \
788 (_NET_STATS_BASE | NET_REQUEST_STATS_CMD_GET_IPV4_PMTU)
789
791NET_MGMT_DEFINE_REQUEST_HANDLER(NET_REQUEST_STATS_GET_IPV4_PMTU);
793#endif /* CONFIG_NET_STATISTICS_IPV4_PMTU */
794
795#if defined(CONFIG_NET_STATISTICS_ICMP)
797#define NET_REQUEST_STATS_GET_ICMP \
798 (_NET_STATS_BASE | NET_REQUEST_STATS_CMD_GET_ICMP)
799
801NET_MGMT_DEFINE_REQUEST_HANDLER(NET_REQUEST_STATS_GET_ICMP);
803#endif /* CONFIG_NET_STATISTICS_ICMP */
804
805#if defined(CONFIG_NET_STATISTICS_UDP)
807#define NET_REQUEST_STATS_GET_UDP \
808 (_NET_STATS_BASE | NET_REQUEST_STATS_CMD_GET_UDP)
809
811NET_MGMT_DEFINE_REQUEST_HANDLER(NET_REQUEST_STATS_GET_UDP);
813#endif /* CONFIG_NET_STATISTICS_UDP */
814
815#if defined(CONFIG_NET_STATISTICS_TCP)
817#define NET_REQUEST_STATS_GET_TCP \
818 (_NET_STATS_BASE | NET_REQUEST_STATS_CMD_GET_TCP)
819
821NET_MGMT_DEFINE_REQUEST_HANDLER(NET_REQUEST_STATS_GET_TCP);
823#endif /* CONFIG_NET_STATISTICS_TCP */
824
825#if defined(CONFIG_NET_STATISTICS_ETHERNET)
827#define NET_REQUEST_STATS_GET_ETHERNET \
828 (_NET_STATS_BASE | NET_REQUEST_STATS_CMD_GET_ETHERNET)
829
831NET_MGMT_DEFINE_REQUEST_HANDLER(NET_REQUEST_STATS_GET_ETHERNET);
833#endif /* CONFIG_NET_STATISTICS_ETHERNET */
834
835#if defined(CONFIG_NET_STATISTICS_PPP)
837#define NET_REQUEST_STATS_GET_PPP \
838 (_NET_STATS_BASE | NET_REQUEST_STATS_CMD_GET_PPP)
839
841NET_MGMT_DEFINE_REQUEST_HANDLER(NET_REQUEST_STATS_GET_PPP);
843#endif /* CONFIG_NET_STATISTICS_PPP */
844
845#endif /* CONFIG_NET_STATISTICS_USER_API */
846
847#if defined(CONFIG_NET_STATISTICS_POWER_MANAGEMENT)
849#define NET_REQUEST_STATS_GET_PM \
850 (_NET_STATS_BASE | NET_REQUEST_STATS_CMD_GET_PM)
851
853NET_MGMT_DEFINE_REQUEST_HANDLER(NET_REQUEST_STATS_GET_PM);
855#endif /* CONFIG_NET_STATISTICS_POWER_MANAGEMENT */
856
857#if defined(CONFIG_NET_STATISTICS_WIFI)
859#define NET_REQUEST_STATS_GET_WIFI \
860 (_NET_STATS_BASE | NET_REQUEST_STATS_CMD_GET_WIFI)
861
863NET_MGMT_DEFINE_REQUEST_HANDLER(NET_REQUEST_STATS_GET_WIFI);
867#define NET_REQUEST_STATS_RESET_WIFI \
868 (_NET_STATS_BASE | NET_REQUEST_STATS_CMD_RESET_WIFI)
869
871NET_MGMT_DEFINE_REQUEST_HANDLER(NET_REQUEST_STATS_RESET_WIFI);
873#endif /* CONFIG_NET_STATISTICS_WIFI */
874
879#ifdef __cplusplus
880}
881#endif
882
883#endif /* ZEPHYR_INCLUDE_NET_NET_STATS_H_ */
#define NET_MGMT_DEFINE_REQUEST_HANDLER(_mgmt_request)
Declare a request handler function for the given network event.
Definition net_mgmt.h:111
uint32_t net_stats_t
Network statistics counter.
Definition net_stats.h:38
Network core definitions.
Network Management API public header.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT64_TYPE__ uint64_t
Definition stdint.h:91
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
Number of bytes sent and received.
Definition net_stats.h:43
net_stats_t sent
Number of bytes sent.
Definition net_stats.h:45
net_stats_t received
Number of bytes received.
Definition net_stats.h:47
DNS statistics.
Definition net_stats.h:260
net_stats_t drop
Number of dropped DNS packets.
Definition net_stats.h:268
net_stats_t recv
Number of received DNS queries.
Definition net_stats.h:262
net_stats_t sent
Number of sent DNS responses.
Definition net_stats.h:265
Ethernet checksum statistics.
Definition net_stats.h:547
net_stats_t rx_csum_offload_good
Number of good RX checksum offloading.
Definition net_stats.h:549
net_stats_t rx_csum_offload_errors
Number of failed RX checksum offloading.
Definition net_stats.h:552
Ethernet error statistics.
Definition net_stats.h:468
net_stats_t tx_carrier_errors
Number of TX carrier errors.
Definition net_stats.h:506
net_stats_t uncorr_ecc_errors
Number of uncorrected ECC errors.
Definition net_stats.h:521
net_stats_t rx_long_length_errors
Number of RX long length errors.
Definition net_stats.h:488
net_stats_t tx_window_errors
Number of TX window errors.
Definition net_stats.h:515
net_stats_t corr_ecc_errors
Number of corrected ECC errors.
Definition net_stats.h:524
net_stats_t rx_missed_errors
Number of RX missed errors.
Definition net_stats.h:485
net_stats_t rx_crc_errors
Number of RX CRC errors.
Definition net_stats.h:476
net_stats_t rx_short_length_errors
Number of RX short length errors.
Definition net_stats.h:491
net_stats_t rx_align_errors
Number of RX buffer align errors.
Definition net_stats.h:494
net_stats_t rx_dma_failed
Number of RX DMA failed errors.
Definition net_stats.h:497
net_stats_t rx_no_buffer_count
Number of RX net_pkt allocation errors.
Definition net_stats.h:482
net_stats_t tx_fifo_errors
Number of TX FIFO errors.
Definition net_stats.h:509
net_stats_t rx_frame_errors
Number of RX frame errors.
Definition net_stats.h:479
net_stats_t rx_over_errors
Number of RX overrun errors.
Definition net_stats.h:473
net_stats_t tx_dma_failed
Number of TX DMA failed errors.
Definition net_stats.h:518
net_stats_t rx_length_errors
Number of RX length errors.
Definition net_stats.h:470
net_stats_t rx_buf_alloc_failed
Number of RX net_buf allocation errors.
Definition net_stats.h:500
net_stats_t tx_heartbeat_errors
Number of TX heartbeat errors.
Definition net_stats.h:512
net_stats_t tx_aborted_errors
Number of TX aborted errors.
Definition net_stats.h:503
Ethernet flow control statistics.
Definition net_stats.h:530
net_stats_t rx_flow_control_xon
Number of RX XON flow control.
Definition net_stats.h:532
net_stats_t tx_flow_control_xon
Number of TX XON flow control.
Definition net_stats.h:538
net_stats_t rx_flow_control_xoff
Number of RX XOFF flow control.
Definition net_stats.h:535
net_stats_t tx_flow_control_xoff
Number of TX XOFF flow control.
Definition net_stats.h:541
Ethernet hardware timestamp statistics.
Definition net_stats.h:558
net_stats_t tx_hwtstamp_timeouts
Number of RX hardware timestamp timeout.
Definition net_stats.h:563
net_stats_t rx_hwtstamp_cleared
Number of RX hardware timestamp cleared.
Definition net_stats.h:560
net_stats_t tx_hwtstamp_skipped
Number of RX hardware timestamp skipped.
Definition net_stats.h:566
All Ethernet specific statistics.
Definition net_stats.h:582
struct net_stats_pkts broadcast
Total number of broadcast packets received and sent.
Definition net_stats.h:590
struct net_stats_eth_csum csum
Total number of checksum errors in RX and TX.
Definition net_stats.h:605
net_stats_t tx_dropped
Total number of dropped TX packets.
Definition net_stats.h:614
struct net_stats_eth_hw_timestamp hw_timestamp
Total number of hardware timestamp errors in RX and TX.
Definition net_stats.h:608
struct net_stats_pkts multicast
Total number of multicast packets received and sent.
Definition net_stats.h:593
struct net_stats_eth_flow flow_control
Total number of flow control errors in RX and TX.
Definition net_stats.h:602
net_stats_t tx_restart_queue
Total number of TX queue restarts.
Definition net_stats.h:620
net_stats_t collisions
Total number of collisions.
Definition net_stats.h:611
struct net_stats_bytes bytes
Total number of bytes received and sent.
Definition net_stats.h:584
struct net_stats_eth_errors error_details
Total number of errors in RX and TX.
Definition net_stats.h:599
struct net_stats_pkts pkts
Total number of packets received and sent.
Definition net_stats.h:587
struct net_stats_pkts errors
Total number of errors in RX and TX.
Definition net_stats.h:596
net_stats_t tx_timeout_count
Total number of TX timeout errors.
Definition net_stats.h:617
net_stats_t unknown_protocol
Total number of RX unknown protocol packets.
Definition net_stats.h:623
ICMP statistics.
Definition net_stats.h:107
net_stats_t sent
Number of sent ICMP packets.
Definition net_stats.h:112
net_stats_t chkerr
Number of ICMP packets with a bad checksum.
Definition net_stats.h:121
net_stats_t drop
Number of dropped ICMP packets.
Definition net_stats.h:115
net_stats_t typeerr
Number of ICMP packets with a wrong type.
Definition net_stats.h:118
net_stats_t recv
Number of received ICMP packets.
Definition net_stats.h:109
IP layer error statistics.
Definition net_stats.h:80
net_stats_t hblenerr
Number of packets dropped due to wrong IP length, high byte.
Definition net_stats.h:87
net_stats_t vhlerr
Number of packets dropped due to wrong IP version or header length.
Definition net_stats.h:84
net_stats_t chkerr
Number of packets dropped due to IP checksum errors.
Definition net_stats.h:96
net_stats_t protoerr
Number of packets dropped because they were neither ICMP, UDP nor TCP.
Definition net_stats.h:101
net_stats_t lblenerr
Number of packets dropped due to wrong IP length, low byte.
Definition net_stats.h:90
net_stats_t fragerr
Number of packets dropped because they were IP fragments.
Definition net_stats.h:93
IP layer statistics.
Definition net_stats.h:63
net_stats_t forwarded
Number of forwarded packets at the IP layer.
Definition net_stats.h:71
net_stats_t recv
Number of received packets at the IP layer.
Definition net_stats.h:65
net_stats_t sent
Number of sent packets at the IP layer.
Definition net_stats.h:68
net_stats_t drop
Number of dropped packets at the IP layer.
Definition net_stats.h:74
IPv4 IGMP daemon statistics.
Definition net_stats.h:246
net_stats_t drop
Number of dropped IPv4 IGMP packets.
Definition net_stats.h:254
net_stats_t recv
Number of received IPv4 IGMP queries.
Definition net_stats.h:248
net_stats_t sent
Number of sent IPv4 IGMP reports.
Definition net_stats.h:251
IPv4 Path MTU Discovery statistics.
Definition net_stats.h:218
net_stats_t sent
Number of sent IPv4 PMTU packets.
Definition net_stats.h:226
net_stats_t recv
Number of received IPv4 PMTU packets.
Definition net_stats.h:223
net_stats_t drop
Number of dropped IPv4 PMTU packets.
Definition net_stats.h:220
IPv6 multicast listener daemon statistics.
Definition net_stats.h:232
net_stats_t recv
Number of received IPv6 MLD queries.
Definition net_stats.h:234
net_stats_t sent
Number of sent IPv6 MLD reports.
Definition net_stats.h:237
net_stats_t drop
Number of dropped IPv6 MLD packets.
Definition net_stats.h:240
IPv6 neighbor discovery statistics.
Definition net_stats.h:190
net_stats_t sent
Number of sent IPv6 neighbor discovery packets.
Definition net_stats.h:198
net_stats_t recv
Number of received IPv6 neighbor discovery packets.
Definition net_stats.h:195
net_stats_t drop
Number of dropped IPv6 neighbor discovery packets.
Definition net_stats.h:192
IPv6 Path MTU Discovery statistics.
Definition net_stats.h:204
net_stats_t recv
Number of received IPv6 PMTU packets.
Definition net_stats.h:209
net_stats_t drop
Number of dropped IPv6 PMTU packets.
Definition net_stats.h:206
net_stats_t sent
Number of sent IPv6 PMTU packets.
Definition net_stats.h:212
Number of network packets sent and received.
Definition net_stats.h:53
net_stats_t rx
Number of packets received.
Definition net_stats.h:57
net_stats_t tx
Number of packets sent.
Definition net_stats.h:55
Power management statistics.
Definition net_stats.h:352
uint32_t last_suspend_time
How long the last suspend took.
Definition net_stats.h:358
uint32_t start_time
Network interface last suspend start time.
Definition net_stats.h:360
uint64_t overall_suspend_time
Total suspend time.
Definition net_stats.h:354
net_stats_t suspend_count
How many times we were suspended.
Definition net_stats.h:356
All PPP specific statistics.
Definition net_stats.h:634
net_stats_t chkerr
Number of received PPP frames with a bad checksum.
Definition net_stats.h:645
struct net_stats_pkts pkts
Total number of packets received and sent.
Definition net_stats.h:639
struct net_stats_bytes bytes
Total number of bytes received and sent.
Definition net_stats.h:636
net_stats_t drop
Number of received and dropped PPP frames.
Definition net_stats.h:642
Network packet receive times for calculating average RX time.
Definition net_stats.h:285
uint64_t sum
Sum of network packet receive times.
Definition net_stats.h:287
net_stats_t count
Number of network packets received.
Definition net_stats.h:290
All Wi-Fi management statistics.
Definition net_stats.h:651
net_stats_t beacons_miss
Number of missed beacons.
Definition net_stats.h:656
net_stats_t beacons_rx
Number of received beacons.
Definition net_stats.h:653
Traffic class statistics.
Definition net_stats.h:312
struct net_stats_tc::@404 recv[NET_TC_RX_STATS_COUNT]
RX statistics for each traffic class.
net_stats_t bytes
Number of bytes sent for this traffic class.
Definition net_stats.h:325
struct net_stats_tx_time tx_time
Helper for calculating average TX time statistics.
Definition net_stats.h:316
struct net_stats_tc::@403 sent[NET_TC_TX_STATS_COUNT]
TX statistics for each traffic class.
net_stats_t pkts
Number of packets sent for this traffic class.
Definition net_stats.h:323
uint8_t priority
Priority of this traffic class.
Definition net_stats.h:327
TCP statistics.
Definition net_stats.h:127
net_stats_t ackerr
Number of received TCP segments with a bad ACK number.
Definition net_stats.h:150
net_stats_t rsterr
Number of received bad TCP RST (reset) segments.
Definition net_stats.h:153
net_stats_t rexmit
Number of retransmitted TCP segments.
Definition net_stats.h:159
net_stats_t chkerr
Number of TCP segments with a bad checksum.
Definition net_stats.h:147
net_stats_t seg_drop
Number of dropped TCP segments.
Definition net_stats.h:144
net_stats_t connrst
Number of connection attempts for closed ports, triggering a RST.
Definition net_stats.h:167
net_stats_t drop
Number of dropped packets at the TCP layer.
Definition net_stats.h:135
net_stats_t rst
Number of received TCP RST (reset) segments.
Definition net_stats.h:156
net_stats_t sent
Number of sent TCP segments.
Definition net_stats.h:141
net_stats_t resent
Amount of retransmitted data.
Definition net_stats.h:132
net_stats_t conndrop
Number of dropped connection attempts because too few connections were available.
Definition net_stats.h:164
net_stats_t recv
Number of received TCP segments.
Definition net_stats.h:138
struct net_stats_bytes bytes
Amount of received and sent TCP application data.
Definition net_stats.h:129
Network packet transfer times for calculating average TX time.
Definition net_stats.h:274
net_stats_t count
Number of network packets transferred.
Definition net_stats.h:279
uint64_t sum
Sum of network packet transfer times.
Definition net_stats.h:276
UDP statistics.
Definition net_stats.h:173
net_stats_t recv
Number of received UDP segments.
Definition net_stats.h:178
net_stats_t drop
Number of dropped UDP segments.
Definition net_stats.h:175
net_stats_t chkerr
Number of UDP segments with a bad checksum.
Definition net_stats.h:184
net_stats_t sent
Number of sent UDP segments.
Definition net_stats.h:181
All Wi-Fi specific statistics.
Definition net_stats.h:662
struct net_stats_pkts broadcast
Total number of broadcast packets received and sent.
Definition net_stats.h:673
struct net_stats_pkts multicast
Total number of multicast packets received and sent.
Definition net_stats.h:676
struct net_stats_sta_mgmt sta_mgmt
Total number of beacon errors.
Definition net_stats.h:664
struct net_stats_bytes bytes
Total number of bytes received and sent.
Definition net_stats.h:667
net_stats_t overrun_count
Total number of dropped packets at received and sent.
Definition net_stats.h:685
struct net_stats_pkts pkts
Total number of packets received and sent.
Definition net_stats.h:670
struct net_stats_pkts errors
Total number of errors in RX and TX.
Definition net_stats.h:679
struct net_stats_pkts unicast
Total number of unicast packets received and sent.
Definition net_stats.h:682
All network statistics in one struct.
Definition net_stats.h:367
net_stats_t processing_error
Count of malformed packets or packets we do not have handler for.
Definition net_stats.h:369
struct net_stats_bytes bytes
This calculates amount of data transferred through all the network interfaces.
Definition net_stats.h:375
struct net_stats_ip_errors ip_errors
IP layer errors.
Definition net_stats.h:378