Changeset 51b6226 in rtems


Ignore:
Timestamp:
Aug 1, 2007, 12:44:05 AM (13 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
eec7c441
Parents:
8661209
Message:

2007-07-31 Joel Sherrill <joel.sherrill@…>

PR 1248/networking

  • libnetworking/rtems/rtems_glue.c: Luke Stras <luke@…> reported that when no interfaces are successfully attached, the default route is broken and may result in a jump to an illegal address.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r8661209 r51b6226  
     12007-07-31      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        PR 1248/networking
     4        * libnetworking/rtems/rtems_glue.c: Luke Stras <luke@spacequest.com>
     5        reported that when no interfaces are successfully attached, the
     6        default route is broken and may result in a jump to an illegal
     7        address.
     8
    192007-07-31      Ralf Corsépius <ralf.corsepius@rtems.org>
    210
  • cpukit/libnetworking/rtems/rtems_glue.c

    r8661209 r51b6226  
    808808        struct sockaddr_in gateway;
    809809        int i;
     810        int any_if_configured = 0;
    810811
    811812        /*
     
    884885                        continue;
    885886                }
     887
     888                any_if_configured = 1;
     889
    886890                if (flags & IFF_BROADCAST) {
    887891                        memset (&broadcast, '\0', sizeof broadcast);
     
    905909         * Set default route
    906910         */
    907         if (rtems_bsdnet_config.gateway) {
     911        if (rtems_bsdnet_config.gateway && any_if_configured) {
    908912                address.sin_addr.s_addr = INADDR_ANY;
    909913                netmask.sin_addr.s_addr = INADDR_ANY;
Note: See TracChangeset for help on using the changeset viewer.