Zephyr API Documentation 4.0.0-rc2
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
253
264
267#if NET_TC_TX_COUNT == 0
268#define NET_TC_TX_STATS_COUNT 1
269#else
270#define NET_TC_TX_STATS_COUNT NET_TC_TX_COUNT
271#endif
272
273#if NET_TC_RX_COUNT == 0
274#define NET_TC_RX_STATS_COUNT 1
275#else
276#define NET_TC_RX_STATS_COUNT NET_TC_RX_COUNT
277#endif
278
286 struct {
289#if defined(CONFIG_NET_PKT_TXTIME_STATS_DETAIL)
291 struct net_stats_tx_time
292 tx_time_detail[NET_PKT_DETAIL_STATS_COUNT];
293#endif
300 } sent[NET_TC_TX_STATS_COUNT];
301
303 struct {
305 struct net_stats_rx_time rx_time;
306#if defined(CONFIG_NET_PKT_RXTIME_STATS_DETAIL)
308 struct net_stats_rx_time
309 rx_time_detail[NET_PKT_DETAIL_STATS_COUNT];
310#endif
312 net_stats_t pkts;
314 net_stats_t bytes;
316 uint8_t priority;
317 } recv[NET_TC_RX_STATS_COUNT];
318};
319
320
334
335
339struct net_stats {
342
348
351
352#if defined(CONFIG_NET_STATISTICS_IPV6)
354 struct net_stats_ip ipv6;
355#endif
356
357#if defined(CONFIG_NET_STATISTICS_IPV4)
359 struct net_stats_ip ipv4;
360#endif
361
362#if defined(CONFIG_NET_STATISTICS_ICMP)
364 struct net_stats_icmp icmp;
365#endif
366
367#if defined(CONFIG_NET_STATISTICS_TCP)
369 struct net_stats_tcp tcp;
370#endif
371
372#if defined(CONFIG_NET_STATISTICS_UDP)
374 struct net_stats_udp udp;
375#endif
376
377#if defined(CONFIG_NET_STATISTICS_IPV6_ND)
379 struct net_stats_ipv6_nd ipv6_nd;
380#endif
381
382#if defined(CONFIG_NET_STATISTICS_MLD)
384 struct net_stats_ipv6_mld ipv6_mld;
385#endif
386
387#if defined(CONFIG_NET_STATISTICS_IGMP)
389 struct net_stats_ipv4_igmp ipv4_igmp;
390#endif
391
392#if defined(CONFIG_NET_STATISTICS_DNS)
394 struct net_stats_dns dns;
395#endif
396
397#if NET_TC_COUNT > 1
399 struct net_stats_tc tc;
400#endif
401
402#if defined(CONFIG_NET_PKT_TXTIME_STATS)
404 struct net_stats_tx_time tx_time;
405#endif
406
407#if defined(CONFIG_NET_PKT_RXTIME_STATS)
409 struct net_stats_rx_time rx_time;
410#endif
411
412#if defined(CONFIG_NET_PKT_TXTIME_STATS_DETAIL)
414 struct net_stats_tx_time tx_time_detail[NET_PKT_DETAIL_STATS_COUNT];
415#endif
416#if defined(CONFIG_NET_PKT_RXTIME_STATS_DETAIL)
418 struct net_stats_rx_time rx_time_detail[NET_PKT_DETAIL_STATS_COUNT];
419#endif
420
421#if defined(CONFIG_NET_STATISTICS_POWER_MANAGEMENT)
423 struct net_stats_pm pm;
424#endif
425};
426
488
505
516
530
531#ifdef CONFIG_NET_STATISTICS_ETHERNET_VENDOR
535struct net_stats_eth_vendor {
536 const char * const key;
537 uint32_t value;
538};
539#endif
540
592
609
620
649
650#if defined(CONFIG_NET_STATISTICS_USER_API)
651/* Management part definitions */
652
655#define _NET_STATS_LAYER NET_MGMT_LAYER_L3
656#define _NET_STATS_CODE 0x101
657#define _NET_STATS_BASE (NET_MGMT_LAYER(_NET_STATS_LAYER) | \
658 NET_MGMT_LAYER_CODE(_NET_STATS_CODE))
659
660enum net_request_stats_cmd {
661 NET_REQUEST_STATS_CMD_GET_ALL = 1,
662 NET_REQUEST_STATS_CMD_GET_PROCESSING_ERROR,
663 NET_REQUEST_STATS_CMD_GET_BYTES,
664 NET_REQUEST_STATS_CMD_GET_IP_ERRORS,
665 NET_REQUEST_STATS_CMD_GET_IPV4,
666 NET_REQUEST_STATS_CMD_GET_IPV6,
667 NET_REQUEST_STATS_CMD_GET_IPV6_ND,
668 NET_REQUEST_STATS_CMD_GET_ICMP,
669 NET_REQUEST_STATS_CMD_GET_UDP,
670 NET_REQUEST_STATS_CMD_GET_TCP,
671 NET_REQUEST_STATS_CMD_GET_ETHERNET,
672 NET_REQUEST_STATS_CMD_GET_PPP,
673 NET_REQUEST_STATS_CMD_GET_PM,
674 NET_REQUEST_STATS_CMD_GET_WIFI,
675 NET_REQUEST_STATS_CMD_RESET_WIFI,
676};
677
681#define NET_REQUEST_STATS_GET_ALL \
682 (_NET_STATS_BASE | NET_REQUEST_STATS_CMD_GET_ALL)
683
685#define NET_REQUEST_STATS_GET_PROCESSING_ERROR \
686 (_NET_STATS_BASE | NET_REQUEST_STATS_CMD_GET_PROCESSING_ERROR)
687
689#define NET_REQUEST_STATS_GET_BYTES \
690 (_NET_STATS_BASE | NET_REQUEST_STATS_CMD_GET_BYTES)
691
693#define NET_REQUEST_STATS_GET_IP_ERRORS \
694 (_NET_STATS_BASE | NET_REQUEST_STATS_CMD_GET_IP_ERRORS)
695
698NET_MGMT_DEFINE_REQUEST_HANDLER(NET_REQUEST_STATS_GET_ALL);
699NET_MGMT_DEFINE_REQUEST_HANDLER(NET_REQUEST_STATS_GET_PROCESSING_ERROR);
700NET_MGMT_DEFINE_REQUEST_HANDLER(NET_REQUEST_STATS_GET_BYTES);
701NET_MGMT_DEFINE_REQUEST_HANDLER(NET_REQUEST_STATS_GET_IP_ERRORS);
702
705#if defined(CONFIG_NET_STATISTICS_IPV4)
707#define NET_REQUEST_STATS_GET_IPV4 \
708 (_NET_STATS_BASE | NET_REQUEST_STATS_CMD_GET_IPV4)
709
711NET_MGMT_DEFINE_REQUEST_HANDLER(NET_REQUEST_STATS_GET_IPV4);
713#endif /* CONFIG_NET_STATISTICS_IPV4 */
714
715#if defined(CONFIG_NET_STATISTICS_IPV6)
717#define NET_REQUEST_STATS_GET_IPV6 \
718 (_NET_STATS_BASE | NET_REQUEST_STATS_CMD_GET_IPV6)
719
721NET_MGMT_DEFINE_REQUEST_HANDLER(NET_REQUEST_STATS_GET_IPV6);
723#endif /* CONFIG_NET_STATISTICS_IPV6 */
724
725#if defined(CONFIG_NET_STATISTICS_IPV6_ND)
727#define NET_REQUEST_STATS_GET_IPV6_ND \
728 (_NET_STATS_BASE | NET_REQUEST_STATS_CMD_GET_IPV6_ND)
729
731NET_MGMT_DEFINE_REQUEST_HANDLER(NET_REQUEST_STATS_GET_IPV6_ND);
733#endif /* CONFIG_NET_STATISTICS_IPV6_ND */
734
735#if defined(CONFIG_NET_STATISTICS_ICMP)
737#define NET_REQUEST_STATS_GET_ICMP \
738 (_NET_STATS_BASE | NET_REQUEST_STATS_CMD_GET_ICMP)
739
741NET_MGMT_DEFINE_REQUEST_HANDLER(NET_REQUEST_STATS_GET_ICMP);
743#endif /* CONFIG_NET_STATISTICS_ICMP */
744
745#if defined(CONFIG_NET_STATISTICS_UDP)
747#define NET_REQUEST_STATS_GET_UDP \
748 (_NET_STATS_BASE | NET_REQUEST_STATS_CMD_GET_UDP)
749
751NET_MGMT_DEFINE_REQUEST_HANDLER(NET_REQUEST_STATS_GET_UDP);
753#endif /* CONFIG_NET_STATISTICS_UDP */
754
755#if defined(CONFIG_NET_STATISTICS_TCP)
757#define NET_REQUEST_STATS_GET_TCP \
758 (_NET_STATS_BASE | NET_REQUEST_STATS_CMD_GET_TCP)
759
761NET_MGMT_DEFINE_REQUEST_HANDLER(NET_REQUEST_STATS_GET_TCP);
763#endif /* CONFIG_NET_STATISTICS_TCP */
764
765#if defined(CONFIG_NET_STATISTICS_ETHERNET)
767#define NET_REQUEST_STATS_GET_ETHERNET \
768 (_NET_STATS_BASE | NET_REQUEST_STATS_CMD_GET_ETHERNET)
769
771NET_MGMT_DEFINE_REQUEST_HANDLER(NET_REQUEST_STATS_GET_ETHERNET);
773#endif /* CONFIG_NET_STATISTICS_ETHERNET */
774
775#if defined(CONFIG_NET_STATISTICS_PPP)
777#define NET_REQUEST_STATS_GET_PPP \
778 (_NET_STATS_BASE | NET_REQUEST_STATS_CMD_GET_PPP)
779
781NET_MGMT_DEFINE_REQUEST_HANDLER(NET_REQUEST_STATS_GET_PPP);
783#endif /* CONFIG_NET_STATISTICS_PPP */
784
785#endif /* CONFIG_NET_STATISTICS_USER_API */
786
787#if defined(CONFIG_NET_STATISTICS_POWER_MANAGEMENT)
789#define NET_REQUEST_STATS_GET_PM \
790 (_NET_STATS_BASE | NET_REQUEST_STATS_CMD_GET_PM)
791
793NET_MGMT_DEFINE_REQUEST_HANDLER(NET_REQUEST_STATS_GET_PM);
795#endif /* CONFIG_NET_STATISTICS_POWER_MANAGEMENT */
796
797#if defined(CONFIG_NET_STATISTICS_WIFI)
799#define NET_REQUEST_STATS_GET_WIFI \
800 (_NET_STATS_BASE | NET_REQUEST_STATS_CMD_GET_WIFI)
801
803NET_MGMT_DEFINE_REQUEST_HANDLER(NET_REQUEST_STATS_GET_WIFI);
807#define NET_REQUEST_STATS_RESET_WIFI \
808 (_NET_STATS_BASE | NET_REQUEST_STATS_CMD_RESET_WIFI)
809
811NET_MGMT_DEFINE_REQUEST_HANDLER(NET_REQUEST_STATS_RESET_WIFI);
813#endif /* CONFIG_NET_STATISTICS_WIFI */
814
819#ifdef __cplusplus
820}
821#endif
822
823#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:232
net_stats_t drop
Number of dropped DNS packets.
Definition net_stats.h:240
net_stats_t recv
Number of received DNS queries.
Definition net_stats.h:234
net_stats_t sent
Number of sent DNS responses.
Definition net_stats.h:237
Ethernet checksum statistics.
Definition net_stats.h:509
net_stats_t rx_csum_offload_good
Number of good RX checksum offloading.
Definition net_stats.h:511
net_stats_t rx_csum_offload_errors
Number of failed RX checksum offloading.
Definition net_stats.h:514
Ethernet error statistics.
Definition net_stats.h:430
net_stats_t tx_carrier_errors
Number of TX carrier errors.
Definition net_stats.h:468
net_stats_t uncorr_ecc_errors
Number of uncorrected ECC errors.
Definition net_stats.h:483
net_stats_t rx_long_length_errors
Number of RX long length errors.
Definition net_stats.h:450
net_stats_t tx_window_errors
Number of TX window errors.
Definition net_stats.h:477
net_stats_t corr_ecc_errors
Number of corrected ECC errors.
Definition net_stats.h:486
net_stats_t rx_missed_errors
Number of RX missed errors.
Definition net_stats.h:447
net_stats_t rx_crc_errors
Number of RX CRC errors.
Definition net_stats.h:438
net_stats_t rx_short_length_errors
Number of RX short length errors.
Definition net_stats.h:453
net_stats_t rx_align_errors
Number of RX buffer align errors.
Definition net_stats.h:456
net_stats_t rx_dma_failed
Number of RX DMA failed errors.
Definition net_stats.h:459
net_stats_t rx_no_buffer_count
Number of RX net_pkt allocation errors.
Definition net_stats.h:444
net_stats_t tx_fifo_errors
Number of TX FIFO errors.
Definition net_stats.h:471
net_stats_t rx_frame_errors
Number of RX frame errors.
Definition net_stats.h:441
net_stats_t rx_over_errors
Number of RX overrun errors.
Definition net_stats.h:435
net_stats_t tx_dma_failed
Number of TX DMA failed errors.
Definition net_stats.h:480
net_stats_t rx_length_errors
Number of RX length errors.
Definition net_stats.h:432
net_stats_t rx_buf_alloc_failed
Number of RX net_buf allocation errors.
Definition net_stats.h:462
net_stats_t tx_heartbeat_errors
Number of TX heartbeat errors.
Definition net_stats.h:474
net_stats_t tx_aborted_errors
Number of TX aborted errors.
Definition net_stats.h:465
Ethernet flow control statistics.
Definition net_stats.h:492
net_stats_t rx_flow_control_xon
Number of RX XON flow control.
Definition net_stats.h:494
net_stats_t tx_flow_control_xon
Number of TX XON flow control.
Definition net_stats.h:500
net_stats_t rx_flow_control_xoff
Number of RX XOFF flow control.
Definition net_stats.h:497
net_stats_t tx_flow_control_xoff
Number of TX XOFF flow control.
Definition net_stats.h:503
Ethernet hardware timestamp statistics.
Definition net_stats.h:520
net_stats_t tx_hwtstamp_timeouts
Number of RX hardware timestamp timeout.
Definition net_stats.h:525
net_stats_t rx_hwtstamp_cleared
Number of RX hardware timestamp cleared.
Definition net_stats.h:522
net_stats_t tx_hwtstamp_skipped
Number of RX hardware timestamp skipped.
Definition net_stats.h:528
All Ethernet specific statistics.
Definition net_stats.h:544
struct net_stats_pkts broadcast
Total number of broadcast packets received and sent.
Definition net_stats.h:552
struct net_stats_eth_csum csum
Total number of checksum errors in RX and TX.
Definition net_stats.h:567
net_stats_t tx_dropped
Total number of dropped TX packets.
Definition net_stats.h:576
struct net_stats_eth_hw_timestamp hw_timestamp
Total number of hardware timestamp errors in RX and TX.
Definition net_stats.h:570
struct net_stats_pkts multicast
Total number of multicast packets received and sent.
Definition net_stats.h:555
struct net_stats_eth_flow flow_control
Total number of flow control errors in RX and TX.
Definition net_stats.h:564
net_stats_t tx_restart_queue
Total number of TX queue restarts.
Definition net_stats.h:582
net_stats_t collisions
Total number of collisions.
Definition net_stats.h:573
struct net_stats_bytes bytes
Total number of bytes received and sent.
Definition net_stats.h:546
struct net_stats_eth_errors error_details
Total number of errors in RX and TX.
Definition net_stats.h:561
struct net_stats_pkts pkts
Total number of packets received and sent.
Definition net_stats.h:549
struct net_stats_pkts errors
Total number of errors in RX and TX.
Definition net_stats.h:558
net_stats_t tx_timeout_count
Total number of TX timeout errors.
Definition net_stats.h:579
net_stats_t unknown_protocol
Total number of RX unknown protocol packets.
Definition net_stats.h:585
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:218
net_stats_t drop
Number of dropped IPv4 IGMP packets.
Definition net_stats.h:226
net_stats_t recv
Number of received IPv4 IGMP queries.
Definition net_stats.h:220
net_stats_t sent
Number of sent IPv4 IGMP reports.
Definition net_stats.h:223
IPv6 multicast listener daemon statistics.
Definition net_stats.h:204
net_stats_t recv
Number of received IPv6 MLD queries.
Definition net_stats.h:206
net_stats_t sent
Number of sent IPv6 MLD reports.
Definition net_stats.h:209
net_stats_t drop
Number of dropped IPv6 MLD packets.
Definition net_stats.h:212
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
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:324
uint32_t last_suspend_time
How long the last suspend took.
Definition net_stats.h:330
uint32_t start_time
Network interface last suspend start time.
Definition net_stats.h:332
uint64_t overall_suspend_time
Total suspend time.
Definition net_stats.h:326
net_stats_t suspend_count
How many times we were suspended.
Definition net_stats.h:328
All PPP specific statistics.
Definition net_stats.h:596
net_stats_t chkerr
Number of received PPP frames with a bad checksum.
Definition net_stats.h:607
struct net_stats_pkts pkts
Total number of packets received and sent.
Definition net_stats.h:601
struct net_stats_bytes bytes
Total number of bytes received and sent.
Definition net_stats.h:598
net_stats_t drop
Number of received and dropped PPP frames.
Definition net_stats.h:604
Network packet receive times for calculating average RX time.
Definition net_stats.h:257
uint64_t sum
Sum of network packet receive times.
Definition net_stats.h:259
net_stats_t count
Number of network packets received.
Definition net_stats.h:262
All Wi-Fi management statistics.
Definition net_stats.h:613
net_stats_t beacons_miss
Number of missed beacons.
Definition net_stats.h:618
net_stats_t beacons_rx
Number of received beacons.
Definition net_stats.h:615
Traffic class statistics.
Definition net_stats.h:284
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:297
struct net_stats_tx_time tx_time
Helper for calculating average TX time statistics.
Definition net_stats.h:288
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:295
uint8_t priority
Priority of this traffic class.
Definition net_stats.h:299
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:246
net_stats_t count
Number of network packets transferred.
Definition net_stats.h:251
uint64_t sum
Sum of network packet transfer times.
Definition net_stats.h:248
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:624
struct net_stats_pkts broadcast
Total number of broadcast packets received and sent.
Definition net_stats.h:635
struct net_stats_pkts multicast
Total number of multicast packets received and sent.
Definition net_stats.h:638
struct net_stats_sta_mgmt sta_mgmt
Total number of beacon errors.
Definition net_stats.h:626
struct net_stats_bytes bytes
Total number of bytes received and sent.
Definition net_stats.h:629
net_stats_t overrun_count
Total number of dropped packets at received and sent.
Definition net_stats.h:647
struct net_stats_pkts pkts
Total number of packets received and sent.
Definition net_stats.h:632
struct net_stats_pkts errors
Total number of errors in RX and TX.
Definition net_stats.h:641
struct net_stats_pkts unicast
Total number of unicast packets received and sent.
Definition net_stats.h:644
All network statistics in one struct.
Definition net_stats.h:339
net_stats_t processing_error
Count of malformed packets or packets we do not have handler for.
Definition net_stats.h:341
struct net_stats_bytes bytes
This calculates amount of data transferred through all the network interfaces.
Definition net_stats.h:347
struct net_stats_ip_errors ip_errors
IP layer errors.
Definition net_stats.h:350