Jelajahi Sumber

[components][lwip]LWIP 1.4.1 支持硬件校验和

zylx 6 tahun lalu
induk
melakukan
bb97c76b59
1 mengubah file dengan 12 tambahan dan 0 penghapusan
  1. 12 0
      components/net/lwip-1.4.1/src/lwipopts.h

+ 12 - 0
components/net/lwip-1.4.1/src/lwipopts.h

@@ -374,6 +374,18 @@
 #define ARP_TABLE_SIZE              10
 #define ARP_TABLE_SIZE              10
 #define ARP_QUEUEING                1
 #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 ---------- */
 /* ---------- IP options ---------- */
 /* Define IP_FORWARD to 1 if you wish to have the ability to forward
 /* 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
    IP packets across network interfaces. If you are going to run lwIP