Changeset 6a44ee4 in mainline for uspace/srv/net/netif/lo/lo.c


Ignore:
Timestamp:
2011-07-20T15:26:21Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
efcebe1
Parents:
25bef0ff (diff), a701812 (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 mainline changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/netif/lo/lo.c

    r25bef0ff r6a44ee4  
    3939#include <stdio.h>
    4040#include <str.h>
     41#include <ns.h>
    4142#include <ipc/services.h>
    4243#include <ipc/nil.h>
     
    147148        null_device_stats((device_stats_t *) (*device)->specific);
    148149        (*device)->device_id = device_id;
    149         (*device)->nil_phone = -1;
    150150        (*device)->state = NETIF_STOPPED;
    151151        int index = netif_device_map_add(&netif_globals.device_map,
     
    164164int netif_initialize(void)
    165165{
    166         return async_connect_to_me(PHONE_NS, SERVICE_LO, 0, 0, NULL);
     166        return service_register(SERVICE_LO);
    167167}
    168168
     
    201201        } while (next);
    202202       
    203         int phone = device->nil_phone;
     203        async_sess_t *nil_sess = netif_globals.nil_sess;
    204204        fibril_rwlock_write_unlock(&netif_globals.lock);
    205205       
    206         nil_received_msg(phone, device_id, packet, sender);
     206        nil_received_msg(nil_sess, device_id, packet, sender);
    207207       
    208208        fibril_rwlock_write_lock(&netif_globals.lock);
Note: See TracChangeset for help on using the changeset viewer.