45,11 → 45,13 |
#include "../modules.h" |
|
#include "../structures/packet/packet.h" |
#include "../structures/packet/packet_client.h" |
|
#include "device.h" |
#include "netif.h" |
|
#define IPC_GET_DEVICE( call ) ( device_id_t ) IPC_GET_ARG1( * call ) |
#define IPC_GET_PACKET( call ) ( packet_id_t ) IPC_GET_ARG2( * call ) |
#define IPC_GET_IRQ( call ) ( int ) IPC_GET_ARG2( * call ) |
#define IPC_GET_IO( call ) ( int ) IPC_GET_ARG3( * call ) |
#define IPC_GET_PHONE( call ) ( int ) IPC_GET_ARG5( * call ) |
146,7 → 148,7 |
case IPC_M_CONNECT_TO_ME: |
return register_message( IPC_GET_DEVICE( call ), IPC_GET_PHONE( call )); |
case NET_NETIF_SEND: |
ERROR_PROPAGATE( packet_receive( & packet )); |
ERROR_PROPAGATE( packet_translate( netif_globals.networking_phone, & packet, IPC_GET_PACKET( call ))); |
return send_message( IPC_GET_DEVICE( call ), packet ); |
case NET_NETIF_START: |
return start_message( IPC_GET_DEVICE( call )); |
168,7 → 170,7 |
netif_globals.networking_phone = connect_to_service( SERVICE_NETWORKING ); |
device_map_initialize( & netif_globals.device_map ); |
ERROR_PROPAGATE( initialize()); |
|
ERROR_PROPAGATE( pm_init()); |
async_manager(); |
|
return EOK; |