Changeset 71b00dcc in mainline for uspace/srv/net/il/arp/arp_remote.c


Ignore:
Timestamp:
2010-03-07T22:51:38Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
60ab6c3
Parents:
b5cbff4 (diff), 31c80a5 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge from lp:~lukasmejdrech/helenos/network.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/il/arp/arp_remote.c

    rb5cbff4 r71b00dcc  
    5252#include "arp_messages.h"
    5353
    54 int arp_device_req( int arp_phone, device_id_t device_id, services_t protocol, services_t netif, measured_string_ref address ){
    55         aid_t                   message_id;
    56         ipcarg_t                result;
     54int arp_device_req(int arp_phone, device_id_t device_id, services_t protocol, services_t netif, measured_string_ref address){
     55        aid_t message_id;
     56        ipcarg_t result;
    5757
    58         message_id = async_send_3( arp_phone, NET_ARP_DEVICE, ( ipcarg_t ) device_id, protocol, netif, NULL );
    59         measured_strings_send( arp_phone, address, 1 );
    60         async_wait_for( message_id, & result );
    61         return ( int ) result;
     58        message_id = async_send_3(arp_phone, NET_ARP_DEVICE, (ipcarg_t) device_id, protocol, netif, NULL);
     59        measured_strings_send(arp_phone, address, 1);
     60        async_wait_for(message_id, &result);
     61        return (int) result;
    6262}
    6363
    64 int arp_translate_req( int arp_phone, device_id_t device_id, services_t protocol, measured_string_ref address, measured_string_ref * translation, char ** data ){
    65         return generic_translate_req( arp_phone, NET_ARP_TRANSLATE, device_id, protocol, address, 1, translation, data );
     64int arp_translate_req(int arp_phone, device_id_t device_id, services_t protocol, measured_string_ref address, measured_string_ref * translation, char ** data){
     65        return generic_translate_req(arp_phone, NET_ARP_TRANSLATE, device_id, protocol, address, 1, translation, data);
    6666}
    6767
    68 int arp_clear_device_req( int arp_phone, device_id_t device_id ){
    69         return ( int ) async_req_1_0( arp_phone, NET_ARP_CLEAR_DEVICE, ( ipcarg_t ) device_id );
     68int arp_clear_device_req(int arp_phone, device_id_t device_id){
     69        return (int) async_req_1_0(arp_phone, NET_ARP_CLEAR_DEVICE, (ipcarg_t) device_id);
    7070}
    7171
    72 int arp_clear_address_req( int arp_phone, device_id_t device_id, services_t protocol, measured_string_ref address ){
    73         aid_t                   message_id;
    74         ipcarg_t                result;
     72int arp_clear_address_req(int arp_phone, device_id_t device_id, services_t protocol, measured_string_ref address){
     73        aid_t message_id;
     74        ipcarg_t result;
    7575
    76         message_id = async_send_2( arp_phone, NET_ARP_CLEAR_ADDRESS, ( ipcarg_t ) device_id, protocol, NULL );
    77         measured_strings_send( arp_phone, address, 1 );
    78         async_wait_for( message_id, & result );
    79         return ( int ) result;
     76        message_id = async_send_2(arp_phone, NET_ARP_CLEAR_ADDRESS, (ipcarg_t) device_id, protocol, NULL);
     77        measured_strings_send(arp_phone, address, 1);
     78        async_wait_for(message_id, &result);
     79        return (int) result;
    8080}
    8181
    82 int arp_clean_cache_req( int arp_phone ){
    83         return ( int ) async_req_0_0( arp_phone, NET_ARP_CLEAN_CACHE );
     82int arp_clean_cache_req(int arp_phone){
     83        return (int) async_req_0_0(arp_phone, NET_ARP_CLEAN_CACHE);
    8484}
    8585
    86 int arp_connect_module( services_t service ){
    87         if( service != SERVICE_ARP ) return EINVAL;
    88         return connect_to_service( SERVICE_ARP );
     86int arp_connect_module(services_t service){
     87        if(service != SERVICE_ARP){
     88                return EINVAL;
     89        }
     90        return connect_to_service(SERVICE_ARP);
    8991}
    9092
    91 task_id_t arp_task_get_id( void ){
     93task_id_t arp_task_get_id(void){
    9294        return 0;
    9395}
Note: See TracChangeset for help on using the changeset viewer.