lo.c File Reference

Loopback network interface implementation. More...

#include <async.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <ipc/ipc.h>
#include <ipc/services.h>
#include "../../err.h"
#include "../../messages.h"
#include "../../modules.h"
#include "../../structures/measured_strings.h"
#include "../../structures/packet/packet_client.h"
#include "../../include/device.h"
#include "../../include/nil_interface.h"
#include "../../nil/nil_messages.h"
#include "../netif.h"
#include "../netif_module.h"
Include dependency graph for lo.c:

Defines

#define DEFAULT_ADDR   "\0\0\0\0\0\0"
 Default hardware address.
#define DEFAULT_ADDR_LEN   (sizeof(DEFAULT_ADDR) / sizeof(char))
 Default address length.
#define NAME   "lo - loopback interface"
 Loopback module name.

Functions

int change_state_message (device_ref device, device_state_t state)
 Changes the loopback state.
int create (device_id_t device_id, device_ref *device)
 Creates and returns the loopback network interface structure.
void module_print_name (void)
 Prints the module name.
int netif_specific_message (ipc_callid_t callid, ipc_call_t *call, ipc_call_t *answer, int *answer_count)
 Processes the netif driver specific message.
int netif_get_addr_message (device_id_t device_id, measured_string_ref address)
 Returns the device local hardware address.
int netif_get_device_stats (device_id_t device_id, device_stats_ref stats)
 Returns the device usage statistics.
int netif_initialize (void)
 Initializes the specific module.
int netif_probe_message (device_id_t device_id, int irq, uintptr_t io)
 Probes the existence of the device.
int netif_send_message (device_id_t device_id, packet_t packet, services_t sender)
 Sends the packet queue.
int netif_start_message (device_ref device)
 Starts the device.
int netif_stop_message (device_ref device)
 Stops the device.

Variables

netif_globals_t netif_globals
 Network interface global data.

Detailed Description

Loopback network interface implementation.


Generated on Thu Mar 11 20:46:10 2010 for Networking and TCP/IP stack for HelenOS system by  doxygen 1.6.1