Changes in uspace/srv/net/netif/lo/lo.c [ffa2c8ef:ee2fa30a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/netif/lo/lo.c
rffa2c8ef ree2fa30a 39 39 #include <stdio.h> 40 40 #include <str.h> 41 #include <ns.h> 41 42 #include <ipc/services.h> 42 43 #include <ipc/nil.h> … … 147 148 null_device_stats((device_stats_t *) (*device)->specific); 148 149 (*device)->device_id = device_id; 149 (*device)->nil_phone = -1;150 150 (*device)->state = NETIF_STOPPED; 151 151 int index = netif_device_map_add(&netif_globals.device_map, … … 164 164 int netif_initialize(void) 165 165 { 166 return async_connect_to_me(PHONE_NS, SERVICE_LO, 0, 0, NULL);166 return service_register(SERVICE_LO); 167 167 } 168 168 … … 201 201 } while (next); 202 202 203 int phone = device->nil_phone;203 async_sess_t *nil_sess = netif_globals.nil_sess; 204 204 fibril_rwlock_write_unlock(&netif_globals.lock); 205 205 206 nil_received_msg( phone, device_id, packet, sender);206 nil_received_msg(nil_sess, device_id, packet, sender); 207 207 208 208 fibril_rwlock_write_lock(&netif_globals.lock);
Note:
See TracChangeset
for help on using the changeset viewer.