Subversion Repositories HelenOS

Rev

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

Rev 4704 Rev 4708
Line 335... Line 335...
335
    while( true ){
335
    while( true ){
336
//      printf( "message %d - %d\n", IPC_GET_METHOD( * icall ), NET_NIL_FIRST );
336
//      printf( "message %d - %d\n", IPC_GET_METHOD( * icall ), NET_NIL_FIRST );
337
        switch( IPC_GET_METHOD( * icall )){
337
        switch( IPC_GET_METHOD( * icall )){
338
            case NET_NIL_DEVICE_STATE:
338
            case NET_NIL_DEVICE_STATE:
339
                ERROR_CODE = nil_device_state_msg( 0, IPC_GET_DEVICE( icall ), IPC_GET_STATE( icall ));
339
                ERROR_CODE = nil_device_state_msg( 0, IPC_GET_DEVICE( icall ), IPC_GET_STATE( icall ));
340
                ipc_answer_0( iid, ERROR_CODE );
340
                ipc_answer_0( iid, ( ipcarg_t ) ERROR_CODE );
341
                break;
341
                break;
342
            case NET_NIL_RECEIVED:
342
            case NET_NIL_RECEIVED:
343
                if( ! ERROR_OCCURRED( packet_translate( nildummy_globals.net_phone, & packet, IPC_GET_PACKET( icall )))){
343
                if( ! ERROR_OCCURRED( packet_translate( nildummy_globals.net_phone, & packet, IPC_GET_PACKET( icall )))){
344
                    ERROR_CODE = nil_received_msg( 0, IPC_GET_DEVICE( icall ), packet, 0 );
344
                    ERROR_CODE = nil_received_msg( 0, IPC_GET_DEVICE( icall ), packet, 0 );
345
                }
345
                }