lwipopts.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588
  1. #ifndef __LWIPOPTS_H__
  2. #define __LWIPOPTS_H__
  3. #include <rtconfig.h>
  4. #define ERRNO
  5. #define NO_SYS 0
  6. #define LWIP_SOCKET 1
  7. #define LWIP_NETCONN 1
  8. #ifdef RT_LWIP_IGMP
  9. #define LWIP_IGMP 1
  10. #else
  11. #define LWIP_IGMP 0
  12. #endif
  13. #ifdef RT_LWIP_ICMP
  14. #define LWIP_ICMP 1
  15. #else
  16. #define LWIP_ICMP 0
  17. #endif
  18. #ifdef RT_LWIP_SNMP
  19. #define LWIP_SNMP 1
  20. #else
  21. #define LWIP_SNMP 0
  22. #endif
  23. #ifdef RT_LWIP_DNS
  24. #define LWIP_DNS 1
  25. #else
  26. #define LWIP_DNS 0
  27. #endif
  28. #define LWIP_HAVE_LOOPIF 0
  29. #define LWIP_PLATFORM_BYTESWAP 0
  30. #ifndef BYTE_ORDER
  31. #define BYTE_ORDER LITTLE_ENDIAN
  32. #endif
  33. /* #define RT_LWIP_DEBUG */
  34. #ifdef RT_LWIP_DEBUG
  35. #define LWIP_DEBUG
  36. #endif
  37. /* ---------- Debug options ---------- */
  38. #ifdef LWIP_DEBUG
  39. #ifdef RT_LWIP_SYS_DEBUG
  40. #define SYS_DEBUG LWIP_DBG_ON
  41. #else
  42. #define SYS_DEBUG LWIP_DBG_OFF
  43. #endif
  44. #ifdef RT_LWIP_ETHARP_DEBUG
  45. #define ETHARP_DEBUG LWIP_DBG_ON
  46. #else
  47. #define ETHARP_DEBUG LWIP_DBG_OFF
  48. #endif
  49. #ifdef RT_LWIP_PPP_DEBUG
  50. #define PPP_DEBUG LWIP_DBG_ON
  51. #else
  52. #define PPP_DEBUG LWIP_DBG_OFF
  53. #endif
  54. #ifdef RT_LWIP_MEM_DEBUG
  55. #define MEM_DEBUG LWIP_DBG_ON
  56. #else
  57. #define MEM_DEBUG LWIP_DBG_OFF
  58. #endif
  59. #ifdef RT_LWIP_MEMP_DEBUG
  60. #define MEMP_DEBUG LWIP_DBG_ON
  61. #else
  62. #define MEMP_DEBUG LWIP_DBG_OFF
  63. #endif
  64. #ifdef RT_LWIP_PBUF_DEBUG
  65. #define PBUF_DEBUG LWIP_DBG_ON
  66. #else
  67. #define PBUF_DEBUG LWIP_DBG_OFF
  68. #endif
  69. #ifdef RT_LWIP_API_LIB_DEBUG
  70. #define API_LIB_DEBUG LWIP_DBG_ON
  71. #else
  72. #define API_LIB_DEBUG LWIP_DBG_OFF
  73. #endif
  74. #ifdef RT_LWIP_API_MSG_DEBUG
  75. #define API_MSG_DEBUG LWIP_DBG_ON
  76. #else
  77. #define API_MSG_DEBUG LWIP_DBG_OFF
  78. #endif
  79. #ifdef RT_LWIP_TCPIP_DEBUG
  80. #define TCPIP_DEBUG LWIP_DBG_ON
  81. #else
  82. #define TCPIP_DEBUG LWIP_DBG_OFF
  83. #endif
  84. #ifdef RT_LWIP_NETIF_DEBUG
  85. #define NETIF_DEBUG LWIP_DBG_ON
  86. #else
  87. #define NETIF_DEBUG LWIP_DBG_OFF
  88. #endif
  89. #ifdef RT_LWIP_SOCKETS_DEBUG
  90. #define SOCKETS_DEBUG LWIP_DBG_ON
  91. #else
  92. #define SOCKETS_DEBUG LWIP_DBG_OFF
  93. #endif
  94. #ifdef RT_LWIP_DNS_DEBUG
  95. #define DNS_DEBUG LWIP_DBG_ON
  96. #else
  97. #define DNS_DEBUG LWIP_DBG_OFF
  98. #endif
  99. #ifdef RT_LWIP_AUTOIP_DEBUG
  100. #define AUTOIP_DEBUG LWIP_DBG_ON
  101. #else
  102. #define AUTOIP_DEBUG LWIP_DBG_OFF
  103. #endif
  104. #ifdef RT_LWIP_DHCP_DEBUG
  105. #define DHCP_DEBUG LWIP_DBG_ON
  106. #else
  107. #define DHCP_DEBUG LWIP_DBG_OFF
  108. #endif
  109. #ifdef RT_LWIP_IP_DEBUG
  110. #define IP_DEBUG LWIP_DBG_ON
  111. #else
  112. #define IP_DEBUG LWIP_DBG_OFF
  113. #endif
  114. #ifdef RT_LWIP_IP_REASS_DEBUG
  115. #define IP_REASS_DEBUG LWIP_DBG_ON
  116. #else
  117. #define IP_REASS_DEBUG LWIP_DBG_OFF
  118. #endif
  119. #ifdef RT_LWIP_ICMP_DEBUG
  120. #define ICMP_DEBUG LWIP_DBG_ON
  121. #else
  122. #define ICMP_DEBUG LWIP_DBG_OFF
  123. #endif
  124. #ifdef RT_LWIP_IGMP_DEBUG
  125. #define IGMP_DEBUG LWIP_DBG_ON
  126. #else
  127. #define IGMP_DEBUG LWIP_DBG_OFF
  128. #endif
  129. #ifdef RT_LWIP_UDP_DEBUG
  130. #define UDP_DEBUG LWIP_DBG_ON
  131. #else
  132. #define UDP_DEBUG LWIP_DBG_OFF
  133. #endif
  134. #ifdef RT_LWIP_TCP_DEBUG
  135. #define TCP_DEBUG LWIP_DBG_ON
  136. #else
  137. #define TCP_DEBUG LWIP_DBG_OFF
  138. #endif
  139. #ifdef RT_LWIP_TCP_INPUT_DEBUG
  140. #define TCP_INPUT_DEBUG LWIP_DBG_ON
  141. #else
  142. #define TCP_INPUT_DEBUG LWIP_DBG_OFF
  143. #endif
  144. #ifdef RT_LWIP_TCP_OUTPUT_DEBUG
  145. #define TCP_OUTPUT_DEBUG LWIP_DBG_ON
  146. #else
  147. #define TCP_OUTPUT_DEBUG LWIP_DBG_OFF
  148. #endif
  149. #ifdef RT_LWIP_TCP_RTO_DEBUG
  150. #define TCP_RTO_DEBUG LWIP_DBG_ON
  151. #else
  152. #define TCP_RTO_DEBUG LWIP_DBG_OFF
  153. #endif
  154. #ifdef RT_LWIP_TCP_CWND_DEBUG
  155. #define TCP_CWND_DEBUG LWIP_DBG_ON
  156. #else
  157. #define TCP_CWND_DEBUG LWIP_DBG_OFF
  158. #endif
  159. #ifdef RT_LWIP_TCP_WND_DEBUG
  160. #define TCP_WND_DEBUG LWIP_DBG_ON
  161. #else
  162. #define TCP_WND_DEBUG LWIP_DBG_OFF
  163. #endif
  164. #ifdef RT_LWIP_TCP_FR_DEBUG
  165. #define TCP_FR_DEBUG LWIP_DBG_ON
  166. #else
  167. #define TCP_FR_DEBUG LWIP_DBG_OFF
  168. #endif
  169. #ifdef RT_LWIP_TCP_QLEN_DEBUG
  170. #define TCP_QLEN_DEBUG LWIP_DBG_ON
  171. #else
  172. #define TCP_QLEN_DEBUG LWIP_DBG_OFF
  173. #endif
  174. #ifdef RT_LWIP_TCP_RST_DEBUG
  175. #define TCP_RST_DEBUG LWIP_DBG_ON
  176. #else
  177. #define TCP_RST_DEBUG LWIP_DBG_OFF
  178. #endif
  179. #endif /* LWIP_DEBUG */
  180. #define LWIP_DBG_TYPES_ON (LWIP_DBG_ON|LWIP_DBG_TRACE|LWIP_DBG_STATE|LWIP_DBG_FRESH|LWIP_DBG_HALT)
  181. /* ---------- Memory options ---------- */
  182. #ifdef RT_USING_ASM_MEMCPY
  183. #define MEMCPY(dst,src,len) rt_memcpy(dst,src,len)
  184. #else
  185. #define MEMCPY(dst,src,len) memcpy(dst,src,len)
  186. #endif /* RT_USING_ASM_MEMCPY */
  187. #define SMEMCPY(dst,src,len) MEMCPY(dst,src,len)
  188. #define MEM_ALIGNMENT 4
  189. #define MEM_LIBC_MALLOC 1
  190. #define mem_malloc rt_malloc
  191. #define mem_free rt_free
  192. #define mem_calloc rt_calloc
  193. #define MEMP_MEM_MALLOC 0
  194. /* MEMP_NUM_PBUF: the number of memp struct pbufs. If the application
  195. sends a lot of data out of ROM (or other static memory), this
  196. should be set high. */
  197. #define MEMP_NUM_PBUF 16
  198. /* the number of struct netconns */
  199. #ifdef RT_MEMP_NUM_NETCONN
  200. #define MEMP_NUM_NETCONN RT_MEMP_NUM_NETCONN
  201. #endif
  202. /* the number of UDP protocol control blocks. One per active RAW "connection". */
  203. #ifdef RT_LWIP_RAW_PCB_NUM
  204. #define MEMP_NUM_RAW_PCB RT_LWIP_RAW_PCB_NUM
  205. #endif
  206. /* the number of UDP protocol control blocks. One per active UDP "connection". */
  207. #ifdef RT_LWIP_UDP_PCB_NUM
  208. #define MEMP_NUM_UDP_PCB RT_LWIP_UDP_PCB_NUM
  209. #endif
  210. /* the number of simulatenously active TCP connections. */
  211. #ifdef RT_LWIP_TCP_PCB_NUM
  212. #define MEMP_NUM_TCP_PCB RT_LWIP_TCP_PCB_NUM
  213. #endif
  214. /* the number of simultaneously queued TCP */
  215. #ifdef RT_LWIP_TCP_SEG_NUM
  216. #define MEMP_NUM_TCP_SEG RT_LWIP_TCP_SEG_NUM
  217. #else
  218. #define MEMP_NUM_TCP_SEG TCP_SND_QUEUELEN
  219. #endif
  220. /*
  221. * You can re-define following setting in rtcofnig.h to overwrite the default
  222. * setting in the lwip opts.h
  223. */
  224. /* MEMP_NUM_NETBUF: the number of struct netbufs. */
  225. // #define MEMP_NUM_NETBUF 2
  226. /* MEMP_NUM_NETCONN: the number of struct netconns. */
  227. // #define MEMP_NUM_NETCONN 4
  228. /* MEMP_NUM_TCPIP_MSG_*: the number of struct tcpip_msg, which is used
  229. for sequential API communication and incoming packets. Used in
  230. src/api/tcpip.c. */
  231. // #define MEMP_NUM_TCPIP_MSG_API 16
  232. // #define MEMP_NUM_TCPIP_MSG_INPKT 16
  233. /* ---------- Pbuf options ---------- */
  234. /* PBUF_POOL_SIZE: the number of buffers in the pbuf pool. */
  235. #ifdef RT_LWIP_PBUF_NUM
  236. #define PBUF_POOL_SIZE RT_LWIP_PBUF_NUM
  237. #endif
  238. /* PBUF_POOL_BUFSIZE: the size of each pbuf in the pbuf pool. */
  239. #ifdef RT_LWIP_PBUF_POOL_BUFSIZE
  240. #define PBUF_POOL_BUFSIZE RT_LWIP_PBUF_POOL_BUFSIZE
  241. #endif
  242. /* PBUF_LINK_HLEN: the number of bytes that should be allocated for a
  243. link level header. */
  244. #define PBUF_LINK_HLEN 16
  245. #ifdef RT_LWIP_ETH_PAD_SIZE
  246. #define ETH_PAD_SIZE RT_LWIP_ETH_PAD_SIZE
  247. #endif
  248. /** SYS_LIGHTWEIGHT_PROT
  249. * define SYS_LIGHTWEIGHT_PROT in lwipopts.h if you want inter-task protection
  250. * for certain critical regions during buffer allocation, deallocation and memory
  251. * allocation and deallocation.
  252. */
  253. #define SYS_LIGHTWEIGHT_PROT (NO_SYS==0)
  254. #ifdef LWIP_USING_NAT
  255. #define IP_NAT 1
  256. #else
  257. #define IP_NAT 0
  258. #endif
  259. /* ---------- TCP options ---------- */
  260. #ifdef RT_LWIP_TCP
  261. #define LWIP_TCP 1
  262. #else
  263. #define LWIP_TCP 0
  264. #endif
  265. #define TCP_TTL 255
  266. /* Controls if TCP should queue segments that arrive out of
  267. order. Define to 0 if your device is low on memory. */
  268. #define TCP_QUEUE_OOSEQ 1
  269. /* TCP Maximum segment size. */
  270. #define TCP_MSS 1460
  271. /* TCP sender buffer space (bytes). */
  272. #ifdef RT_LWIP_TCP_SND_BUF
  273. #define TCP_SND_BUF RT_LWIP_TCP_SND_BUF
  274. #else
  275. #define TCP_SND_BUF (TCP_MSS * 2)
  276. #endif
  277. /* TCP sender buffer space (pbufs). This must be at least = 2 *
  278. TCP_SND_BUF/TCP_MSS for things to work. */
  279. #define TCP_SND_QUEUELEN (4 * TCP_SND_BUF/TCP_MSS)
  280. /* TCP writable space (bytes). This must be less than or equal
  281. to TCP_SND_BUF. It is the amount of space which must be
  282. available in the tcp snd_buf for select to return writable */
  283. #define TCP_SNDLOWAT (TCP_SND_BUF/2)
  284. #define TCP_SNDQUEUELOWAT TCP_SND_QUEUELEN/2
  285. /* TCP receive window. */
  286. #ifdef RT_LWIP_TCP_WND
  287. #define TCP_WND RT_LWIP_TCP_WND
  288. #else
  289. #define TCP_WND (TCP_MSS * 2)
  290. #endif
  291. /* Maximum number of retransmissions of data segments. */
  292. #define TCP_MAXRTX 12
  293. /* Maximum number of retransmissions of SYN segments. */
  294. #define TCP_SYNMAXRTX 4
  295. /* tcpip thread options */
  296. #ifdef RT_LWIP_TCPTHREAD_PRIORITY
  297. #define TCPIP_MBOX_SIZE RT_LWIP_TCPTHREAD_MBOX_SIZE
  298. #define TCPIP_THREAD_PRIO RT_LWIP_TCPTHREAD_PRIORITY
  299. #define TCPIP_THREAD_STACKSIZE RT_LWIP_TCPTHREAD_STACKSIZE
  300. #else
  301. #define TCPIP_MBOX_SIZE 8
  302. #define TCPIP_THREAD_PRIO 128
  303. #define TCPIP_THREAD_STACKSIZE 4096
  304. #endif
  305. #define TCPIP_THREAD_NAME "tcpip"
  306. #define DEFAULT_TCP_RECVMBOX_SIZE 10
  307. /* ---------- ARP options ---------- */
  308. #define LWIP_ARP 1
  309. #define ARP_TABLE_SIZE 10
  310. #define ARP_QUEUEING 1
  311. /* ---------- Checksum options ---------- */
  312. #ifdef RT_LWIP_USING_HW_CHECKSUM
  313. #define CHECKSUM_GEN_IP 0
  314. #define CHECKSUM_GEN_UDP 0
  315. #define CHECKSUM_GEN_TCP 0
  316. #define CHECKSUM_GEN_ICMP 0
  317. #define CHECKSUM_CHECK_IP 0
  318. #define CHECKSUM_CHECK_UDP 0
  319. #define CHECKSUM_CHECK_TCP 0
  320. #define CHECKSUM_CHECK_ICMP 0
  321. #endif
  322. /* ---------- IP options ---------- */
  323. /* Define IP_FORWARD to 1 if you wish to have the ability to forward
  324. IP packets across network interfaces. If you are going to run lwIP
  325. on a device with only one network interface, define this to 0. */
  326. #define IP_FORWARD 0
  327. /* IP reassembly and segmentation.These are orthogonal even
  328. * if they both deal with IP fragments */
  329. #ifdef RT_LWIP_REASSEMBLY_FRAG
  330. #define IP_REASSEMBLY 1
  331. #define IP_FRAG 1
  332. #define IP_REASS_MAX_PBUFS 10
  333. #define MEMP_NUM_REASSDATA 10
  334. #else
  335. #define IP_REASSEMBLY 0
  336. #define IP_FRAG 0
  337. #endif
  338. /* ---------- ICMP options ---------- */
  339. #define ICMP_TTL 255
  340. /* ---------- DHCP options ---------- */
  341. /* Define LWIP_DHCP to 1 if you want DHCP configuration of
  342. interfaces. */
  343. #ifdef RT_LWIP_DHCP
  344. #define LWIP_DHCP 1
  345. #else
  346. #define LWIP_DHCP 0
  347. #endif
  348. /* 1 if you want to do an ARP check on the offered address
  349. (recommended). */
  350. #define DHCP_DOES_ARP_CHECK (LWIP_DHCP)
  351. /* ---------- AUTOIP options ------- */
  352. #define LWIP_AUTOIP 0
  353. #define LWIP_DHCP_AUTOIP_COOP (LWIP_DHCP && LWIP_AUTOIP)
  354. /* ---------- UDP options ---------- */
  355. #ifdef RT_LWIP_UDP
  356. #define LWIP_UDP 1
  357. #else
  358. #define LWIP_UDP 0
  359. #endif
  360. #define LWIP_UDPLITE 0
  361. #define UDP_TTL 255
  362. #define DEFAULT_UDP_RECVMBOX_SIZE 1
  363. /* ---------- RAW options ---------- */
  364. #define DEFAULT_RAW_RECVMBOX_SIZE 1
  365. #define DEFAULT_ACCEPTMBOX_SIZE 10
  366. /* ---------- Statistics options ---------- */
  367. #ifdef RT_LWIP_STATS
  368. #define LWIP_STATS 1
  369. #define LWIP_STATS_DISPLAY 1
  370. #else
  371. #define LWIP_STATS 0
  372. #endif
  373. #if LWIP_STATS
  374. #define LINK_STATS 1
  375. #define IP_STATS 1
  376. #define ICMP_STATS 1
  377. #define IGMP_STATS 1
  378. #define IPFRAG_STATS 1
  379. #define UDP_STATS 1
  380. #define TCP_STATS 1
  381. #define MEM_STATS 1
  382. #define MEMP_STATS 1
  383. #define PBUF_STATS 1
  384. #define SYS_STATS 1
  385. #endif /* LWIP_STATS */
  386. /* ---------- PPP options ---------- */
  387. #ifdef RT_LWIP_PPP
  388. #define PPP_SUPPORT 1 /* Set > 0 for PPP */
  389. #else
  390. #define PPP_SUPPORT 0 /* Set > 0 for PPP */
  391. #endif
  392. #if PPP_SUPPORT
  393. #define NUM_PPP 1 /* Max PPP sessions. */
  394. /* Select modules to enable. Ideally these would be set in the makefile but
  395. * we're limited by the command line length so you need to modify the settings
  396. * in this file.
  397. */
  398. #ifdef RT_LWIP_PPPOE
  399. #define PPPOE_SUPPORT 1
  400. #else
  401. #define PPPOE_SUPPORT 0
  402. #endif
  403. #ifdef RT_LWIP_PPPOS
  404. #define PPPOS_SUPPORT 1
  405. #else
  406. #define PPPOS_SUPPORT 0
  407. #endif
  408. #define PAP_SUPPORT 1 /* Set > 0 for PAP. */
  409. #define CHAP_SUPPORT 1 /* Set > 0 for CHAP. */
  410. #define MSCHAP_SUPPORT 0 /* Set > 0 for MSCHAP (NOT FUNCTIONAL!) */
  411. #define CBCP_SUPPORT 0 /* Set > 0 for CBCP (NOT FUNCTIONAL!) */
  412. #define CCP_SUPPORT 0 /* Set > 0 for CCP (NOT FUNCTIONAL!) */
  413. #define VJ_SUPPORT 1 /* Set > 0 for VJ header compression. */
  414. #define MD5_SUPPORT 1 /* Set > 0 for MD5 (see also CHAP) */
  415. #endif /* PPP_SUPPORT */
  416. /* no read/write/close for socket */
  417. #define LWIP_POSIX_SOCKETS_IO_NAMES 0
  418. /**
  419. * LWIP_NETIF_HOSTNAME==1: Support netif hostname
  420. */
  421. #ifndef LWIP_NETIF_HOSTNAME
  422. #define LWIP_NETIF_HOSTNAME 1
  423. #endif
  424. #define LWIP_NETIF_API 1
  425. /* MEMP_NUM_SYS_TIMEOUT: the number of simulateously active timeouts. */
  426. #define MEMP_NUM_SYS_TIMEOUT (LWIP_TCP + IP_REASSEMBLY + LWIP_ARP + (2*LWIP_DHCP) + LWIP_AUTOIP + LWIP_IGMP + LWIP_DNS + PPP_SUPPORT)
  427. #ifdef LWIP_IGMP
  428. #include <stdlib.h>
  429. #define LWIP_RAND rand
  430. #endif
  431. /*
  432. ------------------------------------
  433. ---------- Socket options ----------
  434. ------------------------------------
  435. */
  436. /*
  437. * LWIP_SOCKET==1: Enable Socket API (require to use sockets.c)
  438. */
  439. #ifndef LWIP_SOCKET
  440. #define LWIP_SOCKET 1
  441. #endif
  442. #include <fcntl.h>
  443. /*
  444. * LWIP_COMPAT_SOCKETS==1: Enable BSD-style sockets functions names.
  445. * (only used if you use sockets.c)
  446. */
  447. #ifdef SAL_USING_POSIX
  448. #define LWIP_COMPAT_SOCKETS 0
  449. #else
  450. #ifndef LWIP_COMPAT_SOCKETS
  451. #define LWIP_COMPAT_SOCKETS 1
  452. #endif
  453. #endif
  454. /**
  455. * LWIP_SO_SNDTIMEO==1: Enable send timeout for sockets/netconns and
  456. * SO_SNDTIMEO processing.
  457. */
  458. #ifndef LWIP_SO_SNDTIMEO
  459. #define LWIP_SO_SNDTIMEO 1
  460. #endif
  461. /**
  462. * LWIP_SO_RCVTIMEO==1: Enable receive timeout for sockets/netconns and
  463. * SO_RCVTIMEO processing.
  464. */
  465. #ifndef LWIP_SO_RCVTIMEO
  466. #define LWIP_SO_RCVTIMEO 1
  467. #endif
  468. /**
  469. * LWIP_SO_RCVBUF==1: Enable SO_RCVBUF processing.
  470. */
  471. #ifndef LWIP_SO_RCVBUF
  472. #define LWIP_SO_RCVBUF 1
  473. #endif
  474. /**
  475. * If LWIP_SO_RCVBUF is used, this is the default value for recv_bufsize.
  476. */
  477. #ifndef RECV_BUFSIZE_DEFAULT
  478. #define RECV_BUFSIZE_DEFAULT 8192
  479. #endif
  480. /**
  481. * SO_REUSE==1: Enable SO_REUSEADDR option.
  482. */
  483. #ifndef SO_REUSE
  484. #define SO_REUSE 0
  485. #endif
  486. #endif /* __LWIPOPTS_H__ */