miniOS
x86_64 hobby kernel with SMP, VFS, and POSIX process model
Loading...
Searching...
No Matches
net_observe.c File Reference
#include <miniOS/net/net_observe.h>
#include <miniOS/net/ethernet.h>
#include <miniOS/net/net_config.h>
#include <miniOS/fs/sysfs.h>
#include <miniOS/io.h>
#include <string.h>
Include dependency graph for net_observe.c:

Macros

#define MINI_OS_DEBUG_NET_OBSERVE   0
#define NET_OBSERVE_DEBUG_PRINT(...)

Functions

static int eth0_address_show (char *buf, uint32_t bufsiz)
static int eth0_link_state_show (char *buf, uint32_t bufsiz)
static int eth0_rx_packets_show (char *buf, uint32_t bufsiz)
static int eth0_tx_packets_show (char *buf, uint32_t bufsiz)
static int eth0_rx_dropped_show (char *buf, uint32_t bufsiz)
static int eth0_tx_dropped_show (char *buf, uint32_t bufsiz)
static int eth0_rx_bytes_show (char *buf, uint32_t bufsiz)
static int eth0_tx_bytes_show (char *buf, uint32_t bufsiz)
static int eth0_inet_addr_show (char *buf, uint32_t bufsiz)
static void net_observe_rx_handler (netdev_t *dev, const void *frame, size_t frame_len, void *ctx)
void net_observe_init (void)
int net_observe_rx (netdev_t *dev, const void *frame, size_t frame_len)
int net_observe_tx (netdev_t *dev, const void *frame, size_t frame_len)

Variables

static netdev_tg_eth0_netdev = NULL

Macro Definition Documentation

◆ MINI_OS_DEBUG_NET_OBSERVE

#define MINI_OS_DEBUG_NET_OBSERVE   0

◆ NET_OBSERVE_DEBUG_PRINT

#define NET_OBSERVE_DEBUG_PRINT ( ...)
Value:
do { } while (0)

Function Documentation

◆ eth0_address_show()

int eth0_address_show ( char * buf,
uint32_t bufsiz )
static
Here is the caller graph for this function:

◆ eth0_inet_addr_show()

int eth0_inet_addr_show ( char * buf,
uint32_t bufsiz )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ eth0_link_state_show()

int eth0_link_state_show ( char * buf,
uint32_t bufsiz )
static
Here is the caller graph for this function:

◆ eth0_rx_bytes_show()

int eth0_rx_bytes_show ( char * buf,
uint32_t bufsiz )
static
Here is the caller graph for this function:

◆ eth0_rx_dropped_show()

int eth0_rx_dropped_show ( char * buf,
uint32_t bufsiz )
static
Here is the caller graph for this function:

◆ eth0_rx_packets_show()

int eth0_rx_packets_show ( char * buf,
uint32_t bufsiz )
static
Here is the caller graph for this function:

◆ eth0_tx_bytes_show()

int eth0_tx_bytes_show ( char * buf,
uint32_t bufsiz )
static
Here is the caller graph for this function:

◆ eth0_tx_dropped_show()

int eth0_tx_dropped_show ( char * buf,
uint32_t bufsiz )
static
Here is the caller graph for this function:

◆ eth0_tx_packets_show()

int eth0_tx_packets_show ( char * buf,
uint32_t bufsiz )
static
Here is the caller graph for this function:

◆ net_observe_init()

void net_observe_init ( void )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ net_observe_rx()

int net_observe_rx ( netdev_t * dev,
const void * frame,
size_t frame_len )
Here is the caller graph for this function:

◆ net_observe_rx_handler()

void net_observe_rx_handler ( netdev_t * dev,
const void * frame,
size_t frame_len,
void * ctx )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ net_observe_tx()

int net_observe_tx ( netdev_t * dev,
const void * frame,
size_t frame_len )

Variable Documentation

◆ g_eth0_netdev

netdev_t* g_eth0_netdev = NULL
static