lwipopts.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /**
  2. * @file lwipopts.h
  3. * @author Ambroz Bizjak <ambrop7@gmail.com>
  4. *
  5. * @section LICENSE
  6. *
  7. * Redistribution and use in source and binary forms, with or without
  8. * modification, are permitted provided that the following conditions are met:
  9. * 1. Redistributions of source code must retain the above copyright
  10. * notice, this list of conditions and the following disclaimer.
  11. * 2. Redistributions in binary form must reproduce the above copyright
  12. * notice, this list of conditions and the following disclaimer in the
  13. * documentation and/or other materials provided with the distribution.
  14. * 3. Neither the name of the author nor the
  15. * names of its contributors may be used to endorse or promote products
  16. * derived from this software without specific prior written permission.
  17. *
  18. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  19. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  20. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  21. * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
  22. * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  23. * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  24. * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  25. * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  27. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  28. */
  29. #ifndef LWIP_CUSTOM_LWIPOPTS_H
  30. #define LWIP_CUSTOM_LWIPOPTS_H
  31. #define NO_SYS 1
  32. #define MEM_ALIGNMENT 4
  33. #define LWIP_ARP 0
  34. #define ARP_QUEUEING 0
  35. #define IP_FORWARD 0
  36. #define LWIP_ICMP 1
  37. #define LWIP_RAW 0
  38. #define LWIP_DHCP 0
  39. #define LWIP_AUTOIP 0
  40. #define LWIP_SNMP 0
  41. #define LWIP_IGMP 0
  42. #define LWIP_DNS 0
  43. #define LWIP_UDP 0
  44. #define LWIP_UDPLITE 0
  45. #define LWIP_TCP 1
  46. #define LWIP_CALLBACK_API 1
  47. #define LWIP_NETIF_API 0
  48. #define LWIP_NETIF_LOOPBACK 0
  49. #define LWIP_HAVE_LOOPIF 0
  50. #define LWIP_HAVE_SLIPIF 0
  51. #define LWIP_NETCONN 0
  52. #define LWIP_SOCKET 0
  53. #define PPP_SUPPORT 0
  54. #define LWIP_IPV6 1
  55. #define LWIP_IPV6_MLD 0
  56. #define LWIP_IPV6_AUTOCONFIG 0
  57. #define MEMP_NUM_TCP_PCB_LISTEN 16
  58. #define MEMP_NUM_TCP_PCB 1024
  59. #define TCP_MSS 1460
  60. #define TCP_SND_BUF 16384
  61. #define TCP_SND_QUEUELEN (4 * (TCP_SND_BUF)/(TCP_MSS))
  62. #define MEM_LIBC_MALLOC 1
  63. #define MEMP_MEM_MALLOC 1
  64. #endif