|
miniOS
x86_64 hobby kernel with SMP, VFS, and POSIX process model
|
#include <miniOS/net/netdev.h>#include <miniOS/net/ethernet.h>#include <miniOS/drivers/rtl8139.h>#include <miniOS/drivers/virtio_net.h>#include <miniOS/io.h>#include <string.h>
Functions | |
| bool | ethernet_frame_info_parse (const void *frame, size_t frame_len, ethernet_frame_info_t *info_out) |
| void | net_init (void) |
| int | netdev_register (netdev_t *dev) |
| netdev_t * | netdev_first (void) |
| void | netdev_poll_all (void) |
Variables | |
| static netdev_t * | g_net_devices [NET_MAX_DEVICES] |
| static uint32_t | g_net_device_count |
| bool ethernet_frame_info_parse | ( | const void * | frame, |
| size_t | frame_len, | ||
| ethernet_frame_info_t * | info_out ) |


| void net_init | ( | void | ) |


| netdev_t * netdev_first | ( | void | ) |

| void netdev_poll_all | ( | void | ) |

| int netdev_register | ( | netdev_t * | dev | ) |


|
static |
|
static |