summaryrefslogtreecommitdiff
path: root/components/net
diff options
context:
space:
mode:
authorzylx <[email protected]>2019-03-14 17:31:57 +0800
committerzylx <[email protected]>2019-03-14 17:33:29 +0800
commitbb97c76b5937864736d7fdb029bc0731c8cabf68 (patch)
tree9f1a98270187b096e1681deb31e9fd4490c5ee2d /components/net
parent9818ee2d2908ffa9c1286484863a7a1ebe3c2f8e (diff)
[components][lwip]LWIP 1.4.1 支持硬件校验和
Diffstat (limited to 'components/net')
-rw-r--r--components/net/lwip-1.4.1/src/lwipopts.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/components/net/lwip-1.4.1/src/lwipopts.h b/components/net/lwip-1.4.1/src/lwipopts.h
index a5c0e20cbd..dd59acd589 100644
--- a/components/net/lwip-1.4.1/src/lwipopts.h
+++ b/components/net/lwip-1.4.1/src/lwipopts.h
@@ -374,6 +374,18 @@
#define ARP_TABLE_SIZE 10
#define ARP_QUEUEING 1
+/* ---------- Checksum options ---------- */
+#ifdef RT_LWIP_USING_HW_CHECKSUM
+#define CHECKSUM_GEN_IP 0
+#define CHECKSUM_GEN_UDP 0
+#define CHECKSUM_GEN_TCP 0
+#define CHECKSUM_GEN_ICMP 0
+#define CHECKSUM_CHECK_IP 0
+#define CHECKSUM_CHECK_UDP 0
+#define CHECKSUM_CHECK_TCP 0
+#define CHECKSUM_CHECK_ICMP 0
+#endif
+
/* ---------- IP options ---------- */
/* Define IP_FORWARD to 1 if you wish to have the ability to forward
IP packets across network interfaces. If you are going to run lwIP