public inbox for ecos-devel@sourceware.org
 help / color / mirror / Atom feed
* [RFC 7/9] * Rationalise whitespace in ecos lwip files
@ 2013-06-27 19:22 Will Wagner
  0 siblings, 0 replies; only message in thread
From: Will Wagner @ 2013-06-27 19:22 UTC (permalink / raw)
  To: eCos development list

The is largely removing trailing whitespace but also converting some
tabs to spaces.

Signed-off-by: Andrew Parlane <andrewp@carallon.com>
Signed-off-by: Will Wagner <willw@carallon.com>
---
  packages/net/lwip_tcpip/current/cdl/lwip_net.cdl   | 436 
++++++++++-----------
  packages/net/lwip_tcpip/current/include/lwip.h     |   2 +-
  packages/net/lwip_tcpip/current/src/ecos/ppp.c     |   2 +-
  .../net/lwip_tcpip/current/src/ecos/sequential.c   |  16 +-
  packages/net/lwip_tcpip/current/src/ecos/simple.c  |  10 +-
  packages/net/lwip_tcpip/current/src/ecos/sio.c     |  38 +-
  .../net/lwip_tcpip/current/src/ecos/sys_arch.c     |  40 +-
  7 files changed, 272 insertions(+), 272 deletions(-)

diff --git a/packages/net/lwip_tcpip/current/cdl/lwip_net.cdl 
b/packages/net/lwip_tcpip/current/cdl/lwip_net.cdl
index 69fcc3d..b9b4309 100644
--- a/packages/net/lwip_tcpip/current/cdl/lwip_net.cdl
+++ b/packages/net/lwip_tcpip/current/cdl/lwip_net.cdl
@@ -37,7 +37,7 @@
  # ====================================================================
  ######DESCRIPTIONBEGIN####
  #
-# Author(s):	 Simon Kallweit
+# Author(s):     Simon Kallweit
  # Contributors:  John Dallaway
  # Date:          2008-12-01
  #
