Are you referring to checks of the form “ip-length <= L2 length,” which happen in .../src/vnet/ip/ip[46]_input.c?
From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of kmp...@soosan.co.kr Sent: Friday, August 9, 2019 7:24 AM To: vpp-dev@lists.fd.io Subject: [vpp-dev] Can VPP detect illegal packet size? Hi I wonder that how VPP detect illegal packet length. I couldn't find in dpdk and unix/tap, ethernet, ipv4/6 source codes. Linux uses 'pskb_may_pull' function to detect wrong packets whereas VPP does not use 'vlib_buffer_pull' like functions. Why VPP does not check the length of received packets? Does It guarantee to access the packet's data which has wrong size? Thanks.
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13695): https://lists.fd.io/g/vpp-dev/message/13695 Mute This Topic: https://lists.fd.io/mt/32809362/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-