Changeset 96b02eb9 in mainline for uspace/srv/net


Ignore:
Timestamp:
2010-12-14T12:52:38Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6b10dab
Parents:
554debd
Message:

more unification of basic types

  • use sysarg_t and native_t (unsigned and signed variant) in both kernel and uspace
  • remove ipcarg_t in favour of sysarg_t

(no change in functionality)

Location:
uspace/srv/net
Files:
15 edited

Legend:

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

    r554debd r96b02eb9  
    320320                /* Bind the new one */
    321321                device->phone = nil_bind_service(device->service,
    322                     (ipcarg_t) device->device_id, SERVICE_ARP,
     322                    (sysarg_t) device->device_id, SERVICE_ARP,
    323323                    arp_globals.client_connection);
    324324                if (device->phone < 0) {
  • uspace/srv/net/il/arp/arp_module.c

    r554debd r96b02eb9  
    6565int il_module_start_standalone(async_client_conn_t client_connection)
    6666{
    67         ipcarg_t phonehash;
     67        sysarg_t phonehash;
    6868        int rc;
    6969       
  • uspace/srv/net/il/ip/ip.c

    r554debd r96b02eb9  
    430430        // binds the netif service which also initializes the device
    431431        ip_netif->phone = nil_bind_service(ip_netif->service,
    432             (ipcarg_t) ip_netif->device_id, SERVICE_IP,
     432            (sysarg_t) ip_netif->device_id, SERVICE_IP,
    433433            ip_globals.client_connection);
    434434        if (ip_netif->phone < 0) {
  • uspace/srv/net/il/ip/ip_module.c

    r554debd r96b02eb9  
    6666int il_module_start_standalone(async_client_conn_t client_connection)
    6767{
    68         ipcarg_t phonehash;
     68        sysarg_t phonehash;
    6969        int rc;
    7070       
  • uspace/srv/net/net/net.c

    r554debd r96b02eb9  
    322322static int net_module_start(async_client_conn_t client_connection)
    323323{
    324         ipcarg_t phonehash;
     324        sysarg_t phonehash;
    325325        int rc;
    326326       
  • uspace/srv/net/netif/lo/lo.c

    r554debd r96b02eb9  
    164164int netif_initialize(void)
    165165{
    166         ipcarg_t phonehash;
     166        sysarg_t phonehash;
    167167
    168168        return REGISTER_ME(SERVICE_LO, &phonehash);
  • uspace/srv/net/nil/eth/eth.c

    r554debd r96b02eb9  
    251251                                    IPC_GET_DEVICE(icall), packet, 0);
    252252                        }
    253                         ipc_answer_0(iid, (ipcarg_t) rc);
     253                        ipc_answer_0(iid, (sysarg_t) rc);
    254254                        break;
    255255                default:
    256                         ipc_answer_0(iid, (ipcarg_t) ENOTSUP);
     256                        ipc_answer_0(iid, (sysarg_t) ENOTSUP);
    257257                }
    258258               
  • uspace/srv/net/nil/eth/eth_module.c

    r554debd r96b02eb9  
    5252int nil_module_start_standalone(async_client_conn_t client_connection)
    5353{
    54         ipcarg_t phonehash;
     54        sysarg_t phonehash;
    5555        int rc;
    5656       
  • uspace/srv/net/nil/nildummy/nildummy.c

    r554debd r96b02eb9  
    114114                        rc = nil_device_state_msg_local(0,
    115115                            IPC_GET_DEVICE(icall), IPC_GET_STATE(icall));
    116                         ipc_answer_0(iid, (ipcarg_t) rc);
     116                        ipc_answer_0(iid, (sysarg_t) rc);
    117117                        break;
    118118               
     
    124124                                    IPC_GET_DEVICE(icall), packet, 0);
    125125                        }
    126                         ipc_answer_0(iid, (ipcarg_t) rc);
     126                        ipc_answer_0(iid, (sysarg_t) rc);
    127127                        break;
    128128               
    129129                default:
    130                         ipc_answer_0(iid, (ipcarg_t) ENOTSUP);
     130                        ipc_answer_0(iid, (sysarg_t) ENOTSUP);
    131131                }
    132132               
  • uspace/srv/net/nil/nildummy/nildummy_module.c

    r554debd r96b02eb9  
    5252int nil_module_start_standalone(async_client_conn_t client_connection)
    5353{
    54         ipcarg_t phonehash;
     54        sysarg_t phonehash;
    5555        int rc;
    5656       
  • uspace/srv/net/tl/icmp/icmp_module.c

    r554debd r96b02eb9  
    5858int tl_module_start_standalone(async_client_conn_t client_connection)
    5959{
    60         ipcarg_t phonehash;
     60        sysarg_t phonehash;
    6161        int rc;
    6262
  • uspace/srv/net/tl/tcp/tcp.c

    r554debd r96b02eb9  
    829829        /* Notify the destination socket */
    830830        async_msg_5(socket->phone, NET_SOCKET_RECEIVED,
    831             (ipcarg_t) socket->socket_id,
     831            (sysarg_t) socket->socket_id,
    832832            ((packet_dimension->content < socket_data->data_fragment_size) ?
    833833            packet_dimension->content : socket_data->data_fragment_size), 0, 0,
    834             (ipcarg_t) fragments);
     834            (sysarg_t) fragments);
    835835
    836836        return EOK;
     
    10901090                        /* Notify the destination socket */
    10911091                        async_msg_5(socket->phone, NET_SOCKET_ACCEPTED,
    1092                             (ipcarg_t) listening_socket->socket_id,
     1092                            (sysarg_t) listening_socket->socket_id,
    10931093                            socket_data->data_fragment_size, TCP_HEADER_SIZE,
    1094                             0, (ipcarg_t) socket->socket_id);
     1094                            0, (sysarg_t) socket->socket_id);
    10951095
    10961096                        fibril_rwlock_write_unlock(socket_data->local_lock);
  • uspace/srv/net/tl/tcp/tcp_module.c

    r554debd r96b02eb9  
    6161int tl_module_start_standalone(async_client_conn_t client_connection)
    6262{
    63         ipcarg_t phonehash;
     63        sysarg_t phonehash;
    6464        int rc;
    6565
  • uspace/srv/net/tl/udp/udp.c

    r554debd r96b02eb9  
    393393        fibril_rwlock_write_unlock(&udp_globals.lock);
    394394        async_msg_5(socket->phone, NET_SOCKET_RECEIVED,
    395             (ipcarg_t) socket->socket_id, packet_dimension->content, 0, 0,
    396             (ipcarg_t) fragments);
     395            (sysarg_t) socket->socket_id, packet_dimension->content, 0, 0,
     396            (sysarg_t) fragments);
    397397
    398398        return EOK;
  • uspace/srv/net/tl/udp/udp_module.c

    r554debd r96b02eb9  
    5959int tl_module_start_standalone(async_client_conn_t client_connection)
    6060{
    61         ipcarg_t phonehash;
     61        sysarg_t phonehash;
    6262        int rc;
    6363
Note: See TracChangeset for help on using the changeset viewer.