#include <async.h>
#include <errno.h>
#include <stdio.h>
#include <str.h>
#include <ipc/services.h>
#include <ipc/nil.h>
#include <net/modules.h>
#include <adt/measured_strings.h>
#include <packet_client.h>
#include <net/device.h>
#include <netif_skel.h>
#include <nil_remote.h>
Go to the source code of this file.
Defines | |
#define | DEFAULT_ADDR_LEN 6 |
Default address length. | |
#define | NAME "lo" |
Loopback module name. | |
Functions | |
static void | change_state_message (netif_device_t *device, device_state_t state) |
Change the loopback state. | |
static int | lo_create (device_id_t device_id, netif_device_t **device) |
Create and return the loopback network interface structure. | |
int | main (int argc, char *argv[]) |
Main entry point. | |
int | netif_get_addr_message (device_id_t device_id, measured_string_t *address) |
Return the device local hardware address. | |
int | netif_get_device_stats (device_id_t device_id, device_stats_t *stats) |
Return the device usage statistics. | |
int | netif_initialize (void) |
Initialize the specific module. | |
int | netif_probe_message (device_id_t device_id, int irq, void *io) |
Probe the existence of the device. | |
int | netif_send_message (device_id_t device_id, packet_t *packet, services_t sender) |
Send the packet queue. | |
int | netif_specific_message (ipc_callid_t callid, ipc_call_t *call, ipc_call_t *answer, size_t *count) |
Process the netif driver specific message. | |
int | netif_start_message (netif_device_t *device) |
Start the device. | |
int | netif_stop_message (netif_device_t *device) |
Stop the device. | |
Variables | |
static uint8_t | default_addr [DEFAULT_ADDR_LEN] |
Definition in file lo.c.