wenquan2015 opened a new pull request, #17687: URL: https://github.com/apache/nuttx/pull/17687
## Summary Drop a ipv4 packet with total length bigger than the actual transmited data. Derived from RFC 791 s3.1 p13 Internet Header Format. ## Impact ipv4 ## Testing ``` from scapy.all import * icmp_pkt = IP(dst="10.0.1.2", len=60) / ICMP()/ "ECU NETWORK VALIDATION TEST" send(icmp_pkt, verbose=1) ``` test result, no icmp reply: ``` 14:12:19.599994 IP truncated-ip - 5 bytes missing! 10.0.1.1 > 10.0.1.2: ICMP echo request, id 0, seq 0, length 40 14:12:31.995797 ARP, Request who-has 10.0.1.2 tell 10.0.1.1, length 28 14:12:31.998049 ARP, Reply 10.0.1.2 is-at 42:e1:c4:3f:48:dd, length 28 ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
