52,8 → 52,6 |
#include "../../include/nil_interface.h" |
#include "../../include/net_interface.h" |
|
#include "../../nil/nil_messages.h" |
|
#include "../netif.h" |
#include "../netif_module.h" |
|
106,17 → 104,7 |
void module_print_name( void ); |
|
int netif_specific_message( ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count ){ |
switch( IPC_GET_METHOD( * call )){ |
case NET_NIL_PACKET_SPACE: |
* IPC_SET_ADDR( answer ) = 0; |
* IPC_SET_PREFIX( answer ) = 0; |
* IPC_SET_CONTENT( answer ) = lo_globals.mtu; |
* IPC_SET_SUFFIX( answer ) = 0; |
* answer_count = 4; |
return EOK; |
default: |
return ENOTSUP; |
} |
return ENOTSUP; |
} |
|
int netif_get_addr_message( device_id_t device_id, measured_string_ref address ){ |
200,7 → 188,7 |
device_ref device; |
measured_string_t names[ 1 ] = {{ "MTU", 3 }}; |
measured_string_ref configuration; |
size_t count = sizeof( names ) / sizeof( measured_string_t ); |
int count = 1; |
char * data; |
|
configuration = & names[ 0 ]; |