Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 4497 → Rev 4498

/branches/network/uspace/srv/net/netif/lo/lo.c
52,6 → 52,8
#include "../../include/nil_interface.h"
#include "../../include/net_interface.h"
 
#include "../../nil/nil_messages.h"
 
#include "../netif.h"
#include "../netif_module.h"
 
104,7 → 106,17
void module_print_name( void );
 
int netif_specific_message( ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count ){
return ENOTSUP;
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;
}
}
 
int netif_get_addr_message( device_id_t device_id, measured_string_ref address ){
188,7 → 200,7
device_ref device;
measured_string_t names[ 1 ] = {{ "MTU", 3 }};
measured_string_ref configuration;
int count = 1;
size_t count = sizeof( names ) / sizeof( measured_string_t );
char * data;
 
configuration = & names[ 0 ];