|
miniOS
x86_64 hobby kernel with SMP, VFS, and POSIX process model
|
#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>
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_t * | g_eth0_netdev = NULL |
| #define MINI_OS_DEBUG_NET_OBSERVE 0 |
| #define NET_OBSERVE_DEBUG_PRINT | ( | ... | ) |
|
static |


|
static |


|
static |


|
static |


|
static |


|
static |


|
static |


|
static |


|
static |


| void net_observe_init | ( | void | ) |




|
static |



