This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

A small patch to avoid error compiling without DHCP client support


--- packages/redboot/current/src/net/net_io.c   19 Sep 2003 17:11:34 -0000      
1.35
+++ packages/redboot/current/src/net/net_io.c   6 Oct 2003 22:20:27 -0000
@@ -836,7 +836,9 @@
                 return;
             }
             mask = htonl((0xffffffff << (32-mask_len))&0xffffffff);
+#ifdef CYGSEM_REDBOOT_NETWORKING_USE_GATEWAY
             memcpy(&__local_ip_mask, &mask, 4);
+#endif
         }

         if (!_gethostbyname(ip_addr, (in_addr_t *)&host)) {
--
Niklaus Giger
Wieshoschet 6
CH-8753 Mollis
Tel. ++41 55 612 20 54 (privat)
Tel. ++41 55 618 64 68 (Geschäft)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]