Subversion Repositories HelenOS

Rev

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

Rev 4582 Rev 4698
Line 208... Line 208...
208
            fibril_rwlock_write_lock( & netif_globals.lock );
208
            fibril_rwlock_write_lock( & netif_globals.lock );
209
            ERROR_CODE = register_message( IPC_GET_DEVICE( call ), IPC_GET_PHONE( call ));
209
            ERROR_CODE = register_message( IPC_GET_DEVICE( call ), IPC_GET_PHONE( call ));
210
            fibril_rwlock_write_unlock( & netif_globals.lock );
210
            fibril_rwlock_write_unlock( & netif_globals.lock );
211
            return ERROR_CODE;
211
            return ERROR_CODE;
212
        case NET_NETIF_SEND:
212
        case NET_NETIF_SEND:
213
        case NET_NIL_SEND:
-
 
214
            ERROR_PROPAGATE( packet_translate( netif_globals.net_phone, & packet, IPC_GET_PACKET( call )));
213
            ERROR_PROPAGATE( packet_translate( netif_globals.net_phone, & packet, IPC_GET_PACKET( call )));
215
            return netif_send_msg( 0, IPC_GET_DEVICE( call ), packet, IPC_GET_SENDER( call ));
214
            return netif_send_msg( 0, IPC_GET_DEVICE( call ), packet, IPC_GET_SENDER( call ));
216
        case NET_NETIF_START:
215
        case NET_NETIF_START:
217
            return netif_start_req( 0, IPC_GET_DEVICE( call ));
216
            return netif_start_req( 0, IPC_GET_DEVICE( call ));
218
        case NET_NETIF_STATS:
217
        case NET_NETIF_STATS:
Line 229... Line 228...
229
            fibril_rwlock_read_unlock( & netif_globals.lock );
228
            fibril_rwlock_read_unlock( & netif_globals.lock );
230
            return ERROR_CODE;
229
            return ERROR_CODE;
231
        case NET_NETIF_STOP:
230
        case NET_NETIF_STOP:
232
            return netif_stop_req( 0, IPC_GET_DEVICE( call ));
231
            return netif_stop_req( 0, IPC_GET_DEVICE( call ));
233
        case NET_NETIF_GET_ADDR:
232
        case NET_NETIF_GET_ADDR:
234
        case NET_NIL_ADDR:
-
 
235
            fibril_rwlock_read_lock( & netif_globals.lock );
233
            fibril_rwlock_read_lock( & netif_globals.lock );
236
            if( ! ERROR_OCCURRED( netif_get_addr_message( IPC_GET_DEVICE( call ), & address ))){
234
            if( ! ERROR_OCCURRED( netif_get_addr_message( IPC_GET_DEVICE( call ), & address ))){
237
                ERROR_CODE = measured_strings_reply( & address, 1 );
235
                ERROR_CODE = measured_strings_reply( & address, 1 );
238
            }
236
            }
239
            fibril_rwlock_read_unlock( & netif_globals.lock );
237
            fibril_rwlock_read_unlock( & netif_globals.lock );