Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Public Struct

rtnl_link_stats

Public Struct
std.os.linux.rtnl_link_stats
pub const rtnl_link_stats = extern struct

Fields

rx_packets: u32

total packets received

tx_packets: u32

total packets transmitted

rx_bytes: u32

total bytes received

tx_bytes: u32

total bytes transmitted

rx_errors: u32

bad packets received

tx_errors: u32

packet transmit problems

rx_dropped: u32

no space in linux buffers

tx_dropped: u32

no space available in linux

multicast: u32

multicast packets received

collisions: u32
rx_length_errors: u32
rx_over_errors: u32

receiver ring buff overflow

rx_crc_errors: u32

recved pkt with crc error

rx_frame_errors: u32

recv'd frame alignment error

rx_fifo_errors: u32

recv'r fifo overrun

rx_missed_errors: u32

receiver missed packet

tx_aborted_errors: u32

detailed tx_errors

tx_carrier_errors: u32
tx_fifo_errors: u32
tx_heartbeat_errors: u32
tx_window_errors: u32
rx_compressed: u32
tx_compressed: u32
rx_nohandler: u32

dropped, no handler found

File

os/linux.zig:10166
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
pub const rtnl_link_stats = extern struct {
    /// total packets received
    rx_packets: u32,

    /// total packets transmitted
    tx_packets: u32,

    /// total bytes received
    rx_bytes: u32,

    /// total bytes transmitted
    tx_bytes: u32,

    /// bad packets received
    rx_errors: u32,

    /// packet transmit problems
    tx_errors: u32,

    /// no space in linux buffers
    rx_dropped: u32,

    /// no space available in linux
    tx_dropped: u32,

    /// multicast packets received
    multicast: u32,

    collisions: u32,

    // detailed rx_errors

    rx_length_errors: u32,

    /// receiver ring buff overflow
    rx_over_errors: u32,

    /// recved pkt with crc error
    rx_crc_errors: u32,

    /// recv'd frame alignment error
    rx_frame_errors: u32,

    /// recv'r fifo overrun
    rx_fifo_errors: u32,

    /// receiver missed packet
    rx_missed_errors: u32,

    // detailed tx_errors
    tx_aborted_errors: u32,
    tx_carrier_errors: u32,
    tx_fifo_errors: u32,
    tx_heartbeat_errors: u32,
    tx_window_errors: u32,

    // for cslip etc

    rx_compressed: u32,
    tx_compressed: u32,

    /// dropped, no handler found
    rx_nohandler: u32,
}