miniOS
x86_64 hobby kernel with SMP, VFS, and POSIX process model
Loading...
Searching...
No Matches
net_device Struct Reference

#include <netdev.h>

Collaboration diagram for net_device:

Public Attributes

char name [8]
uint8_t mac [6]
uint16_t mtu
bool link_up
void * driver_data
net_rx_handler_t rx_handler
void * rx_handler_ctx
const netdev_ops_tops
struct { 
   uint64_t   rx_packets 
   uint64_t   rx_dropped 
   uint64_t   tx_packets 
   uint64_t   tx_dropped 
   uint64_t   rx_bytes 
   uint64_t   tx_bytes 
stats

Member Data Documentation

◆ driver_data

void* net_device::driver_data

◆ link_up

bool net_device::link_up

◆ mac

uint8_t net_device::mac[6]

◆ mtu

uint16_t net_device::mtu

◆ name

char net_device::name[8]

◆ ops

const netdev_ops_t* net_device::ops

◆ rx_bytes

uint64_t net_device::rx_bytes

◆ rx_dropped

uint64_t net_device::rx_dropped

◆ rx_handler

net_rx_handler_t net_device::rx_handler

◆ rx_handler_ctx

void* net_device::rx_handler_ctx

◆ rx_packets

uint64_t net_device::rx_packets

◆ [struct]

struct { ... } net_device::stats

◆ tx_bytes

uint64_t net_device::tx_bytes

◆ tx_dropped

uint64_t net_device::tx_dropped

◆ tx_packets

uint64_t net_device::tx_packets

The documentation for this struct was generated from the following file: