Select one of the symbols to view example projects that use it.
 
Outline
#define LWIP_HDR_ESP_LWIPOPTS_H
#include "sdkconfig.h"
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/fcntl.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/select.h>
#include <sys/poll.h>
#include "esp_task.h"
#include "esp_random.h"
#include "sdkconfig.h"
#include "sntp/sntp_get_set_time.h"
#include "sockets_ext.h"
#include "arch/sys_arch.h"
#define LWIP_TCPIP_CORE_LOCKING
#define LWIP_TCPIP_CORE_LOCKING_INPUT
#define LWIP_TCPIP_CORE_LOCKING_INPUT
#define LOCK_TCPIP_CORE
#define UNLOCK_TCPIP_CORE
#define LWIP_ASSERT_CORE_LOCKED
#define LWIP_TCPIP_CORE_LOCKING
#define LWIP_TCPIP_CORE_LOCKING_INPUT
#define LWIP_ASSERT_CORE_LOCKED
#define LWIP_MARK_TCPIP_THREAD
#define SYS_LIGHTWEIGHT_PROT
#define MEMCPY
#define SMEMCPY
#define LWIP_RAND
#define MEM_LIBC_MALLOC
#define MEMP_MEM_MALLOC
#define MEM_ALIGNMENT
#define MEMP_NUM_NETCONN
#define MEMP_NUM_RAW_PCB
#define MEMP_NUM_TCP_PCB
#define MEMP_NUM_TCP_PCB_LISTEN
#define MEMP_NUM_UDP_PCB
#define ARP_QUEUEING
#define ETHARP_SUPPORT_STATIC_ENTRIES
#define ETHARP_SUPPORT_STATIC_ENTRIES
#define LWIP_IPV4
#define LWIP_IPV4
#define IP_REASSEMBLY
#define IP_REASSEMBLY
#define IP_FRAG
#define IP_FRAG
#define IP_FORWARD
#define IP_FORWARD
#define IP_NAPT
#define IP_NAPT_PORTMAP
#define IP_NAPT_PORTMAP
#define IP_NAPT
#define IP_REASS_MAXAGE
#define IP_REASS_MAX_PBUFS
#define IP_DEFAULT_TTL
#define LWIP_ICMP
#define LWIP_ICMP
#define LWIP_BROADCAST_PING
#define LWIP_BROADCAST_PING
#define LWIP_MULTICAST_PING
#define LWIP_MULTICAST_PING
#define LWIP_RAW
#define LWIP_DHCP
#define DHCP_DOES_ARP_CHECK
#define LWIP_DHCP_DOES_ACD_CHECK
#define DHCP_DOES_ARP_CHECK
#define LWIP_DHCP_DOES_ACD_CHECK
#define DHCP_DOES_ARP_CHECK
#define LWIP_DHCP_DOES_ACD_CHECK
#define LWIP_DHCP_GET_NTP_SRV
#define LWIP_DHCP_GET_NTP_SRV
#define ESP_DHCP_DISABLE_CLIENT_ID
#define ESP_DHCP_DISABLE_CLIENT_ID
#define LWIP_HOOK_DHCP_PRE_DISCOVERY
#define LWIP_DHCP_MAX_NTP_SERVERS
#define DHCP_OPTIONS_LEN
#define ESP_DHCP_DISABLE_VENDOR_CLASS_IDENTIFIER
#define DHCP_DEFINE_CUSTOM_TIMEOUTS
#define DHCP_COARSE_TIMER_SECS
#define DHCP_NEXT_TIMEOUT_THRESHOLD
#define DHCP_REQUEST_BACKOFF_SEQUENCE
#define DHCP_TIMEOUT_SIZE_T
timeout_from_offered(uint32_t, uint32_t)
#define LWIP_AUTOIP
#define LWIP_DHCP_AUTOIP_COOP
#define LWIP_DHCP_AUTOIP_COOP_TRIES
#define LWIP_AUTOIP_MAX_CONFLICTS
#define LWIP_AUTOIP_RATE_LIMIT_INTERVAL
#define LWIP_IGMP
#define LWIP_DNS
#define DNS_MAX_HOST_IP
#define DNS_MAX_SERVERS
#define DNS_FALLBACK_SERVER_INDEX
#define LWIP_DNS_SUPPORT_MDNS_QUERIES
#define LWIP_DNS_SUPPORT_MDNS_QUERIES
#define LWIP_DNS_SETSERVER_WITH_NETIF
#define LWIP_DNS_SETSERVER_WITH_NETIF
#define LWIP_UDP
#define LWIP_NETBUF_RECVINFO
#define LWIP_NETBUF_RECVINFO
#define LWIP_TCP
#define TCP_WND
#define TCP_MAXRTX
#define TCP_SYNMAXRTX
#define TCP_QUEUE_OOSEQ
#define TCP_QUEUE_OOSEQ
#define TCP_OOSEQ_MAX_PBUFS
#define TCP_OOSEQ_TIMEOUT
#define LWIP_TCP_SACK_OUT
#define LWIP_TCP_SACK_OUT
#define TCP_MSS
#define TCP_SND_BUF
#define TCP_LISTEN_BACKLOG
#define TCP_OVERSIZE
#define TCP_OVERSIZE
#define TCP_OVERSIZE
#define LWIP_EVENT_API
#define LWIP_CALLBACK_API
#define TCP_TMR_INTERVAL
#define TCP_MSL
#define TCP_FIN_WAIT_TIMEOUT
#define LWIP_WND_SCALE
#define TCP_RCV_SCALE
#define LWIP_WND_SCALE
#define TCP_RCV_SCALE
#define LWIP_TCP_RTO_TIME
#define LWIP_NETIF_HOSTNAME
#define LWIP_DHCP_DISCOVER_ADD_HOSTNAME
#define LWIP_NETIF_API
#define LWIP_NETIF_API
#define LWIP_NETIF_STATUS_CALLBACK
#define LWIP_NETIF_STATUS_CALLBACK
#define LWIP_NETIF_EXT_STATUS_CALLBACK
#define LWIP_NETIF_TX_SINGLE_PBUF
#define CONFIG_LWIP_NUM_NETIF_CLIENT_DATA
#define LWIP_ESP_NETIF_DATA
#define LWIP_ESP_NETIF_DATA
#define LWIP_NUM_NETIF_CLIENT_DATA
#define BRIDGEIF_MAX_PORTS
#define LWIP_HAVE_LOOPIF
#define LWIP_NETIF_LOOPBACK
#define LWIP_LOOPBACK_MAX_PBUFS
#define LWIP_HAVE_LOOPIF
#define SLIP_RX_FROM_ISR
#define SLIP_USE_RX_THREAD
#define SLIP_DEBUG
#define SLIP_DEBUG
#define TCPIP_THREAD_NAME
#define TCPIP_THREAD_STACKSIZE
#define TCPIP_THREAD_PRIO
#define TCPIP_MBOX_SIZE
#define DEFAULT_UDP_RECVMBOX_SIZE
#define DEFAULT_TCP_RECVMBOX_SIZE
#define DEFAULT_ACCEPTMBOX_SIZE
#define DEFAULT_THREAD_STACKSIZE
#define DEFAULT_THREAD_PRIO
#define DEFAULT_RAW_RECVMBOX_SIZE
#define LWIP_NETCONN
#define LWIP_NETCONN_SEM_PER_THREAD
#define LWIP_NETCONN_FULLDUPLEX
#define LWIP_SOCKET
#define LWIP_COMPAT_SOCKETS
#define LWIP_POSIX_SOCKETS_IO_NAMES
#define LWIP_SOCKET_OFFSET
#define LWIP_SO_SNDTIMEO
#define LWIP_SO_RCVTIMEO
#define LWIP_TCP_KEEPALIVE
#define LWIP_SO_LINGER
#define LWIP_SO_LINGER
#define LWIP_SO_RCVBUF
#define LWIP_SO_RCVBUF
#define SO_REUSE
#define SO_REUSE
#define SO_REUSE_RXTOALL
#define SO_REUSE_RXTOALL
#define LWIP_TIMEVAL_PRIVATE
#define LWIP_STATS
#define ESP_STATS_MEM
#define LWIP_STATS_DISPLAY
#define LWIP_STATS
#define ESP_STATS_MEM
#define PPP_SUPPORT
#define PPP_IPV6_SUPPORT
#define PPP_IPV4_SUPPORT
#define PPP_NOTIFY_PHASE
#define PAP_SUPPORT
#define CHAP_SUPPORT
#define MSCHAP_SUPPORT
#define MPPE_SUPPORT
#define PPP_SERVER
#define VJ_SUPPORT
#define PPP_MAXIDLEFLAG
#define LCP_ECHOINTERVAL
#define LCP_MAXECHOFAILS
#define PPP_DEBUG
#define PRINTPKT_SUPPORT
#define PPP_PROTOCOLNAME
#define PPP_DEBUG
#define PPP_SUPPORT
#define LWIP_USE_EXTERNAL_MBEDTLS
#define LWIP_USE_EXTERNAL_MBEDTLS
#define CHECKSUM_CHECK_IP
#define CHECKSUM_CHECK_IP
#define CHECKSUM_CHECK_UDP
#define CHECKSUM_CHECK_UDP
#define CHECKSUM_CHECK_ICMP
#define CHECKSUM_CHECK_ICMP
#define LWIP_IPV6
#define LWIP_IPV6
#define LWIP_ND6
#define LWIP_ND6
#define LWIP_FORCE_ROUTER_FORWARDING
#define LWIP_FORCE_ROUTER_FORWARDING
#define LWIP_IPV6_NUM_ADDRESSES
#define LWIP_IPV6_FORWARD
#define LWIP_IPV6_FORWARD
#define LWIP_IPV6_FRAG
#define LWIP_IPV6_FRAG
#define LWIP_IPV6_REASS
#define LWIP_IPV6_REASS
#define ESP_IPV6_AUTOCONFIG
#define ESP_IPV6_AUTOCONFIG
#define LWIP_ND6_RDNSS_MAX_DNS_SERVERS
#define LWIP_IPV6_DHCP6
#define LWIP_IPV6_DHCP6
#define MEMP_NUM_ND6_QUEUE
#define LWIP_ND6_NUM_NEIGHBORS
#define LWIP_ND6_NUM_PREFIXES
#define LWIP_ND6_NUM_ROUTERS
#define LWIP_ND6_NUM_DESTINATIONS
#define LWIP_HOOK_FILENAME
#define LWIP_HOOK_IP4_ROUTE_SRC
#define LWIP_DONE_SOCK
#define LWIP_DONE_SOCK
#define LWIP_DEBUG
#define ETHARP_DEBUG
#define ETHARP_DEBUG
#define NETIF_DEBUG
#define NETIF_DEBUG
#define PBUF_DEBUG
#define PBUF_DEBUG
#define API_LIB_DEBUG
#define API_LIB_DEBUG
#define SOCKETS_DEBUG
#define SOCKETS_DEBUG
#define ICMP_DEBUG
#define ICMP_DEBUG
#define ICMP6_DEBUG
#define ICMP6_DEBUG
#define DHCP_DEBUG
#define DHCP_DEBUG
#define ESP_DHCP_DEBUG
#define ESP_DHCP_DEBUG
#define IP_DEBUG
#define IP_DEBUG
#define IP6_DEBUG
#define IP6_DEBUG
#define TCP_DEBUG
#define TCP_DEBUG
#define UDP_DEBUG
#define UDP_DEBUG
#define SNTP_DEBUG
#define SNTP_DEBUG
#define DNS_DEBUG
#define DNS_DEBUG
#define NAPT_DEBUG
#define NAPT_DEBUG
#define MEMP_DEBUG
#define TCP_INPUT_DEBUG
#define TCP_OUTPUT_DEBUG
#define TCPIP_DEBUG
#define TCP_OOSEQ_DEBUG
#define BRIDGEIF_DEBUG
#define BRIDGEIF_FDB_DEBUG
#define BRIDGEIF_FW_DEBUG
#define SNTP_MAX_SERVERS
#define SNTP_SERVER_DNS
#define SNTP_SUPPRESS_DELAY_CHECK
#define SNTP_UPDATE_DELAY
#define SNTP_SET_SYSTEM_TIME_US
#define SNTP_GET_SYSTEM_TIME
#define SNTP_STARTUP_DELAY
#define SNTP_STARTUP_DELAY_FUNC
#define SNTP_STARTUP_DELAY
#define ESP_LWIP_IGMP_TIMERS_ONDEMAND
#define ESP_LWIP_MLD6_TIMERS_ONDEMAND
#define ESP_LWIP_DHCP_FINE_TIMERS_ONDEMAND
#define ESP_LWIP_DNS_TIMERS_ONDEMAND
#define ESP_LWIP_IP4_REASSEMBLY_TIMERS_ONDEMAND
#define ESP_LWIP_IP6_REASSEMBLY_TIMERS_ONDEMAND
#define ESP_LWIP_IGMP_TIMERS_ONDEMAND
#define ESP_LWIP_MLD6_TIMERS_ONDEMAND
#define ESP_LWIP_DHCP_FINE_TIMERS_ONDEMAND
#define ESP_LWIP_DNS_TIMERS_ONDEMAND
#define ESP_LWIP_IP4_REASSEMBLY_TIMERS_ONDEMAND
#define ESP_LWIP_IP6_REASSEMBLY_TIMERS_ONDEMAND
#define ESP_GRATUITOUS_ARP
#define ESP_GRATUITOUS_ARP_INTERVAL
#define ESP_GRATUITOUS_ARP
#define ESP_MLDV6_REPORT
#define ESP_MLDV6_REPORT
#define ESP_LWIP
#define ESP_LWIP_ARP
#define ESP_PER_SOC_TCP_WND
#define ESP_THREAD_SAFE
#define ESP_THREAD_SAFE_DEBUG
#define ESP_DHCP
#define ESP_DNS
#define ESP_STATS_TCP
#define ESP_LWIP_LOGI
#define ESP_PING
#define ESP_HAS_SELECT
#define ESP_IP4_ROUTE
#define ESP_AUTO_IP
#define ESP_PBUF
#define ESP_PPP
#define ESP_IPV6
#define ESP_SOCKET
#define ESP_LWIP_SELECT
#define ESP_LWIP_LOCK
#define ESP_THREAD_PROTECTION
#define LWIP_SUPPORT_CUSTOM_PBUF
#define ESP_LWIP_FALLBACK_DNS_PREFER_IPV4
#define ESP_DHCPS
#define ESP_DHCPS_TIMER
#define ESP_DHCPS
#define ESP_DHCPS_TIMER
#define LWIP_NETCONN_THREAD_SEM_GET
#define LWIP_NETCONN_THREAD_SEM_ALLOC
#define LWIP_NETCONN_THREAD_SEM_FREE
#define mem_clib_malloc
#define mem_clib_calloc
#define mem_clib_malloc
#define mem_clib_calloc
Files
loading...
SourceVuESP-IDF Framework and ExampleslwIPport/include/lwipopts.h
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* * SPDX-FileCopyrightText: 2001-2003 Swedish Institute of Computer Science * * SPDX-License-Identifier: BSD-3-Clause * * SPDX-FileContributor: 2015-2024 Espressif Systems (Shanghai) CO LTD *//* ... */ #ifndef LWIP_HDR_ESP_LWIPOPTS_H #define LWIP_HDR_ESP_LWIPOPTS_H #include "sdkconfig.h" #include <string.h> // For memcpy #include <stdlib.h> // For malloc/free #include <unistd.h> #include <sys/fcntl.h> #include <sys/ioctl.h> #include <sys/types.h> #include <sys/select.h> #include <sys/poll.h> #include "esp_task.h" #include "esp_random.h" #include "sdkconfig.h" #include "sntp/sntp_get_set_time.h" #include "sockets_ext.h" #include "arch/sys_arch.h"15 includes #ifdef __cplusplus extern "C" { #endif /* ----------------------------------------------- ---------- Platform specific locking ---------- ----------------------------------------------- *//* ... */ /** * LWIP_TCPIP_CORE_LOCKING * Creates a global mutex that is held during TCPIP thread operations. * Can be locked by client code to perform lwIP operations without changing * into TCPIP thread using callbacks. See LOCK_TCPIP_CORE() and * UNLOCK_TCPIP_CORE(). * Your system should provide mutexes supporting priority inversion to use this. *//* ... */ #ifdef CONFIG_LWIP_TCPIP_CORE_LOCKING #define LWIP_TCPIP_CORE_LOCKING 1 #ifdef CONFIG_LWIP_TCPIP_CORE_LOCKING_INPUT #define LWIP_TCPIP_CORE_LOCKING_INPUT 1 #else #define LWIP_TCPIP_CORE_LOCKING_INPUT 0 #endif #define LOCK_TCPIP_CORE() do { sys_mutex_lock(&lock_tcpip_core); sys_thread_tcpip(LWIP_CORE_LOCK_MARK_HOLDER); } while(0) #define UNLOCK_TCPIP_CORE() do { sys_thread_tcpip(LWIP_CORE_LOCK_UNMARK_HOLDER); sys_mutex_unlock(&lock_tcpip_core); } while(0) #ifdef CONFIG_LWIP_CHECK_THREAD_SAFETY #define LWIP_ASSERT_CORE_LOCKED() do { LWIP_ASSERT("Required to lock TCPIP core functionality!", sys_thread_tcpip(LWIP_CORE_LOCK_QUERY_HOLDER)); } while(0) #endif /* CONFIG_LWIP_CHECK_THREAD_SAFETY */ /* ... */ #else #define LWIP_TCPIP_CORE_LOCKING 0 #define LWIP_TCPIP_CORE_LOCKING_INPUT 0 #ifdef CONFIG_LWIP_CHECK_THREAD_SAFETY #define LWIP_ASSERT_CORE_LOCKED() do { LWIP_ASSERT("Required to run in TCPIP context!", sys_thread_tcpip(LWIP_CORE_LOCK_QUERY_HOLDER)); } while(0) #endif /* CONFIG_LWIP_CHECK_THREAD_SAFETY *//* ... */ #endif /* CONFIG_LWIP_TCPIP_CORE_LOCKING */ #define LWIP_MARK_TCPIP_THREAD() sys_thread_tcpip(LWIP_CORE_MARK_TCPIP_TASK) /** * SYS_LIGHTWEIGHT_PROT==1: if you want inter-task protection for certain * critical regions during buffer allocation, deallocation and memory * allocation and deallocation. *//* ... */ #define SYS_LIGHTWEIGHT_PROT 1 /** * MEMCPY: override this if you have a faster implementation at hand than the * one included in your C library *//* ... */ #define MEMCPY(dst,src,len) memcpy(dst,src,len) /** * SMEMCPY: override this with care! Some compilers (e.g. gcc) can inline a * call to memcpy() if the length is known at compile time and is small. *//* ... */ #define SMEMCPY(dst,src,len) memcpy(dst,src,len) #define LWIP_RAND esp_random /* ------------------------------------ ---------- Memory options ---------- ------------------------------------ *//* ... */ /** * MEM_LIBC_MALLOC==1: Use malloc/free/realloc provided by your C-library * instead of the lwip internal allocator. Can save code size if you * already use it. *//* ... */ #define MEM_LIBC_MALLOC 1 /** * MEMP_MEM_MALLOC==1: Use mem_malloc/mem_free instead of the lwip pool allocator. * Especially useful with MEM_LIBC_MALLOC but handle with care regarding execution * speed and usage from interrupts! *//* ... */ #define MEMP_MEM_MALLOC 1 /** * MEM_ALIGNMENT: should be set to the alignment of the CPU * 4 byte alignment -> #define MEM_ALIGNMENT 4 * 2 byte alignment -> #define MEM_ALIGNMENT 2 *//* ... */ #define MEM_ALIGNMENT 4 /* ------------------------------------------------ ---------- Internal Memory Pool Sizes ---------- ------------------------------------------------ *//* ... */ /** * MEMP_NUM_NETCONN: the number of struct netconns. * (only needed if you use the sequential API, like api_lib.c) *//* ... */ #define MEMP_NUM_NETCONN CONFIG_LWIP_MAX_SOCKETS /** * MEMP_NUM_RAW_PCB: Number of raw connection PCBs * (requires the LWIP_RAW option) *//* ... */ #define MEMP_NUM_RAW_PCB CONFIG_LWIP_MAX_RAW_PCBS /** * MEMP_NUM_TCP_PCB: the number of simultaneously active TCP connections. * (requires the LWIP_TCP option) *//* ... */ #define MEMP_NUM_TCP_PCB CONFIG_LWIP_MAX_ACTIVE_TCP /** * MEMP_NUM_TCP_PCB_LISTEN: the number of listening TCP connections. * (requires the LWIP_TCP option) *//* ... */ #define MEMP_NUM_TCP_PCB_LISTEN CONFIG_LWIP_MAX_LISTENING_TCP /** * MEMP_NUM_UDP_PCB: the number of UDP protocol control blocks. One * per active UDP "connection". * (requires the LWIP_UDP option) *//* ... */ #define MEMP_NUM_UDP_PCB CONFIG_LWIP_MAX_UDP_PCBS /* -------------------------------- ---------- ARP options ------- -------------------------------- *//* ... */ /** * ARP_QUEUEING==1: Multiple outgoing packets are queued during hardware address * resolution. By default, only the most recent packet is queued per IP address. * This is sufficient for most protocols and mainly reduces TCP connection * startup time. Set this to 1 if you know your application sends more than one * packet in a row to an IP address that is not in the ARP cache. *//* ... */ #define ARP_QUEUEING 114 defines #ifdef CONFIG_LWIP_DHCPS_STATIC_ENTRIES #define ETHARP_SUPPORT_STATIC_ENTRIES 1 #else #define ETHARP_SUPPORT_STATIC_ENTRIES 0 #endif /* -------------------------------- ---------- IP options ---------- -------------------------------- *//* ... */ /** * LWIP_IPV4==1: Enable IPv4 *//* ... */ #ifdef CONFIG_LWIP_IPV4 #define LWIP_IPV4 1 #else #define LWIP_IPV4 0 #endif /** * IP_REASSEMBLY==1: Reassemble incoming fragmented IP4 packets. Note that * this option does not affect outgoing packet sizes, which can be controlled * via IP_FRAG. *//* ... */ #ifdef CONFIG_LWIP_IP4_REASSEMBLY #define IP_REASSEMBLY 1 #else #define IP_REASSEMBLY 0 #endif /** * IP_FRAG==1: Fragment outgoing IP4 packets if their size exceeds MTU. Note * that this option does not affect incoming packet sizes, which can be * controlled via IP_REASSEMBLY. *//* ... */ #ifdef CONFIG_LWIP_IP4_FRAG #define IP_FRAG 1 #else #define IP_FRAG 0 #endif /** * IP_FORWARD==1: Enables the ability to forward IP packets across network * interfaces. If you are going to run lwIP on a device with only one network * interface, define this to 0. *//* ... */ #ifdef CONFIG_LWIP_IP_FORWARD #define IP_FORWARD 1 #else #define IP_FORWARD 0 #endif /** * IP_NAPT==1: Enables IPv4 Network Address and Port Translation. * Note that CONFIG_LWIP_IP_FORWARD option need to be enabled in * system configuration for the NAPT to work on ESP platform *//* ... */ #ifdef CONFIG_LWIP_IPV4_NAPT #define IP_NAPT 1 #ifdef CONFIG_LWIP_IPV4_NAPT_PORTMAP #define IP_NAPT_PORTMAP 1 #else #define IP_NAPT_PORTMAP 0 #endif /* ... */ #else #define IP_NAPT 0 #endif /** * IP_REASS_MAXAGE: Maximum time (in multiples of IP_TMR_INTERVAL - so seconds, normally) * a fragmented IP packet waits for all fragments to arrive. If not all fragments arrived * in this time, the whole packet is discarded. *//* ... */ #define IP_REASS_MAXAGE 3 /** * IP_REASS_MAX_PBUFS: Total maximum amount of pbufs waiting to be reassembled. * Since the received pbufs are enqueued, be sure to configure * PBUF_POOL_SIZE > IP_REASS_MAX_PBUFS so that the stack is still able to receive * packets even if the maximum amount of fragments is enqueued for reassembly! *//* ... */ #define IP_REASS_MAX_PBUFS CONFIG_LWIP_IP_REASS_MAX_PBUFS /** * IP_DEFAULT_TTL: Default value for Time-To-Live used by transport layers. *//* ... */ #define IP_DEFAULT_TTL CONFIG_LWIP_IP_DEFAULT_TTL /* ---------------------------------- ---------- ICMP options ---------- ---------------------------------- *//* ... */ /** * LWIP_ICMP==1: Enable ICMP module inside the IP stack. * Be careful, disable that make your product non-compliant to RFC1122 *//* ... */ #ifdef CONFIG_LWIP_ICMP #define LWIP_ICMP 1 #else #define LWIP_ICMP 0 #endif /** * LWIP_BROADCAST_PING==1: respond to broadcast pings (default is unicast only) *//* ... */ #ifdef CONFIG_LWIP_BROADCAST_PING #define LWIP_BROADCAST_PING 1 #else #define LWIP_BROADCAST_PING 0 #endif /** * LWIP_MULTICAST_PING==1: respond to multicast pings (default is unicast only) *//* ... */ #ifdef CONFIG_LWIP_MULTICAST_PING #define LWIP_MULTICAST_PING 1 #else #define LWIP_MULTICAST_PING 0 #endif /* --------------------------------- ---------- RAW options ---------- --------------------------------- *//* ... */ /** * LWIP_RAW==1: Enable application layer to hook into the IP layer itself. *//* ... */ #define LWIP_RAW 1 /* ---------------------------------- ---------- DHCP options ---------- ---------------------------------- *//* ... */ #if CONFIG_LWIP_IPV4 /** * LWIP_DHCP==1: Enable DHCP module. *//* ... */ #define LWIP_DHCP 1 /** * LWIP_DHCP_CHECKS_OFFERED_ADDRESS: * - Using Address Conflict Detection (ACD) module assures that the offered IP address * is properly probed and announced before binding in DHCP. This conforms to RFC5227, * but takes several seconds. * - Using ARP check, we only send two ARP requests to check for replies. This process * lasts 1 - 2 seconds. * - No conflict detection: We directly bind the offered address. *//* ... */ #ifdef CONFIG_LWIP_DHCP_DOES_ARP_CHECK #define DHCP_DOES_ARP_CHECK 1 #define LWIP_DHCP_DOES_ACD_CHECK 1/* ... */ #elif CONFIG_LWIP_DHCP_DOES_ACD_CHECK #define DHCP_DOES_ARP_CHECK 0 #define LWIP_DHCP_DOES_ACD_CHECK 1/* ... */ #else #define DHCP_DOES_ARP_CHECK 0 #define LWIP_DHCP_DOES_ACD_CHECK 0/* ... */ #endif /** * LWIP_DHCP_GETS_NTP==1: Request NTP servers with discover/select. For each * response packet, an callback is called, which has to be provided by the port: * void dhcp_set_ntp_servers(u8_t num_ntp_servers, ip_addr_t* ntp_server_addrs); *//* ... */ #ifdef CONFIG_LWIP_DHCP_GET_NTP_SRV #define LWIP_DHCP_GET_NTP_SRV 1 #else #define LWIP_DHCP_GET_NTP_SRV 0 #endif /** * ESP specific option only applicable if ESP_DHCP=1 * LWIP_DHCP_DISABLE_CLIENT_ID==1: Do not add option 61 (client-id) to DHCP packets * *//* ... */ #ifdef CONFIG_LWIP_DHCP_DISABLE_CLIENT_ID #define ESP_DHCP_DISABLE_CLIENT_ID 1 #else #define ESP_DHCP_DISABLE_CLIENT_ID 0 #endif /** * ESP specific option only applicable if ESP_DHCP=1 * CONFIG_LWIP_DHCP_RESTORE_LAST_IP==1: Last valid IP address obtained from DHCP server * is restored after reset/power-up. *//* ... */ #ifdef CONFIG_LWIP_DHCP_RESTORE_LAST_IP /* * Make the post-init hook check if we could restore the previously bound address * - if yes reset the state to bound and mark result as ERR_OK (which skips discovery state) * - if no, return false to continue normally to the discovery state *//* ... */ #define LWIP_HOOK_DHCP_POST_INIT(netif, result) \ (dhcp_ip_addr_restore(netif) ? ( dhcp_set_state(dhcp, DHCP_STATE_BOUND), \ dhcp_network_changed_link_up(netif), \ (result) = ERR_OK , \ true ) : \ false)... /* ... */#else #define LWIP_HOOK_DHCP_PRE_DISCOVERY(netif, result) (false) #endif /* CONFIG_LWIP_DHCP_RESTORE_LAST_IP */ /** * The maximum of NTP servers requested *//* ... */ #define LWIP_DHCP_MAX_NTP_SERVERS CONFIG_LWIP_DHCP_MAX_NTP_SERVERS /** * CONFIG_LWIP_DHCP_OPTIONS_LEN: The total length of outgoing DHCP option msg. If you have many options * and options value is too long, you can configure the length according to your requirements *//* ... */ #define DHCP_OPTIONS_LEN CONFIG_LWIP_DHCP_OPTIONS_LEN /** * LWIP_DHCP_DISABLE_VENDOR_CLASS_ID==1: Do not add option 60 (Vendor Class Identifier) to DHCP packets *//* ... */ #define ESP_DHCP_DISABLE_VENDOR_CLASS_IDENTIFIER CONFIG_LWIP_DHCP_DISABLE_VENDOR_CLASS_ID #define DHCP_DEFINE_CUSTOM_TIMEOUTS 1 #define DHCP_COARSE_TIMER_SECS CONFIG_LWIP_DHCP_COARSE_TIMER_SECS #define DHCP_NEXT_TIMEOUT_THRESHOLD (3) /* Since for embedded devices it's not that hard to miss a discover packet, so lower * the discover and request retry backoff time from (2,4,8,16,32,60,60)s to (500m,1,2,4,4,4,4)s. *//* ... */ #define DHCP_REQUEST_BACKOFF_SEQUENCE(state, tries) ((uint16_t)(((tries) < 5 ? 1 << (tries) : 16) * 250)) /* Use custom DHCP timeout type to support longer lease times (with IDF coarse timer granularity) *//* ... */ #define DHCP_TIMEOUT_SIZE_T u32_t8 defines static inline uint32_t timeout_from_offered(uint32_t lease, uint32_t min) { uint32_t timeout = lease; if (timeout == 0) { timeout = min; }{...} timeout = (timeout + DHCP_COARSE_TIMER_SECS - 1) / DHCP_COARSE_TIMER_SECS; return timeout; }{ ... } #define DHCP_SET_TIMEOUT_FROM_OFFERED_T0_LEASE(tout, dhcp) do { \ (tout) = timeout_from_offered((dhcp)->offered_t0_lease, 120); }{...} while(0)... #define DHCP_SET_TIMEOUT_FROM_OFFERED_T1_RENEW(tout, dhcp) do { \ (tout) = timeout_from_offered((dhcp)->offered_t1_renew, (dhcp)->t0_timeout>>1 /* 50% */ ); }{...} while(0)... #define DHCP_SET_TIMEOUT_FROM_OFFERED_T2_REBIND(tout, dhcp) do { \ (tout) = timeout_from_offered((dhcp)->offered_t2_rebind, ((dhcp)->t0_timeout/8)*7 /* 87.5% */ ); }{...} while(0)... #define LWIP_HOOK_DHCP_PARSE_OPTION(netif, dhcp, state, msg, msg_type, option, len, pbuf, offset) \ do { LWIP_UNUSED_ARG(msg); \ dhcp_parse_extra_opts(dhcp, state, option, len, pbuf, offset); \ }{...} while(0)... #define LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, state, msg, msg_type, options_len_ptr) \ dhcp_append_extra_opts(netif, state, msg, options_len_ptr);... 5 defines /* ... */#endif /* CONFIG_LWIP_IPV4 */ /* ------------------------------------ ---------- AUTOIP options ---------- ------------------------------------ *//* ... */ /** * LWIP_AUTOIP==1: Enable AUTOIP module. *//* ... */ #ifdef CONFIG_LWIP_AUTOIP #define LWIP_AUTOIP 1 /** * LWIP_DHCP_AUTOIP_COOP==1: Allow DHCP and AUTOIP to be both enabled on * the same interface at the same time. *//* ... */ #define LWIP_DHCP_AUTOIP_COOP 1 /** * LWIP_DHCP_AUTOIP_COOP_TRIES: Set to the number of DHCP DISCOVER probes * that should be sent before falling back on AUTOIP. This can be set * as low as 1 to get an AutoIP address very quickly, but you should * be prepared to handle a changing IP address when DHCP overrides * AutoIP. *//* ... */ #define LWIP_DHCP_AUTOIP_COOP_TRIES CONFIG_LWIP_AUTOIP_TRIES /** * ESP specific option only applicable if ESP_DHCP=1 * LWIP_AUTOIP_MAX_CONFLICTS: Defines max conflicts before rate limiting *//* ... */ #define LWIP_AUTOIP_MAX_CONFLICTS CONFIG_LWIP_AUTOIP_MAX_CONFLICTS /** * ESP specific option only applicable if ESP_DHCP=1 * LWIP_AUTOIP_RATE_LIMIT_INTERVAL: Delay in seconds between successive attempts *//* ... */ #define LWIP_AUTOIP_RATE_LIMIT_INTERVAL CONFIG_LWIP_AUTOIP_RATE_LIMIT_INTERVAL5 defines /* ... */ #endif /* CONFIG_LWIP_AUTOIP */ /* ---------------------------------- ---------- IGMP options ---------- ---------------------------------- *//* ... */ /** * LWIP_IGMP==1: Turn on IGMP module. *//* ... */ #define LWIP_IGMP 1 /* ---------------------------------- ---------- DNS options ----------- ---------------------------------- *//* ... */ /** * LWIP_DNS==1: Turn on DNS module. UDP must be available for DNS * transport. *//* ... */ #define LWIP_DNS 1 /** The maximum number of IP addresses per host *//* ... */ #define DNS_MAX_HOST_IP CONFIG_LWIP_DNS_MAX_HOST_IP /** The maximum of DNS servers *//* ... */ #define DNS_MAX_SERVERS CONFIG_LWIP_DNS_MAX_SERVERS /** ESP specific option only applicable if ESP_DNS=1 * * The last server can be initialized automatically by defining * FALLBACK_DNS_SERVER_ADDRESS(ipaddr), where 'ipaddr' is an 'ip_addr_t*' *//* ... */ #define DNS_FALLBACK_SERVER_INDEX (DNS_MAX_SERVERS - 1)5 defines #ifdef CONFIG_LWIP_FALLBACK_DNS_SERVER_SUPPORT #define FALLBACK_DNS_SERVER_ADDRESS(address) \ do { ip_addr_t *server_dns = address; \ char server_ip[] = CONFIG_LWIP_FALLBACK_DNS_SERVER_ADDRESS; \ ipaddr_aton(server_ip, server_dns); \ }{...} while (0)... /* ... */#endif /* CONFIG_LWIP_FALLBACK_DNS_SERVER_SUPPORT */ /** * LWIP_DNS_SUPPORT_MDNS_QUERIES==1: Enable mDNS queries in hostname resolution. * This option is set via menuconfig. *//* ... */ #ifdef CONFIG_LWIP_DNS_SUPPORT_MDNS_QUERIES #define LWIP_DNS_SUPPORT_MDNS_QUERIES 1 #else #define LWIP_DNS_SUPPORT_MDNS_QUERIES 0 #endif /** * LWIP_DNS_SETSERVER_WITH_NETIF: If this is turned on, the dns_setserver_with_netif() is enabled and called * from all internal modules (instead of dns_setserver()) allowing to setup a user callback to collect DNS server * information acquired by the related network interface. *//* ... */ #ifdef CONFIG_LWIP_DNS_SETSERVER_WITH_NETIF #define LWIP_DNS_SETSERVER_WITH_NETIF 1 #else #define LWIP_DNS_SETSERVER_WITH_NETIF 0 #endif /* --------------------------------- ---------- UDP options ---------- --------------------------------- *//* ... */ /** * LWIP_UDP==1: Turn on UDP. *//* ... */ #define LWIP_UDP 1 /** * LWIP_NETBUF_RECVINFO==1: Enable IP_PKTINFO option. * This option is set via menuconfig. *//* ... */ #ifdef CONFIG_LWIP_NETBUF_RECVINFO #define LWIP_NETBUF_RECVINFO 1 #else #define LWIP_NETBUF_RECVINFO 0 #endif /* --------------------------------- ---------- TCP options ---------- --------------------------------- *//* ... */ /** * LWIP_TCP==1: Turn on TCP. *//* ... */ #define LWIP_TCP 1 /** * TCP_WND: The size of a TCP window. This must be at least * (2 * TCP_MSS) for things to work well. * ATTENTION: when using TCP_RCV_SCALE, TCP_WND is the total size * with scaling applied. Maximum window value in the TCP header * will be TCP_WND >> TCP_RCV_SCALE *//* ... */ #define TCP_WND CONFIG_LWIP_TCP_WND_DEFAULT /** * TCP_MAXRTX: Maximum number of retransmissions of data segments. *//* ... */ #define TCP_MAXRTX CONFIG_LWIP_TCP_MAXRTX /** * TCP_SYNMAXRTX: Maximum number of retransmissions of SYN segments. *//* ... */ #define TCP_SYNMAXRTX CONFIG_LWIP_TCP_SYNMAXRTX /** * TCP_QUEUE_OOSEQ==1: TCP will queue segments that arrive out of order. * Define to 0 if your device is low on memory. *//* ... */ #ifdef CONFIG_LWIP_TCP_QUEUE_OOSEQ #define TCP_QUEUE_OOSEQ 1 #else #define TCP_QUEUE_OOSEQ 0 #endif /** * TCP_OOSEQ_MAX_PBUFS: The maximum number of pbufs * queued on ooseq per pcb *//* ... */ #if TCP_QUEUE_OOSEQ #define TCP_OOSEQ_MAX_PBUFS CONFIG_LWIP_TCP_OOSEQ_MAX_PBUFS #endif /** * TCP_OOSEQ_TIMEOUT: Timeout for each pbuf queued in TCP OOSEQ, in RTOs. *//* ... */ #if TCP_QUEUE_OOSEQ #define TCP_OOSEQ_TIMEOUT CONFIG_LWIP_TCP_OOSEQ_TIMEOUT #endif /** * LWIP_TCP_SACK_OUT==1: TCP will support sending selective acknowledgements (SACKs). *//* ... */ #ifdef CONFIG_LWIP_TCP_SACK_OUT #define LWIP_TCP_SACK_OUT 1 #else #define LWIP_TCP_SACK_OUT 0 #endif /** * TCP_MSS: TCP Maximum segment size. (default is 536, a conservative default, * you might want to increase this.) * For the receive side, this MSS is advertised to the remote side * when opening a connection. For the transmit size, this MSS sets * an upper limit on the MSS advertised by the remote host. *//* ... */ #define TCP_MSS CONFIG_LWIP_TCP_MSS /** * TCP_SND_BUF: TCP sender buffer space (bytes). * To achieve good performance, this should be at least 2 * TCP_MSS. *//* ... */ #define TCP_SND_BUF CONFIG_LWIP_TCP_SND_BUF_DEFAULT /** * TCP_LISTEN_BACKLOG: Enable the backlog option for tcp listen pcb. *//* ... */ #define TCP_LISTEN_BACKLOG 1 /** * TCP_OVERSIZE: The maximum number of bytes that tcp_write may * allocate ahead of time *//* ... */ #ifdef CONFIG_LWIP_TCP_OVERSIZE_MSS #define TCP_OVERSIZE TCP_MSS #endif #ifdef CONFIG_LWIP_TCP_OVERSIZE_QUARTER_MSS #define TCP_OVERSIZE (TCP_MSS/4) #endif #ifdef CONFIG_LWIP_TCP_OVERSIZE_DISABLE #define TCP_OVERSIZE 0 #endif #ifndef TCP_OVERSIZE #error "One of CONFIG_TCP_OVERSIZE_xxx options should be set by sdkconfig" #endif /** * LWIP_EVENT_API and LWIP_CALLBACK_API: Only one of these should be set to 1. * LWIP_EVENT_API==1: The user defines lwip_tcp_event() to receive all * events (accept, sent, etc) that happen in the system. * LWIP_CALLBACK_API==1: The PCB callback function is called directly * for the event. This is the default. *//* ... */ #define LWIP_EVENT_API 0 #define LWIP_CALLBACK_API 1 /** * TCP_TMR_INTERVAL: TCP timer interval *//* ... */ #define TCP_TMR_INTERVAL CONFIG_LWIP_TCP_TMR_INTERVAL /** * TCP_MSL: The maximum segment lifetime in milliseconds *//* ... */ #define TCP_MSL CONFIG_LWIP_TCP_MSL /** * TCP_FIN_WAIT_TIMEOUT: The maximum FIN segment lifetime in milliseconds *//* ... */ #define TCP_FIN_WAIT_TIMEOUT CONFIG_LWIP_TCP_FIN_WAIT_TIMEOUT5 defines /** * LWIP_WND_SCALE and TCP_RCV_SCALE: * Set LWIP_WND_SCALE to 1 to enable window scaling. * Set TCP_RCV_SCALE to the desired scaling factor (shift count in the * range of [0..14]). * When LWIP_WND_SCALE is enabled but TCP_RCV_SCALE is 0, we can use a large * send window while having a small receive window only. *//* ... */ #ifdef CONFIG_LWIP_WND_SCALE #define LWIP_WND_SCALE 1 #define TCP_RCV_SCALE CONFIG_LWIP_TCP_RCV_SCALE/* ... */ #else #define LWIP_WND_SCALE 0 #define TCP_RCV_SCALE 0/* ... */ #endif /* CONFIG_LWIP_WND_SCALE */ /** * ESP specific option only applicable if ESP_LWIP=1 * LWIP_TCP_RTO_TIME: TCP rto time. * Default is 3 second. *//* ... */ #define LWIP_TCP_RTO_TIME CONFIG_LWIP_TCP_RTO_TIME /* ------------------------------------------------ ---------- Network Interfaces options ---------- ------------------------------------------------ *//* ... */ /** * LWIP_NETIF_HOSTNAME==1: use DHCP_OPTION_HOSTNAME with netif's hostname * field. * LWIP_DHCP_DISCOVER_ADD_HOSTNAME==1: include hostname opt in discover packets. * If the hostname is not set in the DISCOVER packet, then some servers might issue * an OFFER with hostname configured and consequently reject the REQUEST with any other hostname. *//* ... */ #define LWIP_NETIF_HOSTNAME 1 #define LWIP_DHCP_DISCOVER_ADD_HOSTNAME 1 /** * LWIP_NETIF_API==1: Support netif api (in netifapi.c) *//* ... */ #ifdef CONFIG_LWIP_NETIF_API #define LWIP_NETIF_API 1 #else #define LWIP_NETIF_API 0 #endif /** * LWIP_NETIF_STATUS_CALLBACK==1: Support a callback function whenever an interface * changes its up/down status (i.e., due to DHCP IP acquisition) *//* ... */ #ifdef CONFIG_LWIP_NETIF_STATUS_CALLBACK #define LWIP_NETIF_STATUS_CALLBACK 1 #else #define LWIP_NETIF_STATUS_CALLBACK 0 #endif /** * LWIP_NETIF_EXT_STATUS_CALLBACK==1: Support an extended callback function * for several netif related event that supports multiple subscribers. * * This ext-callback is used by ESP-NETIF with lwip-orig (upstream version) * to provide netif related events on IP4/IP6 address/status changes *//* ... */ #define LWIP_NETIF_EXT_STATUS_CALLBACK 1 /** * LWIP_NETIF_TX_SINGLE_PBUF: if this is set to 1, lwIP *tries* to put all data * to be sent into one single pbuf. This is for compatibility with DMA-enabled * MACs that do not support scatter-gather. * Beware that this might involve CPU-memcpy before transmitting that would not * be needed without this flag! Use this only if you need to! * * ATTENTION: a driver should *NOT* rely on getting single pbufs but check TX * pbufs for being in one piece. If not, @ref pbuf_clone can be used to get * a single pbuf: * if (p->next != NULL) { * struct pbuf *q = pbuf_clone(PBUF_RAW, PBUF_RAM, p); * if (q == NULL) { * return ERR_MEM; * } * p = q; ATTENTION: do NOT free the old 'p' as the ref belongs to the caller! * } *//* ... */ #define LWIP_NETIF_TX_SINGLE_PBUF 1 /** * LWIP_NUM_NETIF_CLIENT_DATA: Number of clients that may store * data in client_data member array of struct netif (max. 256). *//* ... */ #ifndef CONFIG_LWIP_NUM_NETIF_CLIENT_DATA #define CONFIG_LWIP_NUM_NETIF_CLIENT_DATA 0 #endif #if defined(CONFIG_ESP_NETIF_BRIDGE_EN) || defined(CONFIG_LWIP_PPP_SUPPORT) /* * If special lwip interfaces (like bridge, ppp) enabled * `netif->state` is used internally and we must store esp-netif ptr * in `netif->client_data` *//* ... */ #define LWIP_ESP_NETIF_DATA (1)/* ... */ #else #define LWIP_ESP_NETIF_DATA (0) #endif #define LWIP_NUM_NETIF_CLIENT_DATA (LWIP_ESP_NETIF_DATA + CONFIG_LWIP_NUM_NETIF_CLIENT_DATA) /** * BRIDGEIF_MAX_PORTS: this is used to create a typedef used for forwarding * bit-fields: the number of bits required is this + 1 (for the internal/cpu port) *//* ... */ #ifdef CONFIG_LWIP_BRIDGEIF_MAX_PORTS #define BRIDGEIF_MAX_PORTS CONFIG_LWIP_BRIDGEIF_MAX_PORTS #endif /* ------------------------------------ ---------- LOOPIF options ---------- ------------------------------------ *//* ... */ /** * LWIP_HAVE_LOOPIF==1: Support loop interface (127.0.0.1). * This is only needed when no real netifs are available. If at least one other *//* ... */ #ifdef CONFIG_LWIP_NETIF_LOOPBACK #define LWIP_HAVE_LOOPIF 1 /** * LWIP_NETIF_LOOPBACK==1: Support sending packets with a destination IP * address equal to the netif IP address, looping them back up the stack. *//* ... */ #define LWIP_NETIF_LOOPBACK 1 /** * LWIP_LOOPBACK_MAX_PBUFS: Maximum number of pbufs on queue for loopback * sending for each netif (0 = disabled) *//* ... */ #define LWIP_LOOPBACK_MAX_PBUFS CONFIG_LWIP_LOOPBACK_MAX_PBUFS/* ... */ #else #define LWIP_HAVE_LOOPIF 0 #endif /* ------------------------------------ ---------- SLIPIF options ---------- ------------------------------------ *//* ... */ #ifdef CONFIG_LWIP_SLIP_SUPPORT /** * Enable SLIP receive from ISR functions and disable Rx thread * * This is the only supported mode of lwIP SLIP interface, so that * - incoming packets are queued into pbufs * - no thread is created from lwIP * meaning it is the application responsibility to read data * from IO driver and feed them to the slip interface *//* ... */ #define SLIP_RX_FROM_ISR 1 #define SLIP_USE_RX_THREAD 0 /** * SLIP_DEBUG: Enable debugging for SLIP. *//* ... */ #ifdef CONFIG_LWIP_SLIP_DEBUG_ON #define SLIP_DEBUG LWIP_DBG_ON #else #define SLIP_DEBUG LWIP_DBG_OFF #endif/* ... */ #endif /* CONFIG_LWIP_SLIP_SUPPORT */ /* ------------------------------------ ---------- Thread options ---------- ------------------------------------ *//* ... */ /** * TCPIP_THREAD_NAME: The name assigned to the main tcpip thread. *//* ... */ #define TCPIP_THREAD_NAME "tiT" /** * TCPIP_THREAD_STACKSIZE: The stack size used by the main tcpip thread. * The stack size value itself is platform-dependent, but is passed to * sys_thread_new() when the thread is created. *//* ... */ #define TCPIP_THREAD_STACKSIZE ESP_TASK_TCPIP_STACK /** * TCPIP_THREAD_PRIO: The priority assigned to the main tcpip thread. * The priority value itself is platform-dependent, but is passed to * sys_thread_new() when the thread is created. *//* ... */ #define TCPIP_THREAD_PRIO ESP_TASK_TCPIP_PRIO /** * TCPIP_MBOX_SIZE: The mailbox size for the tcpip thread messages * The queue size value itself is platform-dependent, but is passed to * sys_mbox_new() when tcpip_init is called. *//* ... */ #define TCPIP_MBOX_SIZE CONFIG_LWIP_TCPIP_RECVMBOX_SIZE /** * DEFAULT_UDP_RECVMBOX_SIZE: The mailbox size for the incoming packets on a * NETCONN_UDP. The queue size value itself is platform-dependent, but is passed * to sys_mbox_new() when the recvmbox is created. *//* ... */ #define DEFAULT_UDP_RECVMBOX_SIZE CONFIG_LWIP_UDP_RECVMBOX_SIZE /** * DEFAULT_TCP_RECVMBOX_SIZE: The mailbox size for the incoming packets on a * NETCONN_TCP. The queue size value itself is platform-dependent, but is passed * to sys_mbox_new() when the recvmbox is created. *//* ... */ #define DEFAULT_TCP_RECVMBOX_SIZE CONFIG_LWIP_TCP_RECVMBOX_SIZE /** * DEFAULT_ACCEPTMBOX_SIZE: The mailbox size for the incoming connections. * The queue size value itself is platform-dependent, but is passed to * sys_mbox_new() when the acceptmbox is created. *//* ... */ #define DEFAULT_ACCEPTMBOX_SIZE CONFIG_LWIP_TCP_ACCEPTMBOX_SIZE /** * DEFAULT_THREAD_STACKSIZE: The stack size used by any other lwIP thread. * The stack size value itself is platform-dependent, but is passed to * sys_thread_new() when the thread is created. *//* ... */ #define DEFAULT_THREAD_STACKSIZE TCPIP_THREAD_STACKSIZE /** * DEFAULT_THREAD_PRIO: The priority assigned to any other lwIP thread. * The priority value itself is platform-dependent, but is passed to * sys_thread_new() when the thread is created. *//* ... */ #define DEFAULT_THREAD_PRIO TCPIP_THREAD_PRIO /** * DEFAULT_RAW_RECVMBOX_SIZE: The mailbox size for the incoming packets on a * NETCONN_RAW. The queue size value itself is platform-dependent, but is passed * to sys_mbox_new() when the recvmbox is created. *//* ... */ #define DEFAULT_RAW_RECVMBOX_SIZE 6 /* ---------------------------------------------- ---------- Sequential layer options ---------- ---------------------------------------------- *//* ... */ /** * LWIP_NETCONN==1: Enable Netconn API (require to use api_lib.c) *//* ... */ #define LWIP_NETCONN 1 /** LWIP_NETCONN_SEM_PER_THREAD==1: Use one (thread-local) semaphore per * thread calling socket/netconn functions instead of allocating one * semaphore per netconn (and per select etc.) * ATTENTION: a thread-local semaphore for API calls is needed: * - LWIP_NETCONN_THREAD_SEM_GET() returning a sys_sem_t* * - LWIP_NETCONN_THREAD_SEM_ALLOC() creating the semaphore * - LWIP_NETCONN_THREAD_SEM_FREE() freeing the semaphore * The latter 2 can be invoked up by calling netconn_thread_init()/netconn_thread_cleanup(). * Ports may call these for threads created with sys_thread_new(). *//* ... */ #define LWIP_NETCONN_SEM_PER_THREAD 1 /** LWIP_NETCONN_FULLDUPLEX==1: Enable code that allows reading from one thread, * writing from a 2nd thread and closing from a 3rd thread at the same time. * ATTENTION: This is currently really alpha! Some requirements: * - LWIP_NETCONN_SEM_PER_THREAD==1 is required to use one socket/netconn from * multiple threads at once * - sys_mbox_free() has to unblock receive tasks waiting on recvmbox/acceptmbox * and prevent a task pending on this during/after deletion *//* ... */ #define LWIP_NETCONN_FULLDUPLEX 1 /* ------------------------------------ ---------- Socket options ---------- ------------------------------------ *//* ... */ /** * LWIP_SOCKET==1: Enable Socket API (require to use sockets.c) *//* ... */ #define LWIP_SOCKET 1 /** * LWIP_COMPAT_SOCKETS==1: Enable BSD-style sockets functions names through defines. * LWIP_COMPAT_SOCKETS==2: Same as ==1 but correctly named functions are created. * While this helps code completion, it might conflict with existing libraries. * (only used if you use sockets.c) *//* ... */ #define LWIP_COMPAT_SOCKETS 0 /** * LWIP_POSIX_SOCKETS_IO_NAMES==1: Enable POSIX-style sockets functions names. * Disable this option if you use a POSIX operating system that uses the same * names (read, write & close). (only used if you use sockets.c) * * POSIX I/O functions are mapped to LWIP via the VFS layer * (see port/vfs_lwip.c) *//* ... */ /** *//* ... */ #define LWIP_POSIX_SOCKETS_IO_NAMES 0 /** * LWIP_SOCKET_OFFSET==n: Increases the file descriptor number created by LwIP with n. * * FD_SETSIZE from sys/types.h is the maximum number of supported file * descriptors and CONFIG_LWIP_MAX_SOCKETS defines the number of sockets; * LWIP_SOCKET_OFFSET is configured to use the largest numbers of file * descriptors for sockets. File descriptors from 0 to LWIP_SOCKET_OFFSET-1 * are non-socket descriptors and from LWIP_SOCKET_OFFSET to FD_SETSIZE are * socket descriptors. *//* ... */ #define LWIP_SOCKET_OFFSET (FD_SETSIZE - CONFIG_LWIP_MAX_SOCKETS) /** * LWIP_SO_SNDTIMEO==1: Enable send timeout for sockets/netconns and * SO_SNDTIMEO processing. *//* ... */ #define LWIP_SO_SNDTIMEO 1 /** * LWIP_SO_RCVTIMEO==1: Enable receive timeout for sockets/netconns and * SO_RCVTIMEO processing. *//* ... */ #define LWIP_SO_RCVTIMEO 1 /** * LWIP_TCP_KEEPALIVE==1: Enable TCP_KEEPIDLE, TCP_KEEPINTVL and TCP_KEEPCNT * options processing. Note that TCP_KEEPIDLE and TCP_KEEPINTVL have to be set * in seconds. (does not require sockets.c, and will affect tcp.c) *//* ... */ #define LWIP_TCP_KEEPALIVE 120 defines /** * LWIP_SO_LINGER==1: Enable SO_LINGER processing. * This option is set via menuconfig. *//* ... */ #ifdef CONFIG_LWIP_SO_LINGER #define LWIP_SO_LINGER 1 #else #define LWIP_SO_LINGER 0 #endif /** * LWIP_SO_RCVBUF==1: Enable SO_RCVBUF processing. * This option is set via menuconfig. *//* ... */ #ifdef CONFIG_LWIP_SO_RCVBUF #define LWIP_SO_RCVBUF 1 #else #define LWIP_SO_RCVBUF 0 #endif /** * SO_REUSE==1: Enable SO_REUSEADDR option. * This option is set via menuconfig. *//* ... */ #ifdef CONFIG_LWIP_SO_REUSE #define SO_REUSE 1 #else #define SO_REUSE 0 #endif /** * SO_REUSE_RXTOALL==1: Pass a copy of incoming broadcast/multicast packets * to all local matches if SO_REUSEADDR is turned on. * WARNING: Adds a memcpy for every packet if passing to more than one pcb! *//* ... */ #ifdef CONFIG_LWIP_SO_REUSE_RXTOALL #define SO_REUSE_RXTOALL 1 #else #define SO_REUSE_RXTOALL 0 #endif /** LWIP_TIMEVAL_PRIVATE: if you want to use the struct timeval provided * by your system, set this to 0 and include <sys/time.h> in cc.h *//* ... */ #define LWIP_TIMEVAL_PRIVATE 0 /* ---------------------------------------- ---------- Statistics options ---------- ---------------------------------------- *//* ... */ /** * LWIP_STATS==1: Enable statistics collection in lwip_stats. *//* ... */ #ifdef CONFIG_LWIP_STATS #define LWIP_STATS 1 #define ESP_STATS_MEM 1 /** * LWIP_STATS_DISPLAY==1: Compile in the statistics output functions. *//* ... */ #define LWIP_STATS_DISPLAY 1/* ... */ #else #define LWIP_STATS 0 #define ESP_STATS_MEM 0/* ... */ #endif /* CONFIG_LWIP_STATS */ /* --------------------------------- ---------- PPP options ---------- --------------------------------- *//* ... */ /** * PPP_SUPPORT==1: Enable PPP. *//* ... */ #ifdef CONFIG_LWIP_PPP_SUPPORT #define PPP_SUPPORT 1 /** * PPP_IPV6_SUPPORT == 1: Enable IPV6 support for local link * between modem and lwIP stack. * Some modems do not support IPV6 addressing in local link and * the only option available is to disable IPV6 address negotiation. *//* ... */ #define PPP_IPV6_SUPPORT CONFIG_LWIP_PPP_ENABLE_IPV6 /** * PPP_IPV4_SUPPORT==1: Enable PPP IPv4 support *//* ... */ #define PPP_IPV4_SUPPORT CONFIG_LWIP_PPP_ENABLE_IPV4 /** * PPP_NOTIFY_PHASE==1: Support PPP notify phase. *//* ... */ #define PPP_NOTIFY_PHASE CONFIG_LWIP_PPP_NOTIFY_PHASE_SUPPORT /** * PAP_SUPPORT==1: Support PAP. *//* ... */ #define PAP_SUPPORT CONFIG_LWIP_PPP_PAP_SUPPORT /** * CHAP_SUPPORT==1: Support CHAP. *//* ... */ #define CHAP_SUPPORT CONFIG_LWIP_PPP_CHAP_SUPPORT /** * MSCHAP_SUPPORT==1: Support MSCHAP. *//* ... */ #define MSCHAP_SUPPORT CONFIG_LWIP_PPP_MSCHAP_SUPPORT /** * CCP_SUPPORT==1: Support CCP. *//* ... */ #define MPPE_SUPPORT CONFIG_LWIP_PPP_MPPE_SUPPORT /** * PPP_SERVER==1: Enable PPP server support (waiting for incoming PPP session). *//* ... */ #define PPP_SERVER CONFIG_LWIP_PPP_SERVER_SUPPORT /** * VJ_SUPPORT==1: Support VJ header compression. *//* ... */ #define VJ_SUPPORT CONFIG_LWIP_PPP_VJ_HEADER_COMPRESSION /** * PPP_MAXIDLEFLAG: Max Xmit idle time (in ms) before resend flag char. * TODO: If PPP_MAXIDLEFLAG > 0 and next package is send during PPP_MAXIDLEFLAG time, * then 0x7E is not added at the beginning of PPP package but 0x7E termination * is always at the end. This behaviour brokes PPP dial with GSM (PPPoS). * The PPP package should always start and end with 0x7E. *//* ... */ #define PPP_MAXIDLEFLAG 011 defines #ifdef CONFIG_LWIP_ENABLE_LCP_ECHO /** * LCP_ECHOINTERVAL: Interval in seconds between keepalive LCP echo requests, 0 to disable. *//* ... */ #define LCP_ECHOINTERVAL CONFIG_LWIP_LCP_ECHOINTERVAL /** * LCP_MAXECHOFAILS: Number of consecutive unanswered echo requests before failure is indicated. *//* ... */ #define LCP_MAXECHOFAILS CONFIG_LWIP_LCP_MAXECHOFAILS/* ... */ #endif /* CONFIG_LWIP_ENABLE_LCP_ECHO */ /** * PPP_DEBUG: Enable debugging for PPP. *//* ... */ #ifdef CONFIG_LWIP_PPP_DEBUG_ON #define PPP_DEBUG LWIP_DBG_ON #define PRINTPKT_SUPPORT 1 #define PPP_PROTOCOLNAME 1/* ... */ #else #define PPP_DEBUG LWIP_DBG_OFF #endif /* CONFIG_LWIP_PPP_DEBUG_ON *//* ... */ #else #define PPP_SUPPORT 0 #endif /* CONFIG_LWIP_PPP_SUPPORT */ /** * LWIP_USE_EXTERNAL_MBEDTLS: Use external mbed TLS library for crypto implementation used in PPP AUTH *//* ... */ #ifdef CONFIG_LWIP_USE_EXTERNAL_MBEDTLS #define LWIP_USE_EXTERNAL_MBEDTLS 1 #else #define LWIP_USE_EXTERNAL_MBEDTLS 0 #endif /* -------------------------------------- ---------- Checksum options ---------- -------------------------------------- *//* ... */ /** * CHECKSUM_CHECK_IP==1: Check checksums in software for incoming IP packets. *//* ... */ #ifdef CONFIG_LWIP_CHECKSUM_CHECK_IP #define CHECKSUM_CHECK_IP 1 #else #define CHECKSUM_CHECK_IP 0 #endif /** * CHECKSUM_CHECK_UDP==1: Check checksums in software for incoming UDP packets. *//* ... */ #ifdef CONFIG_LWIP_CHECKSUM_CHECK_UDP #define CHECKSUM_CHECK_UDP 1 #else #define CHECKSUM_CHECK_UDP 0 #endif /** * CHECKSUM_CHECK_ICMP==1: Check checksums in software for incoming ICMP packets. *//* ... */ #ifdef CONFIG_LWIP_CHECKSUM_CHECK_ICMP #define CHECKSUM_CHECK_ICMP 1 #else #define CHECKSUM_CHECK_ICMP 0 #endif /* --------------------------------------- ---------- IPv6 options --------------- --------------------------------------- *//* ... */ /** * LWIP_IPV6==1: Enable IPv6 *//* ... */ #ifdef CONFIG_LWIP_IPV6 #define LWIP_IPV6 1 #else #define LWIP_IPV6 0 #endif /** * LWIP_ND6==1: Enable ND6 protocol in IPv6 *//* ... */ #ifdef CONFIG_LWIP_ND6 #define LWIP_ND6 1 #else #define LWIP_ND6 0 #endif /** * LWIP_FORCE_ROUTER_FORWARDING==1: the router flag in NA packet will always set to 1, * otherwise, never set router flag for NA packets. *//* ... */ #ifdef CONFIG_LWIP_FORCE_ROUTER_FORWARDING #define LWIP_FORCE_ROUTER_FORWARDING 1 #else #define LWIP_FORCE_ROUTER_FORWARDING 0 #endif /** * LWIP_IPV6_NUM_ADDRESSES: Number of IPv6 addresses per netif. *//* ... */ #define LWIP_IPV6_NUM_ADDRESSES CONFIG_LWIP_IPV6_NUM_ADDRESSES /** * LWIP_IPV6_FORWARD==1: Forward IPv6 packets across netifs *//* ... */ #ifdef CONFIG_LWIP_IPV6_FORWARD #define LWIP_IPV6_FORWARD 1 #else #define LWIP_IPV6_FORWARD 0 #endif /** * LWIP_IPV6_FRAG==1: Fragment outgoing IP6 packets if their size exceeds MTU. Note * that this option does not affect incoming packet sizes, which can be * controlled via IP6_REASSEMBLY. *//* ... */ #ifdef CONFIG_LWIP_IP6_FRAG #define LWIP_IPV6_FRAG 1 #else #define LWIP_IPV6_FRAG 0 #endif /** * LWIP_IPV6_REASS==1: reassemble incoming IP6 packets that fragmented. Note that * this option does not affect outgoing packet sizes, which can be controlled * via LWIP_IP6_FRAG. *//* ... */ #ifdef CONFIG_LWIP_IP6_REASSEMBLY #define LWIP_IPV6_REASS 1 #else #define LWIP_IPV6_REASS 0 #endif /** * LWIP_IPV6_AUTOCONFIG==1: Enable stateless address autoconfiguration as per RFC 4862. *//* ... */ #ifdef CONFIG_LWIP_IPV6_AUTOCONFIG #define ESP_IPV6_AUTOCONFIG 1 #else #define ESP_IPV6_AUTOCONFIG 0 #endif /** * LWIP_ND6_RDNSS_MAX_DNS_SERVERS > 0: Use IPv6 Router Advertisement Recursive * DNS Server Option (as per RFC 6106) to copy a defined maximum number of DNS * servers to the DNS module. *//* ... */ #define LWIP_ND6_RDNSS_MAX_DNS_SERVERS CONFIG_LWIP_IPV6_RDNSS_MAX_DNS_SERVERS /** * LWIP_IPV6_DHCP6==1: enable DHCPv6 stateful/stateless address autoconfiguration. *//* ... */ #ifdef CONFIG_LWIP_IPV6_DHCP6 #define LWIP_IPV6_DHCP6 1 #else #define LWIP_IPV6_DHCP6 0 #endif /** * MEMP_NUM_ND6_QUEUE: Max number of IPv6 packets to queue during MAC resolution. *//* ... */ #define MEMP_NUM_ND6_QUEUE CONFIG_LWIP_IPV6_MEMP_NUM_ND6_QUEUE /** * LWIP_ND6_NUM_NEIGHBORS: Number of entries in IPv6 neighbor cache *//* ... */ #define LWIP_ND6_NUM_NEIGHBORS CONFIG_LWIP_IPV6_ND6_NUM_NEIGHBORS /** * LWIP_ND6_NUM_PREFIXES: Maximum number of entries in IPv6 on-link prefixes cache *//* ... */ #define LWIP_ND6_NUM_PREFIXES CONFIG_LWIP_IPV6_ND6_NUM_PREFIXES /** * LWIP_ND6_NUM_ROUTERS: Maximum number of entries in IPv6 default routers cache *//* ... */ #define LWIP_ND6_NUM_ROUTERS CONFIG_LWIP_IPV6_ND6_NUM_ROUTERS /** * LWIP_ND6_NUM_DESTINATIONS: Maximum number of entries in IPv6 destinations cache *//* ... */ #define LWIP_ND6_NUM_DESTINATIONS CONFIG_LWIP_IPV6_ND6_NUM_DESTINATIONS5 defines /* --------------------------------------- ---------- Hook options --------------- --------------------------------------- *//* ... */ #ifdef LWIP_HOOK_FILENAME #warning LWIP_HOOK_FILENAME is used for IDF default hooks. Please use ESP_IDF_LWIP_HOOK_FILENAME to insert additional hook #endif #define LWIP_HOOK_FILENAME "lwip_default_hooks.h" #define LWIP_HOOK_IP4_ROUTE_SRC ip4_route_src_hook #if LWIP_NETCONN_FULLDUPLEX #define LWIP_DONE_SOCK(sock) done_socket(sock) #else #define LWIP_DONE_SOCK(sock) ((void)1) #endif /* LWIP_NETCONN_FULLDUPLEX */ #define LWIP_HOOK_SOCKETS_GETSOCKOPT(s, sock, level, optname, optval, optlen, err) \ lwip_getsockopt_impl_ext(sock, level, optname, optval, optlen, err)?(LWIP_DONE_SOCK(sock), true): false... #define LWIP_HOOK_SOCKETS_SETSOCKOPT(s, sock, level, optname, optval, optlen, err) \ lwip_setsockopt_impl_ext(sock, level, optname, optval, optlen, err)?(LWIP_DONE_SOCK(sock), true): false... /* --------------------------------------- ---------- Debugging options ---------- --------------------------------------- *//* ... */ /** * LWIP_DEBUG: Enable lwip debugging in other modules. *//* ... */ #ifdef CONFIG_LWIP_DEBUG #define LWIP_DEBUG LWIP_DBG_ON #else #undef LWIP_DEBUG #endif /** * ETHARP_DEBUG: Enable debugging in etharp.c. *//* ... */ #ifdef CONFIG_LWIP_ETHARP_DEBUG #define ETHARP_DEBUG LWIP_DBG_ON #else #define ETHARP_DEBUG LWIP_DBG_OFF #endif /** * NETIF_DEBUG: Enable debugging in netif.c. *//* ... */ #ifdef CONFIG_LWIP_NETIF_DEBUG #define NETIF_DEBUG LWIP_DBG_ON #else #define NETIF_DEBUG LWIP_DBG_OFF #endif /** * PBUF_DEBUG: Enable debugging in pbuf.c. *//* ... */ #ifdef CONFIG_LWIP_PBUF_DEBUG #define PBUF_DEBUG LWIP_DBG_ON #else #define PBUF_DEBUG LWIP_DBG_OFF #endif /** * API_LIB_DEBUG: Enable debugging in api_lib.c. *//* ... */ #ifdef CONFIG_LWIP_API_LIB_DEBUG #define API_LIB_DEBUG LWIP_DBG_ON #else #define API_LIB_DEBUG LWIP_DBG_OFF #endif /** * SOCKETS_DEBUG: Enable debugging in sockets.c. *//* ... */ #ifdef CONFIG_LWIP_SOCKETS_DEBUG #define SOCKETS_DEBUG LWIP_DBG_ON #else #define SOCKETS_DEBUG LWIP_DBG_OFF #endif /** * ICMP_DEBUG: Enable debugging in icmp.c. *//* ... */ #ifdef CONFIG_LWIP_ICMP_DEBUG #define ICMP_DEBUG LWIP_DBG_ON #else #define ICMP_DEBUG LWIP_DBG_OFF #endif #ifdef CONFIG_LWIP_ICMP6_DEBUG #define ICMP6_DEBUG LWIP_DBG_ON #else #define ICMP6_DEBUG LWIP_DBG_OFF #endif /** * DHCP_DEBUG: Enable debugging in dhcp.c. *//* ... */ #ifdef CONFIG_LWIP_DHCP_DEBUG #define DHCP_DEBUG LWIP_DBG_ON #else #define DHCP_DEBUG LWIP_DBG_OFF #endif #ifdef CONFIG_LWIP_DHCP_STATE_DEBUG #define ESP_DHCP_DEBUG LWIP_DBG_ON #else #define ESP_DHCP_DEBUG LWIP_DBG_OFF #endif /** * IP_DEBUG: Enable debugging for IP. *//* ... */ #ifdef CONFIG_LWIP_IP_DEBUG #define IP_DEBUG LWIP_DBG_ON #else #define IP_DEBUG LWIP_DBG_OFF #endif /** * IP6_DEBUG: Enable debugging for IP6. *//* ... */ #ifdef CONFIG_LWIP_IP6_DEBUG #define IP6_DEBUG LWIP_DBG_ON #else #define IP6_DEBUG LWIP_DBG_OFF #endif /** * TCP_DEBUG: Enable debugging for TCP. *//* ... */ #ifdef CONFIG_LWIP_TCP_DEBUG #define TCP_DEBUG LWIP_DBG_ON #else #define TCP_DEBUG LWIP_DBG_OFF #endif /** * UDP_DEBUG: Enable debugging for UDP. *//* ... */ #ifdef CONFIG_LWIP_UDP_DEBUG #define UDP_DEBUG LWIP_DBG_ON #else #define UDP_DEBUG LWIP_DBG_OFF #endif /** * SNTP_DEBUG: Enable debugging for SNTP. *//* ... */ #ifdef CONFIG_LWIP_SNTP_DEBUG #define SNTP_DEBUG LWIP_DBG_ON #else #define SNTP_DEBUG LWIP_DBG_OFF #endif /** * DNS_DEBUG: Enable debugging for DNS. *//* ... */ #ifdef CONFIG_LWIP_DNS_DEBUG #define DNS_DEBUG LWIP_DBG_ON #else #define DNS_DEBUG LWIP_DBG_OFF #endif /** * NAPT_DEBUG: Enable debugging for NAPT. *//* ... */ #ifdef CONFIG_LWIP_NAPT_DEBUG #define NAPT_DEBUG LWIP_DBG_ON #else #define NAPT_DEBUG LWIP_DBG_OFF #endif /** * MEMP_DEBUG: Enable debugging in memp.c. *//* ... */ #define MEMP_DEBUG LWIP_DBG_OFF /** * TCP_INPUT_DEBUG: Enable debugging in tcp_in.c for incoming debug. *//* ... */ #define TCP_INPUT_DEBUG LWIP_DBG_OFF /** * TCP_OUTPUT_DEBUG: Enable debugging in tcp_out.c output functions. *//* ... */ #define TCP_OUTPUT_DEBUG LWIP_DBG_OFF /** * TCPIP_DEBUG: Enable debugging in tcpip.c. *//* ... */ #define TCPIP_DEBUG LWIP_DBG_OFF /** * TCP_OOSEQ_DEBUG: Enable debugging in tcpin.c for OOSEQ. *//* ... */ #define TCP_OOSEQ_DEBUG LWIP_DBG_OFF5 defines /** * BRIDGEIF_DEBUG: Enable generic debugging for bridge. *//* ... */ #ifdef CONFIG_LWIP_BRIDGEIF_DEBUG #define BRIDGEIF_DEBUG LWIP_DBG_ON #endif /** * BRIDGEIF_FDB_DEBUG: Enable debugging for bridge FDB. *//* ... */ #ifdef CONFIG_LWIP_BRIDGEIF_FDB_DEBUG #define BRIDGEIF_FDB_DEBUG LWIP_DBG_ON #endif /** * BRIDGEIF_FW_DEBUG: Enable debugging for bridge forwarding. *//* ... */ #ifdef CONFIG_LWIP_BRIDGEIF_FW_DEBUG #define BRIDGEIF_FW_DEBUG LWIP_DBG_ON #endif /* -------------------------------------- ------------ SNTP options ------------ -------------------------------------- *//* ... */ /** * Max number of SNTP servers handled (default equal to LWIP_DHCP_MAX_NTP_SERVERS) *//* ... */ #ifdef CONFIG_LWIP_SNTP_MAX_SERVERS #define SNTP_MAX_SERVERS CONFIG_LWIP_SNTP_MAX_SERVERS #endif /* CONFIG_LWIP_SNTP_MAX_SERVERS */ /** Set this to 1 to support DNS names (or IP address strings) to set sntp servers * One server address/name can be defined as default if SNTP_SERVER_DNS == 1: * \#define SNTP_SERVER_ADDRESS "pool.ntp.org" *//* ... */ #define SNTP_SERVER_DNS 1 /** * It disables a check of SNTP_UPDATE_DELAY it is done in sntp_set_sync_interval *//* ... */ #define SNTP_SUPPRESS_DELAY_CHECK #define SNTP_UPDATE_DELAY (sntp_get_sync_interval()) #define SNTP_SET_SYSTEM_TIME_US(sec, us) (sntp_set_system_time(sec, us)) #define SNTP_GET_SYSTEM_TIME(sec, us) (sntp_get_system_time(&(sec), &(us)))5 defines /** * Configuring SNTP startup delay *//* ... */ #ifdef CONFIG_LWIP_SNTP_STARTUP_DELAY #define SNTP_STARTUP_DELAY 1 #ifdef CONFIG_LWIP_SNTP_MAXIMUM_STARTUP_DELAY #define SNTP_STARTUP_DELAY_FUNC (LWIP_RAND() % CONFIG_LWIP_SNTP_MAXIMUM_STARTUP_DELAY) #endif /* CONFIG_LWIP_SNTP_MAXIMUM_STARTUP_DELAY *//* ... */ #else #define SNTP_STARTUP_DELAY 0 #endif /* SNTP_STARTUP_DELAY */ /* --------------------------------------- --------- ESP specific options -------- --------------------------------------- *//* ... */ /** * ESP_LWIP_IGMP_TIMERS_ONDEMAND==1: Start IGMP timers only if used * ESP_LWIP_MLD6_TIMERS_ONDEMAND==1: Start MLD6 timers only if used * Timers will only be activated when joining groups/receiving queries *//* ... */ #ifdef CONFIG_LWIP_TIMERS_ONDEMAND #define ESP_LWIP_IGMP_TIMERS_ONDEMAND 1 #define ESP_LWIP_MLD6_TIMERS_ONDEMAND 1 #define ESP_LWIP_DHCP_FINE_TIMERS_ONDEMAND 1 #define ESP_LWIP_DNS_TIMERS_ONDEMAND 1 #if IP_REASSEMBLY #define ESP_LWIP_IP4_REASSEMBLY_TIMERS_ONDEMAND 1 #endif /* IP_REASSEMBLY */ #if LWIP_IPV6_REASS #define ESP_LWIP_IP6_REASSEMBLY_TIMERS_ONDEMAND 1 #endif /* LWIP_IPV6_REASS *//* ... */ #else #define ESP_LWIP_IGMP_TIMERS_ONDEMAND 0 #define ESP_LWIP_MLD6_TIMERS_ONDEMAND 0 #define ESP_LWIP_DHCP_FINE_TIMERS_ONDEMAND 0 #define ESP_LWIP_DNS_TIMERS_ONDEMAND 0 #if IP_REASSEMBLY #define ESP_LWIP_IP4_REASSEMBLY_TIMERS_ONDEMAND 0 #endif /* IP_REASSEMBLY */ #if LWIP_IPV6_REASS #define ESP_LWIP_IP6_REASSEMBLY_TIMERS_ONDEMAND 0 #endif /* LWIP_IPV6_REASS *//* ... */ #endif /** * ESP_GRATUITOUS_ARP==1: This option allows to send gratuitous ARP periodically. *//* ... */ #ifdef CONFIG_LWIP_ESP_GRATUITOUS_ARP #define ESP_GRATUITOUS_ARP 1 #define ESP_GRATUITOUS_ARP_INTERVAL (CONFIG_LWIP_GARP_TMR_INTERVAL*1000UL)/* ... */ #else #define ESP_GRATUITOUS_ARP 0 #endif /** * ESP_MLDV6_REPORT==1: This option allows to send mldv6 report periodically. *//* ... */ #ifdef CONFIG_LWIP_ESP_MLDV6_REPORT #define ESP_MLDV6_REPORT 1 #else #define ESP_MLDV6_REPORT 0 #endif #define ESP_LWIP 1 #define ESP_LWIP_ARP 1 #define ESP_PER_SOC_TCP_WND 0 #define ESP_THREAD_SAFE 1 /* Not used (to be removed in v6.x) */ #define ESP_THREAD_SAFE_DEBUG LWIP_DBG_OFF #define ESP_DHCP 1 #define ESP_DNS 1 #define ESP_STATS_TCP 0 #define ESP_LWIP_LOGI(...) ESP_LOGI("lwip", __VA_ARGS__) #define ESP_PING 1 #define ESP_HAS_SELECT 1 #define ESP_IP4_ROUTE 1 #define ESP_AUTO_IP 1 #define ESP_PBUF 1 #define ESP_PPP 1 #define ESP_IPV6 LWIP_IPV6 #define ESP_SOCKET 1 #define ESP_LWIP_SELECT 1 #define ESP_LWIP_LOCK 1 #define ESP_THREAD_PROTECTION 1 #define LWIP_SUPPORT_CUSTOM_PBUF 1 #define ESP_LWIP_FALLBACK_DNS_PREFER_IPV4 022 defines /* ----------------------------------------- ---------- DHCP Server options ---------- ----------------------------------------- *//* ... */ /** * ESP_DHCPS==1: Enable the DHCP server *//* ... */ #ifdef CONFIG_LWIP_DHCPS #define ESP_DHCPS 1 #define ESP_DHCPS_TIMER 0/* ... */ #else #define ESP_DHCPS 0 #define ESP_DHCPS_TIMER 0/* ... */ #endif /* CONFIG_LWIP_DHCPS */ #if LWIP_NETCONN_SEM_PER_THREAD #define LWIP_NETCONN_THREAD_SEM_GET() sys_thread_sem_get() #define LWIP_NETCONN_THREAD_SEM_ALLOC() sys_thread_sem_init() #define LWIP_NETCONN_THREAD_SEM_FREE() sys_thread_sem_deinit()/* ... */ #endif /** * If CONFIG_ALLOC_MEMORY_IN_SPIRAM_FIRST is enabled, Try to * allocate memory for lwip in SPIRAM firstly. If failed, try to allocate * internal memory then. *//* ... */ #if CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP #define mem_clib_malloc(size) heap_caps_malloc_prefer(size, 2, MALLOC_CAP_DEFAULT|MALLOC_CAP_SPIRAM, MALLOC_CAP_DEFAULT|MALLOC_CAP_INTERNAL) #define mem_clib_calloc(n, size) heap_caps_calloc_prefer(n, size, 2, MALLOC_CAP_DEFAULT|MALLOC_CAP_SPIRAM, MALLOC_CAP_DEFAULT|MALLOC_CAP_INTERNAL)/* ... */ #else /* !CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP */ #define mem_clib_malloc malloc #define mem_clib_calloc calloc/* ... */ #endif /* CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP */ /* * Check if the lwIP configuration is sane *//* ... */ #if !LWIP_IPV4 && !LWIP_IPV6 #error "Please enable at least one IP stack (either IPv4 or IPv6 or both)" #endif #ifdef __cplusplus }{...} #endif /* ... */ #endif /* LWIP_HDR_ESP_LWIPOPTS_H */
Details
Show:
from
Types: Columns:
This file uses the notable symbols shown below. Click anywhere in the file to view more details.