#include <async.h>
#include <malloc.h>
#include <mem.h>
#include <stdio.h>
#include <str.h>
#include <ipc/nil.h>
#include <ipc/net.h>
#include <ipc/services.h>
#include <net/modules.h>
#include <net/device.h>
#include <il_remote.h>
#include <adt/measured_strings.h>
#include <net/packet.h>
#include <packet_remote.h>
#include <netif_remote.h>
#include <nil_skel.h>
#include "nildummy.h"
Go to the source code of this file.
Defines | |
#define | NAME "nildummy" |
The module name. | |
#define | NET_DEFAULT_MTU 1500 |
Default maximum transmission unit. | |
Functions | |
int | main (int argc, char *argv[]) |
Main entry point. | |
int | nil_device_state_msg_local (int nil_phone, device_id_t device_id, int state) |
Notify the network interface layer about the device state change. | |
int | nil_initialize (int net_phone) |
Module initialization. | |
int | nil_module_message (ipc_callid_t callid, ipc_call_t *call, ipc_call_t *answer, size_t *answer_count) |
Message processing function. | |
int | nil_received_msg_local (int nil_phone, device_id_t device_id, packet_t *packet, services_t target) |
Pass the packet queue to the network interface layer. | |
static int | nildummy_addr_message (device_id_t device_id, measured_string_t **address) |
Return the device hardware address. | |
static int | nildummy_device_message (device_id_t device_id, services_t service, size_t mtu) |
Register new device or updates the MTU of an existing one. | |
static int | nildummy_packet_space_message (device_id_t device_id, size_t *addr_len, size_t *prefix, size_t *content, size_t *suffix) |
Return the device packet dimensions for sending. | |
static void | nildummy_receiver (ipc_callid_t iid, ipc_call_t *icall) |
Process IPC messages from the registered device driver modules. | |
static int | nildummy_register_message (services_t service, int phone) |
Register receiving module service. | |
static int | nildummy_send_message (device_id_t device_id, packet_t *packet, services_t sender) |
Send the packet queue. | |
Variables | |
nildummy_globals_t | nildummy_globals |
Network interface layer module global data. |
Definition in file nildummy.c.