lwipopts.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /**
  2. * @file lwipopts.h
  3. * @author Ambroz Bizjak <ambrop7@gmail.com>
  4. *
  5. * @section LICENSE
  6. *
  7. * This file is part of BadVPN.
  8. *
  9. * BadVPN is free software: you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License version 2
  11. * as published by the Free Software Foundation.
  12. *
  13. * BadVPN is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License along
  19. * with this program; if not, write to the Free Software Foundation, Inc.,
  20. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  21. */
  22. #ifndef LWIP_CUSTOM_LWIPOPTS_H
  23. #define LWIP_CUSTOM_LWIPOPTS_H
  24. #define NO_SYS 1
  25. #define MEM_ALIGNMENT 8
  26. #define LWIP_ARP 0
  27. #define ARP_QUEUEING 0
  28. #define IP_FORWARD 0
  29. #define LWIP_ICMP 1
  30. #define LWIP_RAW 0
  31. #define LWIP_DHCP 0
  32. #define LWIP_AUTOIP 0
  33. #define LWIP_SNMP 0
  34. #define LWIP_IGMP 0
  35. #define LWIP_DNS 0
  36. #define LWIP_UDP 0
  37. #define LWIP_UDPLITE 0
  38. #define LWIP_TCP 1
  39. #define LWIP_CALLBACK_API 1
  40. #define LWIP_NETIF_API 0
  41. #define LWIP_NETIF_LOOPBACK 0
  42. #define LWIP_HAVE_LOOPIF 0
  43. #define LWIP_HAVE_SLIPIF 0
  44. #define LWIP_NETCONN 0
  45. #define LWIP_SOCKET 0
  46. #define PPP_SUPPORT 0
  47. #define MEMP_NUM_TCP_PCB_LISTEN 16
  48. #define MEMP_NUM_TCP_PCB 1024
  49. #define TCP_MSS 1460
  50. #define TCP_SND_BUF 16384
  51. #define TCP_SND_QUEUELEN (4 * (TCP_SND_BUF)/(TCP_MSS))
  52. #define MEM_LIBC_MALLOC 1
  53. #define MEMP_MEM_MALLOC 1
  54. #endif