Skip to content

Commit bb97c76

Browse files
author
zylx
committed
[components][lwip]LWIP 1.4.1 支持硬件校验和
1 parent 9818ee2 commit bb97c76

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

components/net/lwip-1.4.1/src/lwipopts.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,18 @@
374374
#define ARP_TABLE_SIZE 10
375375
#define ARP_QUEUEING 1
376376

377+
/* ---------- Checksum options ---------- */
378+
#ifdef RT_LWIP_USING_HW_CHECKSUM
379+
#define CHECKSUM_GEN_IP 0
380+
#define CHECKSUM_GEN_UDP 0
381+
#define CHECKSUM_GEN_TCP 0
382+
#define CHECKSUM_GEN_ICMP 0
383+
#define CHECKSUM_CHECK_IP 0
384+
#define CHECKSUM_CHECK_UDP 0
385+
#define CHECKSUM_CHECK_TCP 0
386+
#define CHECKSUM_CHECK_ICMP 0
387+
#endif
388+
377389
/* ---------- IP options ---------- */
378390
/* Define IP_FORWARD to 1 if you wish to have the ability to forward
379391
IP packets across network interfaces. If you are going to run lwIP

0 commit comments

Comments
 (0)