@@ -50,12 +50,12 @@ cdl_package CYGPKG_NET_LWIP {
      description     "The lightweight TCP/IP stack."
      requires        CYGPKG_ISOINFRA
      requires        CYGINT_ISO_ERRNO_CODES
-	
+
      compile         core/def.c                  \
                      core/dns.c                  \
                      core/init.c                 \
                      core/mem.c                  \
-                    core/memp.c	                \
+                    core/memp.c                 \
                      core/netif.c                \
                      core/pbuf.c                 \
                      core/raw.c                  \
@@ -82,7 +82,7 @@ cdl_package CYGPKG_NET_LWIP {
                      api/sockets.c               \
                      api/tcpip.c                 \
                      ecos/sys_arch.c
-
+
      cdl_interface CYGINT_LWIP_MODES {
          display         "Enabled lwIP modes"
          no_define
@@ -91,7 +91,7 @@ cdl_package CYGPKG_NET_LWIP {
              This interface is used to force mutually exclusive 
selection of
              the available lwIP modes."
      }
-
+
      cdl_option CYGFUN_LWIP_MODE_SIMPLE {
          display         "Simple mode"
          default_value   1
@@ -100,9 +100,9 @@ cdl_package CYGPKG_NET_LWIP {
          description     "
              lwIP stack is configured to run in a single thread. Use 
this mode
              if lwIP should run with a minimum of resources. Note that 
you can
-            only use the event based APIs in this mode."
+            only use the event based APIs in this mode."
      }
-
+
      cdl_option CYGFUN_LWIP_MODE_SEQUENTIAL {
          display         "Sequential mode"
          implements      CYGINT_LWIP_MODES
@@ -111,9 +111,9 @@ cdl_package CYGPKG_NET_LWIP {
              lwIP stack is configured to run in multiple threads. Use 
this mode
              if you can spend some more resources on lwIP and you want 
to use
              the networking stack from within other threads using the more
-            convenient netcomm and socket APIs."
+            convenient netcomm and socket APIs."
      }
-
+
      cdl_interface CYGINT_LWIP_SIO_REQUIRED {
          no_define
          display         "Items requiring lwIP serial operations"
@@ -121,14 +121,14 @@ cdl_package CYGPKG_NET_LWIP {
              Items requiring use of the lwIP serial operations code should
              implement this interface."
      }
-
+
      cdl_option CYGFUN_LWIP_SIO {
          display         "Serial operations support"
          calculated      { CYGINT_LWIP_SIO_REQUIRED > 0 }
          requires        CYGPKG_IO_SERIAL
          compile         ecos/sio.c
      }
-
+
      cdl_option CYGIMP_LWIP_ENDIAN_BY_HAL {
          display       "HAL optimized endian functions"
          flavor        bool
@@ -146,14 +146,14 @@ cdl_package CYGPKG_NET_LWIP {
          no_define
          description     "
              Configuration for Application-Programming-Interfaces."
-
+
          cdl_component CYGPKG_LWIP_RAW {
              display         "RAW support"
              flavor          bool
              default_value   1
              description     "
                  Enable application layer to hook into the IP layer 
itself."
-
+
              cdl_option CYGNUM_LWIP_RAW_TTL {
                  display         "RAW Time-To-Live"
                  flavor          data
@@ -162,7 +162,7 @@ cdl_package CYGPKG_NET_LWIP {
                      Default value for Time-To-Live used by RAW packets."
              }
          }
-
+
          cdl_component CYGPKG_LWIP_NETIF_API {
              display         "Netif support"
              flavor          bool
@@ -170,7 +170,7 @@ cdl_package CYGPKG_NET_LWIP {
              description     "
                  Support for the netif API."
          }
-
+
          cdl_component CYGPKG_LWIP_NETCONN_API {
              display         "Netconn support"
              flavor          bool
@@ -180,7 +180,7 @@ cdl_package CYGPKG_NET_LWIP {
              description     "
                  Support for the netconn API. Requires the 
\"Sequential\" mode."
          }
-
+
          cdl_component CYGPKG_LWIP_SOCKET_API {
              display         "Socket support"
              flavor          bool
@@ -190,7 +190,7 @@ cdl_package CYGPKG_NET_LWIP {
              requires        CYGPKG_LWIP_NETCONN_API
              description     "
                  Support for the socket API. Requires the 
\"Sequential\" mode."
-
+
              cdl_option CYGFUN_LWIP_COMPAT_SOCKETS {
                  display         "BSD-style sockets"
                  flavor          bool
@@ -198,7 +198,7 @@ cdl_package CYGPKG_NET_LWIP {
                  description     "
                      Enable BSD-style sockets functions names."
              }
-
+
              cdl_option CYGFUN_LWIP_POSIX_SOCKETS_IO_NAMES {
                  display         "POSIX-style sockets"
                  flavor          bool
@@ -208,7 +208,7 @@ cdl_package CYGPKG_NET_LWIP {
                      option if you use a POSIX operating system that 
uses the
                      same names (read, write & close)."
              }
-
+
              cdl_option CYGFUN_LWIP_TCP_KEEPALIVE {
                  display         "Keepalive options"
                  flavor          bool
@@ -218,7 +218,7 @@ cdl_package CYGPKG_NET_LWIP {
                      processing. Note that TCP_KEEPIDLE and 
TCP_KEEPINTVL have
                      to be set in seconds."
              }
-
+
              cdl_option CYGFUN_LWIP_SO_RCVTIMEO {
                  display         "SO_RCVTIMEO option"
                  flavor          bool
@@ -226,7 +226,7 @@ cdl_package CYGPKG_NET_LWIP {
                  description     "
                      Enable SO_RCVTIMEO processing."
              }
-
+
              cdl_option CYGFUN_LWIP_SO_RCVBUF {
                  display         "SO_RCVBUF option"
                  flavor          bool
@@ -236,14 +236,14 @@ cdl_package CYGPKG_NET_LWIP {
              }
          }
      }
-
+
      cdl_component CYGPKG_LWIP_PROTOCOLS {
          display         "Protocols"
          flavor          none
          no_define
          description     "
              Configuration options for protocols."
-
+
          cdl_component CYGPKG_LWIP_ARP {
              display         "ARP support"
              flavor          bool
@@ -251,7 +251,7 @@ cdl_package CYGPKG_NET_LWIP {
              compile         netif/etharp.c
              description     "
                  Support for ARP functionality."
-
+
              cdl_option CYGNUM_LWIP_ARP_TABLE_SIZE {
                  display         "ARP table size"
                  flavor          data
@@ -259,7 +259,7 @@ cdl_package CYGPKG_NET_LWIP {
                  description     "
                      Number of active MAC-IP address pairs cached."
              }
-
+
              cdl_option CYGFUN_LWIP_ARP_QUEUEING {
                  display         "ARP queueing"
                  flavor          bool
@@ -268,7 +268,7 @@ cdl_package CYGPKG_NET_LWIP {
                      Outgoing packets are queued during hardware address
                      resolution."
              }
-
+
              cdl_option CYGFUN_LWIP_ETHARP_TRUST_IP_MAC {
                  display         "Trust IP/MAC"
                  flavor          bool
@@ -290,7 +290,7 @@ cdl_package CYGPKG_NET_LWIP {
              no_define
              description     "
                  Configuration options for IP protocol."
-
+
              cdl_option CYGFUN_LWIP_IP_FORWARD {
                  display         "Support IP forwarding"
                  flavor          bool
@@ -300,7 +300,7 @@ cdl_package CYGPKG_NET_LWIP {
                      interfaces. If you are going to run lwIP on a 
device with
                      only one network interface, define this to 0."
              }
-
+
              cdl_option CYGFUN_LWIP_IP_OPTIONS_ALLOWED {
                  display         "Allow IP options"
                  flavor          bool
@@ -310,7 +310,7 @@ cdl_package CYGPKG_NET_LWIP {
                      0 = All packets with IP options are dropped.
                      1 = IP options are allowed (but not parsed)."
              }
-
+
              cdl_option CYGFUN_LWIP_IP_REASSEMBLY {
                  display         "Support IP reassembly"
                  flavor          bool
@@ -320,7 +320,7 @@ cdl_package CYGPKG_NET_LWIP {
                      option does not affect outgoing packet sizes, 
which can be
                      controlled via CYGFUN_LWIP_IP_FRAG."
              }
-
+
              cdl_option CYGFUN_LWIP_IP_FRAG {
                  display         "Support IP fragmentation"
                  flavor          bool
@@ -331,7 +331,7 @@ cdl_package CYGPKG_NET_LWIP {
                      sizes, which can be controlled via
                      CYGFUN_LWIP_IP_REASSEMBLY."
              }
-
+
              cdl_option CYGNUM_LWIP_IP_REASS_MAXAGE {
                  display         "Max reassembly time"
                  flavor          data
@@ -342,7 +342,7 @@ cdl_package CYGPKG_NET_LWIP {
                      arrive. If not all fragments arrived in this time, the
                      whole packet is discarded."
              }
-
+
              cdl_option CYGNUM_LWIP_IP_REASS_MAX_PBUFS {
                  display         "Max reassembly time"
                  flavor          data
@@ -356,7 +356,7 @@ cdl_package CYGPKG_NET_LWIP {
                      so that the stack is still able to receive packets 
even if
                      the maximum amount of fragments is enqueued for 
reassembly!"
              }
-
+
              cdl_option CYGFUN_LWIP_IP_FRAG_USES_STATIC_BUF {
                  display         "Use static buffer for IP fragmentation"
                  flavor          bool
@@ -366,7 +366,7 @@ cdl_package CYGPKG_NET_LWIP {
                      Otherwise pbufs are allocated and reference the 
original
                      packet data to be fragmented."
              }
-
+
              cdl_option CYGNUM_LWIP_IP_FRAG_MAX_MTU {
                  display         "Max MTU size"
                  flavor          data
@@ -375,7 +375,7 @@ cdl_package CYGPKG_NET_LWIP {
                  description     "
                      Assumed max MTU on any interface for IP frag buffer."
              }
-
+
              cdl_option CYGNUM_LWIP_IP_DEFAULT_TTL {
                  display         "Default Time-To-Live"
                  flavor          data
@@ -383,7 +383,7 @@ cdl_package CYGPKG_NET_LWIP {
                  description     "
                      Default value for Time-To-Live used by transport 
layers."
              }
-
+
              cdl_component CYGFUN_LWIP_IP_SOF_BROADCAST {
                  display         "Support broadcast filter"
                  flavor          bool
@@ -393,7 +393,7 @@ cdl_package CYGPKG_NET_LWIP {
                      per pcb on udp and raw send operations. To enable
                      broadcast filter on recv operations, you also have 
to set
                      IP_SOF_BROADCAST_RECV=1."
-
+
                  cdl_option CYGFUN_LWIP_IP_SOF_BROADCAST_RECV {
                      display         "Receive support"
                      flavor          bool
@@ -404,7 +404,7 @@ cdl_package CYGPKG_NET_LWIP {
                  }
              }
          }
-
+
          cdl_component CYGPKG_LWIP_ICMP {
              display         "ICMP support"
              flavor          bool
@@ -412,7 +412,7 @@ cdl_package CYGPKG_NET_LWIP {
              description     "
                  Support for ICMP functionality. Be careful, disabling this
                  makes your product non-compliant to RFC1122."
-
+
              cdl_option CYGNUM_LWIP_ICMP_TTL {
                  display         "ICMP Time-To-Live"
                  flavor          data
@@ -420,7 +420,7 @@ cdl_package CYGPKG_NET_LWIP {
                  description     "
                      Default value for Time-To-Live used by ICMP packets."
              }
-
+
              cdl_option CYGFUN_LWIP_BROADCAST_PING {
                  display         "Respond broadcast pings"
                  flavor          bool
@@ -428,7 +428,7 @@ cdl_package CYGPKG_NET_LWIP {
                  description     "
                      Respond to broadcast pings (default is unicast only)."
              }
-
+
              cdl_option CYGFUN_LWIP_MULTICAST_PING {
                  display         "Respond multicast pings"
                  flavor          bool
@@ -437,7 +437,7 @@ cdl_package CYGPKG_NET_LWIP {
                      Respond to multicast pings (default is unicast only)."
              }
          }
-
+
          cdl_component CYGPKG_LWIP_IGMP {
              display         "IGMP support"
              flavor          bool
@@ -445,7 +445,7 @@ cdl_package CYGPKG_NET_LWIP {
              description     "
                  Support for IGMP functionality."
          }
-
+
          cdl_component CYGPKG_LWIP_UDP {
              display         "UDP support"
              flavor          bool
@@ -453,7 +453,7 @@ cdl_package CYGPKG_NET_LWIP {
              requires        CYGPKG_LWIP_IP
              description     "
                  Support for UDP functionality."
-
+
              cdl_option CYGFUN_LWIP_UDPLITE {
                  display         "UDP lite"
                  flavor          bool
@@ -461,7 +461,7 @@ cdl_package CYGPKG_NET_LWIP {
                  description     "
                      Enable UDP lite."
              }
-
+
              cdl_option CYGNUM_LWIP_UDP_TTL {
                  display         "UDP Time-To-Live"
                  flavor          data
@@ -470,7 +470,7 @@ cdl_package CYGPKG_NET_LWIP {
                      Default value for Time-To-Live used by UDP packets."
              }
          }
-
+
          cdl_component CYGPKG_LWIP_TCP {
              display         "TCP support"
              flavor          bool
@@ -478,7 +478,7 @@ cdl_package CYGPKG_NET_LWIP {
              requires        CYGPKG_LWIP_IP
              description     "
                  Support for TCP functionality."
-
+
              cdl_option CYGNUM_LWIP_TCP_TTL {
                  display         "TCP Time-To-Live"
                  flavor          data
@@ -486,7 +486,7 @@ cdl_package CYGPKG_NET_LWIP {
                  description     "
                      Default value for Time-To-Live used by TCP packets."
              }
-
+
              cdl_option CYGNUM_LWIP_TCP_WND {
                  display         "Receive window"
                  flavor          data
@@ -497,7 +497,7 @@ cdl_package CYGPKG_NET_LWIP {
                      The size of a TCP window. This must be at least
                      (2 * TCP_MSS) for things to work well."
              }
-
+
              cdl_option CYGNUM_LWIP_TCP_MAXRTX {
                  display         "Segment retransmissions"
                  flavor          data
@@ -505,7 +505,7 @@ cdl_package CYGPKG_NET_LWIP {
                  description     "
                       Maximum number of retransmissions of data segments."
              }
-
+
              cdl_option CYGNUM_LWIP_TCP_SYNMAXRTX {
                  display         "Syn retransmissions"
                  flavor          data
@@ -513,7 +513,7 @@ cdl_package CYGPKG_NET_LWIP {
                  description     "
                      Maximum number of retransmissions of SYN segments."
              }
-
+
              cdl_option CYGFUN_LWIP_TCP_QUEUE_OOSEQ {
                  display         "Queue segments"
                  flavor          bool
@@ -522,7 +522,7 @@ cdl_package CYGPKG_NET_LWIP {
                      TCP will queue segments that arrive out of order. 
Define
                      to 0 if your device is low on memory."
              }
-
+
              cdl_option CYGNUM_LWIP_TCP_MSS {
                  display         "Maximum segment size"
                  flavor          data
@@ -534,7 +534,7 @@ cdl_package CYGPKG_NET_LWIP {
                      For the transmit size, this MSS sets an upper 
limit on the
                      MSS advertised by the remote host."
              }
-
+
              cdl_option CYGFUN_LWIP_TCP_CALCULATE_EFF_SEND_MSS {
                  display         "Calculate effective MSS"
                  flavor          bool
@@ -547,9 +547,9 @@ cdl_package CYGPKG_NET_LWIP {
                      layer\" (RFC 1122) Setting this to 1 enables code that
                      checks TCP_MSS against the MTU of the netif used for a
                      connection and limits the MSS if it would be too big
-                    otherwise."
+                    otherwise."
              }
-
+
              cdl_option CYGNUM_LWIP_TCP_SND_BUF {
                  display         "Sender buffer space"
                  flavor          data
@@ -559,7 +559,7 @@ cdl_package CYGPKG_NET_LWIP {
                  description     "
                      TCP sender buffer space (bytes)."
              }
-
+
              cdl_option CYGNUM_LWIP_TCP_SND_QUEUELEN {
                  display         "Sender pbufs"
                  flavor          data
@@ -568,7 +568,7 @@ cdl_package CYGPKG_NET_LWIP {
                      TCP sender buffer space (pbufs). This must be at 
least as
                      much as (2 * TCP_SND_BUF/TCP_MSS) for things to work."
              }
-
+
              cdl_option CYGNUM_LWIP_TCP_SNDLOWAT {
                  display         "TCP writeable space"
                  flavor          data
@@ -578,17 +578,17 @@ cdl_package CYGPKG_NET_LWIP {
                      to TCP_SND_BUF. It is the amount of space which 
must be
                      available in the TCP snd_buf for select to return 
writable."
              }
-
+
              cdl_option CYGNUM_LWIP_TCP_SNDQUEUELOWAT {
                  display         "TCP writeable space"
                  flavor          data
                  default_value   { ((CYGNUM_LWIP_TCP_SND_QUEUELEN / 2) 
 > 5) ? (CYGNUM_LWIP_TCP_SND_QUEUELEN / 2) : 5 }
                  description     "
-                    TCP writable space (bytes). This must be less than
+                    TCP writable space (bytes). This must be less than
                      TCP_SND_QUEUELEN. It is the amount of pbufs which must
                      be available in the TCP snd_queue for select to 
return writable."
              }
-
+
              cdl_option CYGFUN_LWIP_TCP_LISTEN_BACKLOG {
                  display         "Listen backlog"
                  flavor          bool
@@ -596,7 +596,7 @@ cdl_package CYGPKG_NET_LWIP {
                  description     "
                      Enable the backlog option for tcp listen pcb."
              }
-
+
              cdl_option CYGNUM_LWIP_TCP_DEFAULT_LISTEN_BACKLOG {
                  display         "Maximum listen backlog"
                  flavor          data
@@ -606,7 +606,7 @@ cdl_package CYGPKG_NET_LWIP {
                  description     "
                      The maximum allowed backlog for TCP listen netconns."
              }
-
+
              cdl_option CYGFUN_LWIP_TCP_TIMESTAMPS {
                  display         "TCP timestamp"
                  flavor          bool
@@ -614,7 +614,7 @@ cdl_package CYGPKG_NET_LWIP {
                  description     "
                      Support the TCP timestamp option."
              }
-
+
              cdl_option CYGNUM_LWIP_TCP_WND_UPDATE_THRESHOLD {
                  display         "Update threshold"
                  flavor          bool
@@ -622,7 +622,7 @@ cdl_package CYGPKG_NET_LWIP {
                  description     "
                      Difference in window to trigger an explicit window 
update."
              }
-
+
              cdl_option CYGFUN_LWIP_EVENT_API {
                  display         "Event API"
                  flavor          bool
@@ -632,7 +632,7 @@ cdl_package CYGPKG_NET_LWIP {
                      The user defines lwip_tcp_event() to receive all 
events
                      (accept, sent, etc) that happen in the system."
              }
-
+
              cdl_option CYGFUN_LWIP_CALLBACK_API {
                  display         "Callback API"
                  flavor          bool
@@ -641,8 +641,8 @@ cdl_package CYGPKG_NET_LWIP {
                  description     "
                      The PCB callback function is called directly for 
the event."
              }
-        }
-
+        }
+
          cdl_component CYGPKG_LWIP_DHCP {
              display         "DHCP support"
              flavor          bool
@@ -651,7 +651,7 @@ cdl_package CYGPKG_NET_LWIP {
              compile         core/dhcp.c
              description "
                  Support for DHCP functionality."
-
+
              cdl_option CYGFUN_LWIP_DHCP_DOES_ARP_CHECK {
                  display         "Check offered address"
                  flavor          bool
@@ -661,7 +661,7 @@ cdl_package CYGPKG_NET_LWIP {
                      Do an ARP check on the offered address."
              }
          }
-
+
          cdl_component CYGPKG_LWIP_AUTOIP {
              display         "AUTOIP support"
              flavor          bool
@@ -671,7 +671,7 @@ cdl_package CYGPKG_NET_LWIP {
              compile         core/ipv4/autoip.c
              description "
                  Support for AUTOIP functionality."
-
+
              cdl_option CYGFUN_LWIP_DHCP_AUTOIP_COOP {
                  display         "Simultaneous AUTOIP/DHCP"
                  flavor          bool
@@ -681,7 +681,7 @@ cdl_package CYGPKG_NET_LWIP {
                      Allow DHCP and AUTOIP to be both enabled on the same
                      interface at the same time."
              }
-
+
              cdl_option CYGNUM_LWIP_DHCP_AUTOIP_COOP_TRIES {
                  display         "DHCP retries before AUTOIP"
                  flavor          data
@@ -696,7 +696,7 @@ cdl_package CYGPKG_NET_LWIP {
                      overrides AutoIP."
              }
          }
-
+
          cdl_component CYGPKG_LWIP_SNMP {
              display         "SNMP support"
              flavor          bool
@@ -710,16 +710,16 @@ cdl_package CYGPKG_NET_LWIP {
                              core/snmp/msg_out.c
              description "
                  Support for SNMP functionality."
-
+
              cdl_option CYGNUM_LWIP_SNMP_CONCURRENT_REQUESTS {
                  display         "Concurrent requests"
                  flavor          data
                  default_value   1
                  description     "
                      Number of concurrent requests the module will 
allow. At
-                    least one request buffer is required."
+                    least one request buffer is required."
              }
-
+
              cdl_option CYGNUM_LWIP_SNMP_TRAP_DESTINATIONS {
                  display         "Trap destinations"
                  flavor          data
@@ -728,14 +728,14 @@ cdl_package CYGPKG_NET_LWIP {
                      Number of trap destinations. At least one trap 
destination
                      is required."
              }
-
+
              cdl_option CYGFUN_LWIP_SNMP_PRIVATE_MIB {
                  display         "Private MIB"
                  flavor          bool
                  default_value   0
                  description     ""
              }
-
+
              cdl_option CYGFUN_LWIP_SNMP_SAFE_REQUESTS {
                  display         "Safe requests"
                  flavor          bool
@@ -747,7 +747,7 @@ cdl_package CYGPKG_NET_LWIP {
                      default!"
              }
          }
-
+
          cdl_component CYGPKG_LWIP_DNS {
              display         "DNS support"
              flavor          bool
@@ -755,7 +755,7 @@ cdl_package CYGPKG_NET_LWIP {
              requires        CYGPKG_LWIP_UDP
              description     "
                  Support for DNS functionality."
-
+
              cdl_option CYGNUM_LWIP_DNS_TABLE_SIZE {
                  display         "Table size"
                  flavor          data
@@ -763,7 +763,7 @@ cdl_package CYGPKG_NET_LWIP {
                  description     "
                      DNS maximum number of entries to maintain locally."
              }
-
+
              cdl_option CYGNUM_LWIP_DNS_MAX_NAME_LENGTH {
                  display         "Host name size"
                  flavor          data
@@ -771,7 +771,7 @@ cdl_package CYGPKG_NET_LWIP {
                  description     "
                      DNS maximum host name length supported in the name 
table."
              }
-
+
              cdl_option CYGNUM_LWIP_DNS_MAX_SERVERS {
                  display         "DNS servers"
                  flavor          data
@@ -779,7 +779,7 @@ cdl_package CYGPKG_NET_LWIP {
                  description     "
                      The maximum of DNS servers."
              }
-
+
              cdl_option CYGFUN_LWIP_DNS_DOES_NAME_CHECK {
                  display         "Name checking"
                  flavor          bool
@@ -787,7 +787,7 @@ cdl_package CYGPKG_NET_LWIP {
                  description     "
                      DNS do a name checking between the query and the 
response."
              }
-
+
              cdl_option CYGNUM_LWIP_DNS_USES_STATIC_BUF {
                  display         "Static buffer"
                  flavor          data
@@ -799,7 +799,7 @@ cdl_package CYGPKG_NET_LWIP {
                      DNS_USES_STATIC_BUF=2. The buffer will be of size
                      DNS_MSG_SIZE."
              }
-
+
              cdl_option CYGNUM_LWIP_DNS_MSG_SIZE {
                  display         "Message size"
                  flavor          data
@@ -807,14 +807,14 @@ cdl_package CYGPKG_NET_LWIP {
                  description     "
                      DNS message max. size. Default value is RFC 
compliant."
              }
-
+
              cdl_component CYGPKG_LWIP_DNS_LOCAL_HOSTLIST {
                  display         "Local host list"
                  flavor          bool
                  default_value   0
                  description     "
                      Support for a local host-to-address list."
-
+
                  cdl_option CYGDAT_LWIP_DNS_LOCAL_HOSTLIST_INIT {
                      display         "Host list"
                      flavor          data
@@ -824,7 +824,7 @@ cdl_package CYGPKG_NET_LWIP {
                          An array of structs name/address, where 
address is an
                          u32_t in network byte order."
                  }
-
+
                  cdl_option CYGFUN_LWIP_DNS_LOCAL_HOSTLIST_IS_DYNAMIC {
                      display         "Dynamic host list"
                      flavor          bool
@@ -836,7 +836,7 @@ cdl_package CYGPKG_NET_LWIP {
              }
          }
      }
-
+
      cdl_component CYGPKG_LWIP_INTERFACES {
          display         "Interfaces"
          flavor          none
@@ -844,7 +844,7 @@ cdl_package CYGPKG_NET_LWIP {
          description     "
              Configuration options for support of different network 
interface
              devices."
-
+
          cdl_interface CYGPKG_LWIP_NETIF_DEFAULT {
              display         "Items claiming default network interface 
status"
              flavor          data
@@ -856,14 +856,14 @@ cdl_package CYGPKG_NET_LWIP {
                  Only one networking interface can claim default networking
                  interface status."
          }
-
+
          cdl_component CYGPKG_LWIP_NETIF {
              display         "Netif options"
              flavor          none
              no_define
              description     "
                  Configuration options for netif."
-
+
              cdl_option CYGIMP_LWIP_NETIF_HOSTNAME {
                  display         "Hostname support"
                  flavor          bool
@@ -872,7 +872,7 @@ cdl_package CYGPKG_NET_LWIP {
                      Adds a 'hostname' field to the netif structure and 
enables
                      support for retrieving the hostname via DHCP."
              }
-
+
              cdl_option CYGFUN_LWIP_NETIF_STATUS_CALLBACK {
                  display         "Status callback"
                  flavor          bool
@@ -881,7 +881,7 @@ cdl_package CYGPKG_NET_LWIP {
                      Support a callback function whenever an interface 
changes
                      its up/down status (i.e., due to DHCP IP acquistion)."
              }
-
+
              cdl_option CYGFUN_LWIP_NETIF_LINK_CALLBACK {
                  display         "Link callback"
                  flavor          bool
@@ -890,7 +890,7 @@ cdl_package CYGPKG_NET_LWIP {
                      Support a callback function from an interface 
whenever the
                      link changes (i.e., link down)."
              }
-
+
              cdl_option CYGIMP_LWIP_NETIF_HWADDRHINT {
                  display         "Cache link-layer-address hints"
                  flavor          bool
@@ -903,7 +903,7 @@ cdl_package CYGPKG_NET_LWIP {
                      it might be counterproductive if you have a tiny 
ARP table
                      or if there never are concurrent connections."
              }
-
+
              cdl_component CYGIMP_LWIP_NETIF_LOOPBACK {
                  display         "Loopback support"
                  flavor          bool
@@ -911,7 +911,7 @@ cdl_package CYGPKG_NET_LWIP {
                  description     "
                      Support sending packets with a destination IP 
address equal
                      to the netif IP address, looping them back up the 
stack."
-
+
                  cdl_option CYGNUM_LWIP_NETIF_LOOPBACK_MAX_PBUFS {
                      display         "PBUF queue length"
                      flavor          data
@@ -932,10 +932,10 @@ cdl_package CYGPKG_NET_LWIP {
              default_value   CYGPKG_IO_ETH_DRIVERS
              description     "
                  Support for ethernet devices"
-
+
              # Support static configuration of up to 4 interfaces
              for { set ::channel 0 } { $::channel < 4 } { incr 
::channel } {
-
+
                  cdl_component CYGPKG_LWIP_ETH[set ::channel]_CONF {
                      display         "eth[set ::channel] configuration"
                      flavor          bool
@@ -988,7 +988,7 @@ cdl_package CYGPKG_NET_LWIP {
                              description     "
                                  The netmask of the local network."
                          }
-
+
                          cdl_option CYGDAT_LWIP_ETH[set 
::channel]_NETCONF_GATEWAY {
                              display         "Gateway"
                              flavor          data
@@ -1000,7 +1000,7 @@ cdl_package CYGPKG_NET_LWIP {
                  }
              }
          }
-
+
          cdl_component CYGPKG_LWIP_LOOPIF {
              display         "Loop interface support"
              flavor          bool
@@ -1017,7 +1017,7 @@ cdl_package CYGPKG_NET_LWIP {
              compile         netif/slipif.c
              description     "
                  Support SLIP functionality."
-
+
              cdl_option CYGDAT_LWIP_SLIPIF_DEV {
                  display         "Serial device"
                  flavor          data
@@ -1025,7 +1025,7 @@ cdl_package CYGPKG_NET_LWIP {
                  description     "
                      Serial port to use for SLIP."
              }
-
+
              cdl_component CYGIMP_LWIP_SLIPIF_INSTANCE {
                  display         "Default instance"
                  flavor          bool
@@ -1033,7 +1033,7 @@ cdl_package CYGPKG_NET_LWIP {
                  description     "
                      When enabled, a default loop interface is 
automatically
                      set up."
-
+
                  cdl_option CYGDAT_LWIP_SLIPIF_DEFAULT {
                      display         "Default netif"
                      flavor          bool
@@ -1042,7 +1042,7 @@ cdl_package CYGPKG_NET_LWIP {
                      description     "
                          Use this interface as the default network 
interface."
                  }
-
+
                  cdl_option CYGDAT_LWIP_SLIPIF_ADDR {
                      display         "Address"
                      flavor          data
@@ -1050,7 +1050,7 @@ cdl_package CYGPKG_NET_LWIP {
                      description     "
                          The IPÂ address of this device."
                  }
-
+
                  cdl_option CYGDAT_LWIP_SLIPIF_NETMASK {
                      display         "Netmask"
                      flavor          data
@@ -1058,7 +1058,7 @@ cdl_package CYGPKG_NET_LWIP {
                      description     "
                          The netmask of the local network."
                  }
-
+
                  cdl_option CYGDAT_LWIP_SLIPIF_GATEWAY {
                      display         "Gateway"
                      flavor          data
@@ -1068,7 +1068,7 @@ cdl_package CYGPKG_NET_LWIP {
                  }
              }
          }
-
+
          cdl_component CYGPKG_LWIP_PPP {
              display         "PPP support (experimental)"
              flavor          bool
@@ -1091,7 +1091,7 @@ cdl_package CYGPKG_NET_LWIP {
                  Support PPP functionality. Current PPP support is marked
                  experimental as it is subject to change for alignment 
to the
                  PPP API of the upcoming lwIP 1.4.x releases."
-
+
              cdl_option CYGFUN_LWIP_PPPOE_SUPPORT {
                  display         "PPPoE support"
                  flavor          bool
@@ -1099,7 +1099,7 @@ cdl_package CYGPKG_NET_LWIP {
                  description     "
                      Enable PPP Over Ethernet."
              }
-
+
              cdl_option CYGFUN_LWIP_PPPOS_SUPPORT {
                  display         "PPPoS support"
                  flavor          bool
@@ -1108,7 +1108,7 @@ cdl_package CYGPKG_NET_LWIP {
                  description     "
                      Enable PPP Over Serial."
              }
-
+
              cdl_option CYGDAT_LWIP_PPPOS_DEV {
                  display         "Serial device"
                  flavor          data
@@ -1117,7 +1117,7 @@ cdl_package CYGPKG_NET_LWIP {
                  description     "
                      Serial port to use for PPPoS."
              }
-
+
              cdl_option CYGNUM_LWIP_NUM_PPP {
                  display         "Max sessions"
                  flavor          data
@@ -1125,7 +1125,7 @@ cdl_package CYGPKG_NET_LWIP {
                  description     "
                      Max PPP sessions."
              }
-
+
              cdl_option CYGFUN_LWIP_PAP_SUPPORT {
                  display         "PAP support"
                  flavor          bool
@@ -1133,7 +1133,7 @@ cdl_package CYGPKG_NET_LWIP {
                  description     "
                      Enable PAP support."
              }
-
+
              cdl_option CYGFUN_LWIP_CHAP_SUPPORT {
                  display         "CHAP support"
                  flavor          bool
@@ -1141,7 +1141,7 @@ cdl_package CYGPKG_NET_LWIP {
                  description     "
                      Enable CHAP support."
              }
-
+
              cdl_option CYGFUN_LWIP_VJ_SUPPORT {
                  display         "VJ support"
                  flavor          bool
@@ -1149,7 +1149,7 @@ cdl_package CYGPKG_NET_LWIP {
                  description     "
                      Support VJ header compression."
              }
-
+
              cdl_option CYGFUN_LWIP_MD5_SUPPORT {
                  display         "MD5 support"
                  flavor          bool
@@ -1157,7 +1157,7 @@ cdl_package CYGPKG_NET_LWIP {
                  description     "
                      Support MD5 (see also CHAP)."
              }
-
+
              cdl_option CYGFUN_LWIP_RECORD_SUPPORT {
                  display         "Recording support"
                  flavor          bool
@@ -1167,14 +1167,14 @@ cdl_package CYGPKG_NET_LWIP {
              }
          }
      }
-
+
      cdl_component CYGPKG_LWIP_MEM_OPTIONS {
          display         "Memory options"
          flavor          none
          no_define
          description     "
              Tunables for various aspects of memory usage throughout 
the stack."
-
+
          cdl_option CYGIMP_LWIP_MEM_LIBC_MALLOC {
              display         "Use malloc for internal allocations"
              flavor          bool
@@ -1185,7 +1185,7 @@ cdl_package CYGPKG_NET_LWIP {
                  the lwip internal allocator. Can save code size if you 
already
                  use it."
          }
-
+
          cdl_option CYGIMP_LWIP_MEMP_MEM_MALLOC {
              display         "Use malloc for pool allocations"
              flavor          bool
@@ -1195,7 +1195,7 @@ cdl_package CYGPKG_NET_LWIP {
                  Especially useful with MEM_LIBC_MALLOC but handle with 
care
                  regarding execution speed and usage from interrupts!"
          }
-
+
          cdl_option CYGNUM_LWIP_MEM_ALIGNMENT {
              display         "Memory alignment"
              flavor          data
@@ -1203,7 +1203,7 @@ cdl_package CYGPKG_NET_LWIP {
              description     "
                  Should be set to the alignment of the CPU."
          }
-
+
          cdl_option CYGNUM_LWIP_MEM_SIZE {
              display         "Memory size"
              flavor          data
@@ -1212,7 +1212,7 @@ cdl_package CYGPKG_NET_LWIP {
                  The size of the heap memory. If the application will 
send a lot
                  of data that needs to be copied, this should be set high."
          }
-
+
          cdl_option CYGDBG_LWIP_MEMP_OVERFLOW_CHECK {
              display         "Memory pool overflow protection"
              flavor          data
@@ -1227,7 +1227,7 @@ cdl_package CYGPKG_NET_LWIP {
                  every time memp_malloc() or memp_free() is called
                  (useful but slow!)"
          }
-
+
          cdl_option CYGDBG_LWIP_MEMP_SANITY_CHECK {
              display         "Memory pool sanity check"
              flavor          bool
@@ -1236,7 +1236,7 @@ cdl_package CYGPKG_NET_LWIP {
                  Run a sanity check after each memp_free() to make sure 
that
                  there are no cycles in the linked lists."
          }
-
+
          cdl_option CYGNUM_LWIP_MEMP_NUM_PBUF {
              display         "Number of memp struct pbufs"
              flavor          data
@@ -1246,7 +1246,7 @@ cdl_package CYGPKG_NET_LWIP {
                   PBUF_REF). If the application sends a lot of data out 
of ROM
                   (or other static memory), this should be set high."
          }
-
+
          cdl_option CYGNUM_LWIP_MEMP_NUM_TCP_PCB {
              display         "Simultaneous active TCP connections"
              flavor          data
@@ -1255,7 +1255,7 @@ cdl_package CYGPKG_NET_LWIP {
              description     "
                  The number of simulatenously active TCP connections."
          }
-
+
          cdl_option CYGNUM_LWIP_MEMP_NUM_TCP_PCB_LISTEN {
              display         "Listening TCP connections"
              flavor          data
@@ -1264,7 +1264,7 @@ cdl_package CYGPKG_NET_LWIP {
              description     "
                  The number of listening TCP connections."
          }
-
+
          cdl_option CYGNUM_LWIP_MEMP_NUM_TCP_SEG {
              display         "Simultaneous queued TCP segments"
              flavor          data
@@ -1273,7 +1273,7 @@ cdl_package CYGPKG_NET_LWIP {
              description     "
                  The number of simultaneously queued TCP segments."
          }
-
+
          cdl_option CYGNUM_LWIP_MEMP_NUM_REASSDATA {
              display         "Simultaneous queued IP packets for 
reassembly"
              flavor          data
@@ -1283,7 +1283,7 @@ cdl_package CYGPKG_NET_LWIP {
                  The number of simultaneously IP packets queued for 
reassembly
                  (whole packets, not fragments!)."
          }
-
+
          cdl_option CYGNUM_LWIP_MEMP_NUM_ARP_QUEUE {
              display         "Simultaneous queued ARP requests"
              flavor          data
@@ -1294,7 +1294,7 @@ cdl_package CYGPKG_NET_LWIP {
                  that are waiting for an ARP request (to resolve their
                  destination address) to finish."
          }
-
+
          cdl_option CYGNUM_LWIP_MEMP_NUM_IGMP_GROUP {
              display         "Multicast groups"
              flavor          data
@@ -1305,7 +1305,7 @@ cdl_package CYGPKG_NET_LWIP {
                  members et the same time (one per netif - allsystems 
group -,
                  plus one per netif membership)."
          }
-
+
          cdl_option CYGNUM_LWIP_MEMP_NUM_CORE_SYS_TIMEOUT {
              display         "Simultaneous active timeouts by core modules"
              flavor          data
@@ -1317,7 +1317,7 @@ cdl_package CYGPKG_NET_LWIP {
                  The number of simulateously active timeouts used by 
the lwIP
                  core modules."
          }
-
+
          cdl_option CYGNUM_LWIP_MEMP_NUM_USER_SYS_TIMEOUT {
              display         "Simultaneous active timeouts by user modules"
              flavor          data
@@ -1326,50 +1326,50 @@ cdl_package CYGPKG_NET_LWIP {
                  The number of simulateously active timeouts used by user
                  modules."
          }
-
+
          cdl_option CYGNUM_LWIP_MEMP_NUM_NETBUF {
              display         "Struct netbufs"
              flavor          data
              default_value   2
-            active_if       { CYGFUN_LWIP_MODE_SEQUENTIAL &&
+            active_if       { CYGFUN_LWIP_MODE_SEQUENTIAL &&
                                CYGPKG_LWIP_NETCONN_API }
              description     "
                 The number of struct netbufs. (only needed if you use the
                 sequential API, like api_lib.c)"
          }
-
+
          cdl_option CYGNUM_LWIP_MEMP_NUM_NETCONN {
              display         "Struct netconns"
              flavor          data
              default_value   4
-            active_if       { CYGFUN_LWIP_MODE_SEQUENTIAL &&
+            active_if       { CYGFUN_LWIP_MODE_SEQUENTIAL &&
                                CYGPKG_LWIP_NETCONN_API }
              description     "
                  The number of struct netconns. (only needed if you use the
                  sequential API, like api_lib.c)"
          }
-
+
          cdl_option CYGNUM_LWIP_MEMP_NUM_NETDB {
              display         "Number of concurrent lwip_addrinfo() calls"
              flavor          data
              default_value   1
-            active_if       { CYGPKG_LWIP_DNS &&
+            active_if       { CYGPKG_LWIP_DNS &&
                                CYGPKG_LWIP_SOCKET_API }
              description     "
                  The number of netdb buffers. (only needed if you use DNS)"
          }
-
+
          cdl_option CYGNUM_LWIP_MEMP_NUM_LOCALHOSTLIST {
              display         "Number of host entries"
              flavor          data
              default_value   1
-            active_if       { CYGPKG_LWIP_DNS &&
+            active_if       { CYGPKG_LWIP_DNS &&
 
(CYGFUN_LWIP_DNS_LOCAL_HOSTLIST_IS_DYNAMIC == 1) }
              description     "
-                The number of host entries in the local host list.
+                The number of host entries in the local host list.
                  (only needed if you use DNS and 
CYGFUN_LWIP_DNS_LOCAL_HOSTLIST_IS_DYNAMIC == 1)"
          }
-
+
          cdl_option CYGNUM_LWIP_MEMP_NUM_TCPIP_MSG_API {
              display         "Struct tcpip_msg"
              flavor          data
@@ -1380,7 +1380,7 @@ cdl_package CYGPKG_NET_LWIP {
                  callback/timeout API communication. (only needed if 
you use
                  tcpip.c)"
          }
-
+
          cdl_option CYGNUM_LWIP_MEMP_NUM_TCPIP_MSG_INPKT {
              display         "Incoming struct tcpip_msg"
              flavor          data
@@ -1390,7 +1390,7 @@ cdl_package CYGPKG_NET_LWIP {
                  The number of struct tcpip_msg, which are used for 
incoming
                  packets. (only needed if you use tcpip.c)"
          }
-
+
          cdl_option CYGNUM_LWIP_MEMP_NUM_PPPOE_INTERFACES {
              display         "Number of PPoE interfaces"
              flavor          data
@@ -1400,7 +1400,7 @@ cdl_package CYGPKG_NET_LWIP {
                  The number of concurrently active PPPoE interfaces
                  (only used with CYGFUN_LWIP_PPPOE_SUPPORT)"
          }
-
+
          cdl_option CYGNUM_LWIP_MEMP_NUM_SNMP_ROOTNODE {
              display         "Number of branches in SNMP tree"
              flavor          data
@@ -1409,7 +1409,7 @@ cdl_package CYGPKG_NET_LWIP {
              description     "
                  The number of branches in the SNMP tree. (only needed 
if you use SNMP)"
          }
-
+
          cdl_option CYGNUM_LWIP_MEMP_NUM_SNMP_NODE {
              display         "Number of leafs in the SNMP tree"
              flavor          data
@@ -1418,7 +1418,7 @@ cdl_package CYGPKG_NET_LWIP {
              description     "
                  The number of leafs in the SNMP tree. (only needed if 
you use SNMP)"
          }
-
+
          cdl_option CYGNUM_LWIP_MEMP_NUM_SNMP_VARBIND {
              display         "Number of concurrent SNMP requests"
              flavor          data
@@ -1428,7 +1428,7 @@ cdl_package CYGPKG_NET_LWIP {
                  Two of of these are used per request: One for input,
                  one for output. (Only needed if you use SNMP)"
          }
-
+
          cdl_option CYGNUM_LWIP_MEMP_NUM_SNMP_VALUE {
              display         "Number of SNMP OID or values"
              flavor          data
@@ -1436,11 +1436,11 @@ cdl_package CYGPKG_NET_LWIP {
              active_if       { CYGPKG_LWIP_SNMP }
              description     "
                  The number of OID or values concurrently used.
-                Three of these are used per request: One for the value
+                Three of these are used per request: One for the value
                  read and two for OIDs - input and output.
                  (only needed if you use SNMP)"
          }
-
+
          cdl_option CYGNUM_LWIP_PBUF_POOL_SIZE {
              display         "Pbuf pool buffers"
              flavor          data
@@ -1457,18 +1457,18 @@ cdl_package CYGPKG_NET_LWIP {
                  Memory required to hold semaphore, mbox and thread 
structures
                  is allocated from this memory pool."
          }
-
+
          cdl_option CYGNUM_LWIP_PBUF_LINK_HLEN {
              display         "Allocation for a link level header"
              flavor          data
              default_value   { (CYGPKG_LWIP_ETH) ? 14 : 0 }
-            requires        { CYGNUM_LWIP_PBUF_LINK_HLEN >=
+            requires        { CYGNUM_LWIP_PBUF_LINK_HLEN >=
                                (CYGPKG_LWIP_ETH) ? 14 : 0 }
              description     "
                  The number of bytes that should be allocated for a 
link level
                  header. The default is 14, the standard value for 
Ethernet."
          }
-
+
          cdl_option CYGNUM_LWIP_PBUF_POOL_BUFSIZE {
              display         "PBUF buffer size"
              flavor          data
@@ -1477,7 +1477,7 @@ cdl_package CYGPKG_NET_LWIP {
                  The size of each pbuf in the pbuf pool. The default is 
designed
                  to accomodate single full size TCP frame in one pbuf, 
including
                  TCP_MSS, IP header, and link header."
-        }
+        }

          cdl_component CYGOPT_LWIP_MEM_PLF_SPEC {
              display         "Platform/application specific memory 
settings"
@@ -1506,13 +1506,13 @@ cdl_package CYGPKG_NET_LWIP {
              }
          }
      }
-
+
      cdl_component CYGPKG_LWIP_THREADS {
          display         "Thread options"
          flavor          none
          no_define
          active_if       CYGFUN_LWIP_MODE_SEQUENTIAL
-
+
          cdl_component CYGPKG_LWIP_THREAD_TCPIP {
              display         "TCP/IP thread"
              flavor          none
@@ -1527,14 +1527,14 @@ cdl_package CYGPKG_NET_LWIP {
                  flavor          data
                  default_value   1024
              }
-
+
              cdl_option CYGNUM_LWIP_THREAD_TCPIP_PRIORITY {
                  display         "Thread priority"
                  flavor          data
                  default_value   8
              }
          }
-
+
          cdl_component CYGPKG_LWIP_THREAD_ETH {
              display         "Ethernet thread"
              flavor          none
@@ -1550,14 +1550,14 @@ cdl_package CYGPKG_NET_LWIP {
                  flavor          data
                  default_value   1024
              }
-
+
              cdl_option CYGNUM_LWIP_THREAD_ETH_PRIORITY {
                  display         "Thread priority"
                  flavor          data
                  default_value   4
              }
          }
-
+
          cdl_component CYGPKG_LWIP_THREAD_SLIP {
              display         "SLIP thread"
              flavor          none
@@ -1573,14 +1573,14 @@ cdl_package CYGPKG_NET_LWIP {
                  flavor          data
                  default_value   1024
              }
-
+
              cdl_option CYGNUM_LWIP_THREAD_SLIP_PRIORITY {
                  display         "Thread priority"
                  flavor          data
                  default_value   8
              }
          }
-
+
          cdl_component CYGPKG_LWIP_THREAD_PPPOS {
              display         "PPPoS thread"
              flavor          none
@@ -1596,7 +1596,7 @@ cdl_package CYGPKG_NET_LWIP {
                  flavor          data
                  default_value   1024
              }
-
+
              cdl_option CYGNUM_LWIP_THREAD_PPPOS_PRIORITY {
                  display         "Thread priority"
                  flavor          data
@@ -1611,7 +1611,7 @@ cdl_package CYGPKG_NET_LWIP {
          no_define
          description     "
              Options for checksum generation and checking."
-
+
          cdl_option CYGIMP_LWIP_CHECKSUM_GEN_IP {
              display         "Generate IP checksums"
              flavor          bool
@@ -1619,7 +1619,7 @@ cdl_package CYGPKG_NET_LWIP {
              description     "
                  Generate checksums in software for outgoing IP packets."
          }
-
+
          cdl_option CYGIMP_LWIP_CHECKSUM_GEN_UDP {
              display         "Generate UDP checksums"
              flavor          bool
@@ -1627,7 +1627,7 @@ cdl_package CYGPKG_NET_LWIP {
              description     "
                  Generate checksums in software for outgoing UDP packets."
          }
-
+
          cdl_option CYGIMP_LWIP_CHECKSUM_GEN_TCP {
              display         "Generate TCP checksums"
              flavor          bool
@@ -1643,7 +1643,7 @@ cdl_package CYGPKG_NET_LWIP {
              description     "
                  Check checksums in software for incoming IP packets."
          }
-
+
          cdl_option CYGIMP_LWIP_CHECKSUM_CHECK_UDP {
              display         "Check UDP checksums"
              flavor          bool
@@ -1651,7 +1651,7 @@ cdl_package CYGPKG_NET_LWIP {
              description     "
                  Check checksums in software for incoming UDP packets."
          }
-
+
          cdl_option CYGIMP_LWIP_CHECKSUM_CHECK_TCP {
              display         "Check TCP checksums"
              flavor          bool
@@ -1660,32 +1660,32 @@ cdl_package CYGPKG_NET_LWIP {
                  Check checksums in software for incoming TCP packets."
          }
      }
-
+
      cdl_component CYGPKG_LWIP_STATS {
          display         "Traffic statistics"
          flavor          bool
          default_value   0
          description     "
              Enable statistics collection in lwip_stats."
-
+
          cdl_option CYGVAR_LWIP_LINK_STATS {
              display         "Link stats"
              flavor          bool
              default_value   1
          }
-
+
          cdl_option CYGVAR_LWIP_ETHARP_STATS {
              display         "Etharp stats"
              flavor          bool
              default_value   1
          }
-
+
          cdl_option CYGVAR_LWIP_IP_STATS {
              display         "IP stats"
              flavor          bool
              default_value   1
          }
-
+
          cdl_option CYGVAR_LWIP_IPFARG_STATS {
              display         "IP fragmentation stats"
              flavor          bool
@@ -1693,54 +1693,54 @@ cdl_package CYGPKG_NET_LWIP {
              active_if       { CYGFUN_LWIP_IP_REASSEMBLY ||
                                CYGFUN_LWIP_IP_FRAG }
          }
-
+
          cdl_option CYGVAR_LWIP_ICMP_STATS {
              display         "ICMP stats"
              flavor          bool
              default_value   1
              active_if       { CYGPKG_LWIP_ICMP }
          }
-
+
          cdl_option CYGVAR_LWIP_IGMP_STATS {
              display         "IGMP stats"
              flavor          bool
              default_value   1
              active_if       { CYGPKG_LWIP_IGMP }
          }
-
+
          cdl_option CYGVAR_LWIP_UDP_STATS {
              display         "UDP stats"
              flavor          bool
              default_value   1
              active_if       { CYGPKG_LWIP_UDP }
          }
-
+
          cdl_option CYGVAR_LWIP_TCP_STATS {
              display         "TCP stats"
              flavor          bool
              default_value   1
              active_if       { CYGPKG_LWIP_TCP }
          }
-
+
          cdl_option CYGVAR_LWIP_MEM_STATS {
              display         "Memory stats"
              flavor          bool
              default_value   1
          }
-
+
          cdl_option CYGVAR_LWIP_MEMP_STATS {
              display         "Memory pool stats"
              flavor          bool
              default_value   1
          }
-
+
          cdl_option CYGVAR_LWIP_SYS_STATS {
              display         "System stats"
              flavor          bool
              default_value   1
          }
      }
-
+
      cdl_option CYGFUN_LWIP_SHOW_NETIF_CONFIG {
          display         "Show netif configuration"
          flavor          bool
@@ -1756,11 +1756,11 @@ cdl_package CYGPKG_NET_LWIP {
          default_value   0
          description     "
              Configuration options for debug output."
-
+
          cdl_component CYGDBG_LWIP_DEBUG_OPTIONS {
              display         "Debug options"
              flavor          none
-
+
              cdl_option CYGDBG_LWIP_DEBUG_LEVEL {
                  display         "Log level"
                  flavor          data
@@ -1768,25 +1768,25 @@ cdl_package CYGPKG_NET_LWIP {
                  legal_values    { 0 to 3 }
                  description     "
                      Sets the minimum log level needed to for log output.
-                    0 = Info, 1 = Warning, 2 = Serious, 3 = Severe"
+                    0 = Info, 1 = Warning, 2 = Serious, 3 = Severe"
              }
-
+
              cdl_option CYGDBG_LWIP_DEBUG_TRACE {
                  display         "Trace messages"
                  flavor          bool
                  default_value   1
                  description     "
-                    Log state tracing messages (to follow module flow)."
+                    Log state tracing messages (to follow module flow)."
              }
-
+
              cdl_option CYGDBG_LWIP_DEBUG_STATE {
                  display         "State messages"
                  flavor          bool
                  default_value   1
                  description     "
-                    Log state debug messages (to follow module states)."
+                    Log state debug messages (to follow module states)."
              }
-
+
              cdl_option CYGDBG_LWIP_DEBUG_FRESH {
                  display         "Fresh messages"
                  flavor          bool
@@ -1796,151 +1796,151 @@ cdl_package CYGPKG_NET_LWIP {
                      yet."
              }
          }
-
+
          cdl_option CYGDBG_LWIP_DEBUG_ETHARP {
              display         "Etharp debugging"
              flavor          bool
              default_value   1
          }
-
+
          cdl_option CYGDBG_LWIP_DEBUG_NETIF {
              display         "Netif debugging"
              flavor          bool
              default_value   1
          }
-
+
          cdl_option CYGDBG_LWIP_DEBUG_PBUF {
              display         "PBUF debugging"
              flavor          bool
              default_value   1
          }
-
+
          cdl_option CYGDBG_LWIP_DEBUG_API {
              display         "API debugging"
              flavor          bool
              default_value   1
          }
-
+
          cdl_option CYGDBG_LWIP_DEBUG_SOCKETS {
              display         "Sockets debugging"
              flavor          bool
              default_value   1
          }
-
+
          cdl_option CYGDBG_LWIP_DEBUG_ICMP {
              display         "ICMP debugging"
              flavor          bool
              default_value   1
          }
-
+
          cdl_option CYGDBG_LWIP_DEBUG_IGMP {
              display         "IGMP debugging"
              flavor          bool
              default_value   1
          }
-
+
          cdl_option CYGDBG_LWIP_DEBUG_IP {
              display         "IP debugging"
              flavor          bool
              default_value   1
          }
-
+
          cdl_option CYGDBG_LWIP_DEBUG_RAW {
              display         "RAW debugging"
              flavor          bool
              default_value   1
          }
-
+
          cdl_option CYGDBG_LWIP_DEBUG_MEM {
              display         "Memory debugging"
              flavor          bool
              default_value   1
          }
-
+
          cdl_option CYGDBG_LWIP_DEBUG_SYS {
              display         "System debugging"
              flavor          bool
              default_value   1
          }
-
+
          cdl_option CYGDBG_LWIP_DEBUG_TCP {
              display         "TCP debugging"
              flavor          bool
              default_value   1
          }
-
+
          cdl_option CYGDBG_LWIP_DEBUG_UDP {
              display         "UDP debugging"
              flavor          bool
              default_value   1
          }
-
+
          cdl_option CYGDBG_LWIP_DEBUG_TCPIP {
              display         "TCPIP debugging"
              flavor          bool
              default_value   1
          }
-
+
          cdl_option CYGDBG_LWIP_DEBUG_PPP {
              display         "PPP debugging"
              flavor          bool
              default_value   1
          }
-
+
          cdl_option CYGDBG_LWIP_DEBUG_SLIP {
              display         "SLIP debugging"
              flavor          bool
              default_value   1
          }
-
+
          cdl_option CYGDBG_LWIP_DEBUG_DHCP {
              display         "DHCP debugging"
              flavor          bool
              default_value   1
          }
-
+
          cdl_option CYGDBG_LWIP_DEBUG_AUTOIP {
              display         "AUTOIP debugging"
              flavor          bool
              default_value   1
          }
-
+
          cdl_option CYGDBG_LWIP_DEBUG_SNMP {
              display         "SNMP debugging"
              flavor          bool
              default_value   1
          }
-
+
          cdl_option CYGDBG_LWIP_DEBUG_DNS {
              display         "DNS debugging"
              flavor          bool
              default_value   1
          }
-
+
          cdl_option CYGDBG_LWIP_DEBUG_SIO {
              display         "SIO debugging"
              flavor          bool
              default_value   1
          }
      }
-
+
      cdl_component CYGPKG_NET_LWIP_TESTS {
          display         "lwIP tests"
          flavor          data
          no_define
          calculated      { "tests/httpd_sequential tests/httpd_simple " .
-                          "tests/nc_test_slave tests/ppp " .
+                          "tests/nc_test_slave tests/ppp " .
                            "tests/socket tests/sys_timeout 
tests/tcpecho " .
                            "tests/udpecho" }
          description     "
              This option specifies the set of tests for lwIP. They show the
              usage of the raw, the sequential and the BSD socket 
compatible APIs"
-
+
          cdl_component CYGPKG_NET_LWIP_PPP_TEST {
              display         "PPP test options"
              flavor          none
              no_define
-
+
              cdl_option CYGDAT_NET_LWIP_PPP_TEST_APN {
                  display         "APN"
                  flavor          data
@@ -1948,7 +1948,7 @@ cdl_package CYGPKG_NET_LWIP {
                  description     "
                      Access Point Name used to open PPP connection."
              }
-
+
              cdl_option CYGDAT_NET_LWIP_PPP_TEST_NUMBER {
                  display         "Number"
                  flavor          data
@@ -1956,7 +1956,7 @@ cdl_package CYGPKG_NET_LWIP {
                  description     "
                      Dial number used to open PPP connection."
              }
-
+
              cdl_option CYGDAT_NET_LWIP_PPP_TEST_USERNAME {
                  display         "Username"
                  flavor          data
@@ -1964,7 +1964,7 @@ cdl_package CYGPKG_NET_LWIP {
                  description     "
                      Username used for PPP authentication."
              }
-
+
              cdl_option CYGDAT_NET_LWIP_PPP_TEST_PASSWORD {
                  display         "Password"
                  flavor          data
@@ -1972,7 +1972,7 @@ cdl_package CYGPKG_NET_LWIP {
                  description     "
                      Password used for PPP authentication."
              }
-
+
              cdl_option CYGDAT_NET_LWIP_PPP_TEST_HOST {
                  display         "Host to ping"
                  flavor          data
diff --git a/packages/net/lwip_tcpip/current/include/lwip.h 
b/packages/net/lwip_tcpip/current/include/lwip.h
index 085a240..6642dfe 100644
--- a/packages/net/lwip_tcpip/current/include/lwip.h
+++ b/packages/net/lwip_tcpip/current/include/lwip.h
@@ -64,7 +64,7 @@ extern "C" {
  // Serial device id's
  #define SIO_DEV_SLIPIF  0
  #define SIO_DEV_PPPOS   1
-
+
  #ifdef CYGFUN_LWIP_MODE_SIMPLE

  externC void cyg_lwip_simple_init(void);
diff --git a/packages/net/lwip_tcpip/current/src/ecos/ppp.c 
b/packages/net/lwip_tcpip/current/src/ecos/ppp.c
index a847dce..5a1f892 100644
--- a/packages/net/lwip_tcpip/current/src/ecos/ppp.c
+++ b/packages/net/lwip_tcpip/current/src/ecos/ppp.c
@@ -67,7 +67,7 @@ void ppp_trace(int level, const char *format, ...)
  void ppp_dump_record(void *data, int len)
  {
      cyg_uint8 *c = data;
-
+
      diag_printf("PPPDUMP:");
      while (len--)
          diag_printf("%02x", *c++);
diff --git a/packages/net/lwip_tcpip/current/src/ecos/sequential.c 
b/packages/net/lwip_tcpip/current/src/ecos/sequential.c
index 2471cbf..047d85e 100644
--- a/packages/net/lwip_tcpip/current/src/ecos/sequential.c
+++ b/packages/net/lwip_tcpip/current/src/ecos/sequential.c
@@ -145,7 +145,7 @@ static void
  tcpip_init_done(void *arg)
  {
      cyg_sem_t *sem = arg;
-
+
  #if LWIP_HAVE_SLIPIF && defined(CYGIMP_LWIP_SLIPIF_INSTANCE)
      {
          struct ip_addr addr, netmask, gateway;
@@ -171,11 +171,11 @@ tcpip_init_done(void *arg)
          // Setup PPP instance
      }
  #endif
-
+
  #ifdef CYGPKG_LWIP_ETH
      {
          cyg_netdevtab_entry_t *t;
-
+
          // Initialize ethernet delivery thread
          cyg_semaphore_init(&eth_thread_sem, 0);
          eth_thread_handle = sys_thread_new(ETH_THREAD_NAME,
@@ -183,7 +183,7 @@ tcpip_init_done(void *arg)
                                             NULL,
                                             ETH_THREAD_STACKSIZE,
                                             ETH_THREAD_PRIO);
-
+
          // Initialize network devices
          for (t = &__NETDEVTAB__[0]; t != &__NETDEVTAB_END__; t++) {
              if (t->init(t)) {
@@ -220,11 +220,11 @@ cyg_lwip_sequential_init(void)
      if (initialized)
          return;
      initialized = 1;
-
+
      // Initialize the lwIP stack
      cyg_semaphore_init(&sem, 0);
      tcpip_init(tcpip_init_done, (void *) &sem);
-
+
      // Wait until initialized
      cyg_semaphore_wait(&sem);
      cyg_semaphore_destroy(&sem);
@@ -236,10 +236,10 @@ static void
  eth_thread(void *data)
  {
      cyg_netdevtab_entry_t *t;
-
+
      while (1) {
          cyg_semaphore_wait(&eth_thread_sem);
-
+
          for (t = &__NETDEVTAB__[0]; t != &__NETDEVTAB_END__; t++) {
              struct eth_drv_sc *sc = (struct eth_drv_sc 
*)t->device_instance;
              if (sc->state & ETH_DRV_NEEDS_DELIVERY) {
diff --git a/packages/net/lwip_tcpip/current/src/ecos/simple.c 
b/packages/net/lwip_tcpip/current/src/ecos/simple.c
index 1acb6fa..f040e30 100644
--- a/packages/net/lwip_tcpip/current/src/ecos/simple.c
+++ b/packages/net/lwip_tcpip/current/src/ecos/simple.c
@@ -153,7 +153,7 @@ static cyg_tick_count_t last_ticks;


  #if (LWIP_HAVE_SLIPIF && defined(CYGIMP_LWIP_SLIPIF_INSTANCE))
-
+
  //
  //Â Sets an IPÂ address.
  //
@@ -267,7 +267,7 @@ cyg_lwip_simple_init(void)
          }
      }
  #endif
-
+
      cyg_lwip_simple_restart();
  }

@@ -289,7 +289,7 @@ cyg_lwip_simple_poll(void)
      cyg_tick_count_t ticks;
      cyg_uint32 delta;
      int i;
-
+
  #if LWIP_HAVE_SLIPIF && defined(CYGIMP_LWIP_SLIPIF_INSTANCE)
      // Poll SLIP device
      slipif_poll(&slipif);
@@ -377,12 +377,12 @@ lwip_eth_drv_input(struct pbuf *p, struct netif 
*netif)
  {
      if (recv_packet_count >= MAX_RECV_PACKETS)
          return ERR_MEM;
-
+
      recv_packet[recv_packet_write].netif = netif;
      recv_packet[recv_packet_write].p = p;
      recv_packet_write = (recv_packet_write + 1) % MAX_RECV_PACKETS;
      recv_packet_count++;
-
+
      return ERR_OK;
  }

diff --git a/packages/net/lwip_tcpip/current/src/ecos/sio.c 
b/packages/net/lwip_tcpip/current/src/ecos/sio.c
index 3ea86c1..b9381b1 100644
--- a/packages/net/lwip_tcpip/current/src/ecos/sio.c
+++ b/packages/net/lwip_tcpip/current/src/ecos/sio.c
@@ -72,7 +72,7 @@ sio_fd_t sio_open(u8_t devnum)
      Cyg_ErrNo ret;
      cyg_io_handle_t handle;
      char *dev;
-
+
  #ifdef CYGDBG_LWIP_DEBUG_SIO
      diag_printf("sio_open(devnum=%d)\n", devnum);
  #endif
@@ -107,12 +107,12 @@ sio_fd_t sio_open(u8_t devnum)
  void sio_send(u8_t c, sio_fd_t fd)
  {
      cyg_uint32 len = 1;
-
+
  #ifdef CYGDBG_LWIP_DEBUG_SIO
      diag_printf("sio_send(c=0x%02x,fd=%p)\n", c, fd);
  #endif
-
-	cyg_io_write((cyg_io_handle_t) fd, &c, &len);
+
+    cyg_io_write((cyg_io_handle_t) fd, &c, &len);
  }

  /*
@@ -122,18 +122,18 @@ u8_t sio_recv(sio_fd_t fd)
  {
      cyg_uint32 len = 1;
      char c;
-
+
  #ifdef CYGDBG_LWIP_DEBUG_SIO
      diag_printf("sio_recv(fd=%p)\n", fd);
  #endif
-
-	cyg_io_read((cyg_io_handle_t) fd, &c, &len);
-	
+
+    cyg_io_read((cyg_io_handle_t) fd, &c, &len);
+
  #ifdef CYGDBG_LWIP_DEBUG_SIO
      diag_printf("sio_recv: %02X\n", (cyg_uint8) c);
  #endif
-	
-	return c;
+
+    return c;
  }

  /*
@@ -142,11 +142,11 @@ u8_t sio_recv(sio_fd_t fd)
  u32_t sio_read(sio_fd_t fd, u8_t *data, u32_t len)
  {
      Cyg_ErrNo ret;
-
+
  #ifdef CYGDBG_LWIP_DEBUG_SIO
      diag_printf("sio_read(fd=%p,data=%p,len=%lu:)\n", fd, data, len);
  #endif
-
+
      ret = cyg_io_read((cyg_io_handle_t) fd, data, (cyg_uint32 *) &len);
      if (ret != ENOERR)
          return 0;
@@ -168,7 +168,7 @@ u32_t sio_tryread(sio_fd_t fd, u8_t *data, u32_t len)
      Cyg_ErrNo ret;
      cyg_serial_buf_info_t info;
      cyg_uint32 l;
-
+
  #ifdef CYGDBG_LWIP_DEBUG_SIO
      diag_printf("sio_tryread(fd=%p,data=%p,len=%lu:)\n", fd, data, len);
  #endif
@@ -187,12 +187,12 @@ u32_t sio_tryread(sio_fd_t fd, u8_t *data, u32_t len)
      ret = cyg_io_read((cyg_io_handle_t) fd, data, &l);
      if (ret != ENOERR)
          return 0;
-
+
  #ifdef CYGDBG_LWIP_DEBUG_SIO
     diag_printf("sio_tryread: ");
     diag_dump_buf(data, len);
  #endif
-
+
     return l;
  }

@@ -204,7 +204,7 @@ u32_t sio_write(sio_fd_t fd, u8_t *data, u32_t len)
      Cyg_ErrNo ret;
      cyg_uint32 count = 0;
      cyg_uint32 chunk;
-
+
  #ifdef CYGDBG_LWIP_DEBUG_SIO
      diag_printf("sio_write(fd=%p,data=%p,len=%lu:)\n", fd, data, len);
      diag_printf("sio_write: ");
@@ -219,8 +219,8 @@ u32_t sio_write(sio_fd_t fd, u8_t *data, u32_t len)
          data += chunk;
          count += chunk;
      }
-
-	return count;
+
+    return count;
  }

  /*
@@ -229,7 +229,7 @@ u32_t sio_write(sio_fd_t fd, u8_t *data, u32_t len)
  void sio_read_abort(sio_fd_t fd)
  {
      cyg_uint32 l = 0;
-
+
  #ifdef CYGDBG_LWIP_DEBUG_SIO
      diag_printf("sio_read_abort(fd=%p)\n", fd);
  #endif
diff --git a/packages/net/lwip_tcpip/current/src/ecos/sys_arch.c 
b/packages/net/lwip_tcpip/current/src/ecos/sys_arch.c
index 3ab27d5..da522a5 100644
--- a/packages/net/lwip_tcpip/current/src/ecos/sys_arch.c
+++ b/packages/net/lwip_tcpip/current/src/ecos/sys_arch.c
@@ -106,15 +106,15 @@ void
  sys_init(void)
  {
      cyg_mempool_var_create(
-	    var_data,
-	    sizeof(var_data),
-	    &var_handle,
-	    &var_mempool
-	);
-	
-	threads = NULL;
-	
-	cyg_mutex_init(&stack_mutex);
+        var_data,
+        sizeof(var_data),
+        &var_handle,
+        &var_mempool
+    );
+
+    threads = NULL;
+
+    cyg_mutex_init(&stack_mutex);
  }

  //
@@ -235,10 +235,10 @@ sys_mbox_new(sys_mbox_t *s_mbox, int size)
  {
      LWIP_UNUSED_ARG(size);

-	s_mbox->mbox = (cyg_mbox *) cyg_mempool_var_try_alloc(var_handle, 
sizeof(cyg_mbox));
-	if (!s_mbox->mbox)
-	    return ERR_MEM;
-	cyg_mbox_create(&(s_mbox->handle), s_mbox->mbox);
+    s_mbox->mbox = (cyg_mbox *) cyg_mempool_var_try_alloc(var_handle, 
sizeof(cyg_mbox));
+    if (!s_mbox->mbox)
+        return ERR_MEM;
+    cyg_mbox_create(&(s_mbox->handle), s_mbox->mbox);
      s_mbox->valid = 1;

  #if SYS_STATS
@@ -247,7 +247,7 @@ sys_mbox_new(sys_mbox_t *s_mbox, int size)
          lwip_stats.sys.mbox.max = lwip_stats.sys.mbox.used;
  #endif

-	return ERR_OK;
+    return ERR_OK;
  }

  //
@@ -265,8 +265,8 @@ sys_mbox_free(sys_mbox_t *s_mbox)
          LWIP_DEBUGF(SYS_DEBUG | LWIP_DBG_LEVEL_WARNING,
                      ("sys_mbox_free: mbox not empty\n"));

-	cyg_mbox_delete(s_mbox->handle);
-	cyg_mempool_var_free(var_handle, (void *) s_mbox->mbox);
+    cyg_mbox_delete(s_mbox->handle);
+    cyg_mempool_var_free(var_handle, (void *) s_mbox->mbox);
      s_mbox->valid = 0;

  #if SYS_STATS
@@ -512,7 +512,7 @@ sys_thread_new(const char *name, lwip_thread_fn 
thread, void *arg,
      stack = stack_pos;
      stack_pos += stacksize;
      cyg_mutex_unlock(&stack_mutex);
-
+
      if (stack_pos > stack_data + TOTAL_STACKSIZE)
          CYG_FAIL("Not enough memory to allocate the thread's stack. 
You may "
                   "want to use cyg_lwip_thread_new() instead of "
@@ -533,7 +533,7 @@ cyg_lwip_thread_new(const char *name, lwip_thread_fn 
thread, void *arg,

      t = (struct lwip_thread *) cyg_mempool_var_alloc(
              var_handle, sizeof(struct lwip_thread));
-
+
      t->next = threads;
      strncpy(t->name, name, sizeof(t->name));

@@ -582,7 +582,7 @@ sys_prot_t
  sys_arch_protect(void)
  {
      cyg_scheduler_lock();
-
+
      return 0;
  }

@@ -596,6 +596,6 @@ void
  sys_arch_unprotect(sys_prot_t pval)
  {
      LWIP_UNUSED_ARG(pval);
-
+
      cyg_scheduler_unlock();
  }
-- 
1.8.1.msysgit.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-06-27 19:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-27 19:22 [RFC 7/9] * Rationalise whitespace in ecos lwip files Will Wagner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).