Subversion Repositories HelenOS

Rev

Rev 4498 | Rev 4696 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4498 Rev 4582
Line 35... Line 35...
35
 */
35
 */
36
 
36
 
37
#include <async.h>
37
#include <async.h>
38
#include <errno.h>
38
#include <errno.h>
39
#include <stdio.h>
39
#include <stdio.h>
-
 
40
#include <string.h>
40
 
41
 
41
#include <ipc/ipc.h>
42
#include <ipc/ipc.h>
42
#include <ipc/services.h>
43
#include <ipc/services.h>
43
 
44
 
44
#include "../../err.h"
45
#include "../../err.h"
Line 238... Line 239...
238
        (( device_stats_ref ) device->specific )->tx_bytes += length;
239
        (( device_stats_ref ) device->specific )->tx_bytes += length;
239
        (( device_stats_ref ) device->specific )->rx_bytes += length;
240
        (( device_stats_ref ) device->specific )->rx_bytes += length;
240
        next = pq_next( next );
241
        next = pq_next( next );
241
    }while( next );
242
    }while( next );
242
    phone = device->nil_phone;
243
    phone = device->nil_phone;
243
    rwlock_write_unlock( & netif_globals.lock );
244
    fibril_rwlock_write_unlock( & netif_globals.lock );
244
    nil_received_msg( phone, device_id, packet, sender );
245
    nil_received_msg( phone, device_id, packet, sender );
245
    rwlock_write_lock( & netif_globals.lock );
246
    fibril_rwlock_write_lock( & netif_globals.lock );
246
    return EOK;
247
    return EOK;
247
}
248
}
248
 
249
 
249
int netif_start_message( device_ref device ){
250
int netif_start_message( device_ref device ){
250
    return change_state_message( device, NETIF_ACTIVE );
251
    return change_state_message( device, NETIF_ACTIVE );