#include "net.h"
#include <async.h>
#include <ctype.h>
#include <ddi.h>
#include <errno.h>
#include <malloc.h>
#include <stdio.h>
#include <str.h>
#include <str_error.h>
#include <ipc/services.h>
#include <ipc/net.h>
#include <ipc/net_net.h>
#include <ipc/il.h>
#include <ipc/nil.h>
#include <net/modules.h>
#include <net/packet.h>
#include <net/device.h>
#include <adt/char_map.h>
#include <adt/generic_char_map.h>
#include <adt/measured_strings.h>
#include <adt/module_map.h>
#include <netif_remote.h>
#include <nil_remote.h>
#include <net_interface.h>
#include <ip_interface.h>
Go to the source code of this file.
Defines | |
#define | BUFFER_SIZE 256 |
File read buffer size. | |
#define | NAME "net" |
Networking module name. | |
Functions | |
int | add_configuration (measured_strings_t *configuration, const uint8_t *name, const uint8_t *value) |
Add the configured setting to the configuration map. | |
static device_id_t | generate_new_device_id (void) |
Generate new system-unique device identifier. | |
int | main (int argc, char *argv[]) |
Main entry point. | |
static void | net_client_connection (ipc_callid_t iid, ipc_call_t *icall) |
Default thread for new connections. | |
void | net_free_settings (measured_string_t *settings, uint8_t *data) |
static int | net_get_conf (measured_strings_t *netif_conf, measured_string_t *configuration, size_t count, uint8_t **data) |
Return the configured values. | |
int | net_get_conf_req (int net_phone, measured_string_t **configuration, size_t count, uint8_t **data) |
int | net_get_device_conf_req (int net_phone, device_id_t device_id, measured_string_t **configuration, size_t count, uint8_t **data) |
static int | net_initialize (async_client_conn_t client_connection) |
Initialize the networking module. | |
int | net_message (ipc_callid_t callid, ipc_call_t *call, ipc_call_t *answer, size_t *answer_count) |
Process the networking message. | |
static int | net_module_start (async_client_conn_t client_connection) |
Start the networking module. | |
static int | parse_line (measured_strings_t *configuration, uint8_t *line) |
static int | read_configuration (void) |
Read the networking subsystem global configuration. | |
static int | read_configuration_file (const char *directory, const char *filename, measured_strings_t *configuration) |
static int | read_netif_configuration (const char *name, netif_t *netif) |
Read the network interface specific configuration. | |
static int | start_device (netif_t *netif) |
Start the network interface according to its configuration. | |
static int | startup (void) |
Read the configuration and start all network interfaces. | |
Variables | |
net_globals_t | net_globals |
Networking module global data. |
Definition in file net.c.