Closed ToraNova closed 3 years ago
after looking at lwip's source, I notice adding the following line in lwipopts.h
solves my problem.
#define LWIP_CHECKSUM_CTRL_PER_NETIF 0
#define CHECKSUM_GEN_IP 0
#define CHECKSUM_GEN_UDP 0
#define CHECKSUM_GEN_TCP 0
#define CHECKSUM_GEN_ICMP 0
Hi Russ,
Thank you for open-sourcing this wonderful add-on project for lwip. I was trying to use this on a STM32H7 to do some traffic forwarding from a PPPoS interface to an ethernet interface. While compiling this library, I've encountered several warnings from my compiler (
arm-none-eabi-gcc (Arch Repository) 10.3.0
).Ignoring these, I have the following setup.
From PC1, I can ping 10.0.0.2; likewise from PC2, I can ping 192.168.7.1. Everything looks ok from here. I set PC2's default route as 192.168.7.1 and then tried to ping 10.0.0.1 from PC2. I fired up wireshark monitoring my PPP interface on PC1 and see that it received the ICMP packets, however, the checksum is invalid (0x0000).
I would like to know if these are caused by the warning message. I am not too familiar about packing/unpacking of C-struct. Could you let me know what's wrong with it?
Additional information: Snippet on how I initialized the NAT-rule using the library.