Dummy network interface layer module implementation. More...
#include <async.h>
#include <malloc.h>
#include <mem.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 "../../include/device.h"
#include "../../include/netif_interface.h"
#include "../../include/nil_interface.h"
#include "../../include/il_interface.h"
#include "../../structures/measured_strings.h"
#include "../../structures/packet/packet.h"
#include "../nil_module.h"
#include "nildummy.h"
Defines | |
#define | NET_DEFAULT_MTU 1500 |
Default maximum transmission unit. | |
Functions | |
int | nil_device_state_msg (int nil_phone, device_id_t device_id, int state) |
int | nil_initialize (int net_phone) |
Module initialization. | |
int | nil_received_msg (int nil_phone, device_id_t device_id, packet_t packet, services_t target) |
int | nil_message (ipc_callid_t callid, ipc_call_t *call, ipc_call_t *answer, int *answer_count) |
Message processing function. | |
Message processing functions | |
void | nildummy_receiver (ipc_callid_t iid, ipc_call_t *icall) |
Processes IPC messages from the registered device driver modules in an infinite loop. | |
int | nildummy_device_message (device_id_t device_id, services_t service, size_t mtu) |
Registers new device or updates the MTU of an existing one. | |
int | nildummy_packet_space_message (device_id_t device_id, size_t *addr_len, size_t *prefix, size_t *content, size_t *suffix) |
Returns the device packet dimensions for sending. | |
int | nildummy_register_message (services_t service, int phone) |
Registers receiving module service. | |
int | nildummy_send_message (device_id_t device_id, packet_t packet, services_t sender) |
Sends the packet queue. | |
int | nildummy_addr_message (device_id_t device_id, measured_string_ref *address) |
Returns the device hardware address. | |
Variables | |
nildummy_globals_t | nildummy_globals |
Network interface layer module global data. |
Dummy network interface layer module implementation.