32 #ifdef SA_NET_INTERFACE_NAME 33 char name[SA_NET_INTERFACE_NAME];
35 #ifdef SA_NET_INTERFACE_RECEIVED_BYTES 38 #ifdef SA_NET_INTERFACE_RECEIVED_PACKETS 41 #ifdef SA_NET_INTERFACE_RECEIVED_ERRORS 44 #ifdef SA_NET_INTERFACE_RECEIVED_DROP 47 #ifdef SA_NET_INTERFACE_RECEIVED_FIFO 50 #ifdef SA_NET_INTERFACE_RECEIVED_COMPRESSED 53 #ifdef SA_NET_INTERFACE_RECEIVED_MULTICAST 56 #ifdef SA_NET_INTERFACE_SENT_BYTES 59 #ifdef SA_NET_INTERFACE_SENT_PACKETS 62 #ifdef SA_NET_INTERFACE_SENT_ERRORS 65 #ifdef SA_NET_INTERFACE_SENT_DROP 68 #ifdef SA_NET_INTERFACE_SENT_FIFO 71 #ifdef SA_NET_INTERFACE_SENT_COMPRESSED 74 #ifdef SA_NET_INTERFACE_SENT_MULTICAST uint64_t received_packets
Total number of received packets.
Definition: network.h:39
int sa_get_net_interface(char *name, struct sa_net_interface *dst) SA_EXPORT SA_NONNULL
uint64_t sent_errors
Amount of sent errors.
Definition: network.h:63
uint64_t received_fifo
The number of fifo buffer errors received.
Definition: network.h:48
uint64_t received_drop
Total number of received packets that had been dropped.
Definition: network.h:45
uint64_t sent_bytes
Total number of transmitted bytes.
Definition: network.h:57
uint64_t sent_compressed
The number of compressed packets transmitted by the device driver.
Definition: network.h:72
int sa_close_net(void) SA_EXPORT
uint64_t received_bytes
Total number of received bytes.
Definition: network.h:36
int sa_open_net(void) SA_EXPORT
uint64_t sent_multicast
Number of packets sent by link-layer multicast.
Definition: network.h:75
int sa_get_net_interfaces_ids(char *dst, uint16_t dst_size, uint16_t *written) SA_EXPORT SA_NONNULL
uint64_t received_multicast
Number of packets received which were sent by link-layer multicast.
Definition: network.h:54
uint64_t received_errors
Amount of received errors.
Definition: network.h:42
int sa_count_net_interfaces(uint16_t *number) SA_EXPORT SA_NONNULL
int sa_get_net_interfaces(struct sa_net_interface *dst, uint16_t dst_size, uint16_t *written) SA_EXPORT SA_NONNULL
uint64_t received_compressed
The number of compressed packets received by the device driver.
Definition: network.h:51
uint64_t sent_drop
Total number of sent packets that had been dropped.
Definition: network.h:66
uint64_t sent_packets
Total number of sent packets.
Definition: network.h:60
char name[SA_NET_INTERFACE_NAME]
Interface's name. It's used as the unique identifier of the interface.
Definition: network.h:33
uint64_t sent_fifo
The number of fifo buffer errors sent.
Definition: network.h:69
int sa_reset_net_interfaces() SA_EXPORT