Changeset 83e36d6b in rtems


Ignore:
Timestamp:
02/11/03 22:58:08 (20 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.
Location:
cpukit/libnetworking
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libnetworking/ChangeLog

    rd854517 r83e36d6b  
     12003-02-11      Mike Siers <mikes@poliac.com>
     2
     3        * rtems/rtems_glue.c: A small patch to the network daemon task
     4        code.  I just added code to check the return value of
     5        the rtems_bsdnet_event_receive function.  Only when
     6        this function returns a SUCCESSFUL status, will the
     7        event flags be checked.  This is more of a code cleanup issue
     8        than a bug.  The patch will just ensure the ipintr() and
     9        arpintr() functions are only called when a event is signaled.
     10
    1112003-02-11      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    212
  • 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.