Ignore:
Timestamp:
Feb 11, 2003, 10:58:08 PM (18 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
aba138b
Parents:
d854517
Message:

2003-02-11 Mike Siers <mikes@…>

  • rtems/rtems_glue.c: A small patch to the network daemon task code. I just added code to check the return value of the rtems_bsdnet_event_receive function. Only when this function returns a SUCCESSFUL status, will the event flags be checked. This is more of a code cleanup issue than a bug. The patch will just ensure the ipintr() and arpintr() functions are only called when a event is signaled.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libnetworking/rtems/rtems_glue.c

    rd854517 r83e36d6b  
    504504networkDaemon (void *task_argument)
    505505{
     506        rtems_status_code sc;
    506507        rtems_event_set events;
    507508        rtems_interval now;
     
    516517                else
    517518                        timeout = RTEMS_NO_TIMEOUT;
    518                 rtems_bsdnet_event_receive (NETISR_EVENTS,
     519
     520                sc = rtems_bsdnet_event_receive (NETISR_EVENTS,
    519521                                                RTEMS_EVENT_ANY | RTEMS_WAIT,
    520522                                                timeout,
    521523                                                &events);
    522                 if (events & NETISR_IP_EVENT)
    523                         ipintr ();
    524                 if (events & NETISR_ARP_EVENT)
    525                         arpintr ();
     524                if ( sc == RTEMS_SUCCESSFUL ) {
     525                        if (events & NETISR_IP_EVENT)
     526                                ipintr ();
     527                        if (events & NETISR_ARP_EVENT)
     528                                arpintr ();
     529                }
     530
    526531                rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &now);
    527532                ticksPassed = now - ticksWhenCalloutsLastChecked;
Note: See TracChangeset for help on using the changeset viewer.