lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [patch #7221] Changes to init.c for NO_SYS=1


From: Bill Auerbach
Subject: [lwip-devel] [patch #7221] Changes to init.c for NO_SYS=1
Date: Mon, 14 Jun 2010 18:36:32 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 ( .NET CLR 3.5.30729)

URL:
  <http://savannah.nongnu.org/patch/?7221>

                 Summary: Changes to init.c for NO_SYS=1
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: billauerbach
            Submitted on: Mon 14 Jun 2010 02:36:31 PM EDT
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

I think the following is needed for NO_SYS=1


RCS file: /sources/lwip/lwip/src/core/init.c,v
retrieving revision 1.55
diff -u -r1.55 init.c
--- init.c      15 May 2010 17:10:08 -0000      1.55
+++ init.c      14 Jun 2010 18:31:20 -0000
@@ -145,7 +145,7 @@
   #error "One and exactly one of LWIP_EVENT_API and LWIP_CALLBACK_API has to
be enabled in your lwipopts.h"
 #endif
 /* There must be sufficient timeouts, taking into account requirements of
the subsystems. */
-#if (MEMP_NUM_SYS_TIMEOUT < (LWIP_TCP + IP_REASSEMBLY + LWIP_ARP +
(2*LWIP_DHCP) + LWIP_AUTOIP + LWIP_IGMP + LWIP_DNS + PPP_SUPPORT))
+#if (NO_SYS==0) && (MEMP_NUM_SYS_TIMEOUT < (LWIP_TCP + IP_REASSEMBLY +
LWIP_ARP + (2*LWIP_DHCP) + LWIP_AUTOIP + LWIP_IGMP + LWIP_DNS + PPP_SUPPORT))
   #error "MEMP_NUM_SYS_TIMEOUT is too low to accomodate all required
timeouts"
 #endif
 #if (IP_REASSEMBLY && (MEMP_NUM_REASSDATA > IP_REASS_MAX_PBUFS))
@@ -261,7 +261,9 @@
 
   /* Modules initialization */
   stats_init();
+#if NO_SYS==0
   sys_init();
+#endif
   mem_init();
   memp_init();
   pbuf_init();
@@ -295,5 +297,7 @@
   dns_init();
 #endif /* LWIP_DNS */
 
+#if NO_SYS==0
   sys_timeouts_init();
+#endif
 }





    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?7221>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]